Skip to content

Instantly share code, notes, and snippets.

@plateaukao
Created March 11, 2020 15:32
Show Gist options
  • Save plateaukao/3d12b98a1fb11ee6f0e4ccc67a1eda7a to your computer and use it in GitHub Desktop.
Save plateaukao/3d12b98a1fb11ee6f0e4ccc67a1eda7a to your computer and use it in GitHub Desktop.
@override
Widget build(BuildContext context) {
return MaterialApp(
theme: kBaseThemeData,
home: Scaffold(
body: IndexedStack(
index: _currentIndex,
children: <Widget>[
VocabConfigurationListScreen(),
GrammarHomeWidget()
],
),
bottomNavigationBar: BottomNavigationBar(
backgroundColor: kBaseThemeData.primaryColor,
currentIndex: _currentIndex,
onTap: _onTabTapped,
items: [
BottomNavigationBarItem(
icon: Icon(Icons.description, color: Colors.white,),
title: Text('Vocabulary', style: TextStyle(color: Colors.white),),
),
BottomNavigationBarItem(
icon: Icon(Icons.gradient, color: Colors.white,),
title: Text('Grammar', style: TextStyle(color: Colors.white),),
),
],
),
)
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment