Compare commits

..

1 Commits

2 changed files with 21 additions and 14 deletions

View File

@ -78,23 +78,27 @@ class _ActivityListScreenState extends State<ActivityListScreen> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return Container(
backgroundColor: const Color(0xFFFFF8F0), color: const Color(0xFFFFF8F0),
appBar: AppBar( child: Column(
title: Text('伴享', style: TextStyle(fontWeight: FontWeight.bold)), children: [
centerTitle: true, AppBar(
actions: [ title: Text('伴享', style: TextStyle(fontWeight: FontWeight.bold)),
IconButton( centerTitle: true,
icon: Icon(Icons.search), actions: [
onPressed: () {}, IconButton(
), icon: Icon(Icons.search),
IconButton( onPressed: () {},
icon: Icon(Icons.notifications_none), ),
onPressed: () {}, IconButton(
icon: Icon(Icons.notifications_none),
onPressed: () {},
),
],
), ),
Expanded(child: _buildFeed()),
], ],
), ),
body: _buildFeed(),
); );
} }

View File

@ -32,8 +32,11 @@ class _MainScreenState extends State<MainScreen> {
floatingActionButton: _buildGlobalFab(), floatingActionButton: _buildGlobalFab(),
floatingActionButtonLocation: FloatingActionButtonLocation.centerDocked, floatingActionButtonLocation: FloatingActionButtonLocation.centerDocked,
bottomNavigationBar: BottomNavigationBar( bottomNavigationBar: BottomNavigationBar(
type: BottomNavigationBarType.fixed,
currentIndex: _currentIndex, currentIndex: _currentIndex,
onTap: (i) => setState(() => _currentIndex = i), onTap: (i) => setState(() => _currentIndex = i),
selectedItemColor: const Color(0xFFFF6B35),
unselectedItemColor: const Color(0xFF999999),
items: const [ items: const [
BottomNavigationBarItem(icon: Icon(Icons.home_outlined), activeIcon: Icon(Icons.home), label: '首页'), BottomNavigationBarItem(icon: Icon(Icons.home_outlined), activeIcon: Icon(Icons.home), label: '首页'),
BottomNavigationBarItem(icon: Icon(Icons.people_outline), activeIcon: Icon(Icons.people), label: '好友'), BottomNavigationBarItem(icon: Icon(Icons.people_outline), activeIcon: Icon(Icons.people), label: '好友'),