This commit is contained in:
clopezr1
2020-02-10 20:02:04 -05:00
parent e86b95ab46
commit a6beebb4ce
2 changed files with 35 additions and 17 deletions

View File

@@ -19,16 +19,14 @@ class _HomeState extends State<Home>{
PlaceholderWidget(Colors.black38),
];
DropDownWidget ddw = DropDownWidget();
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
//title: Text(appBarTitle),
actions: <Widget>[
DropDownWidget(),
],
backgroundColor: Colors.green,
title: ddw,
//backgroundColor: ,
),
body: _children[_currentIndex],
bottomNavigationBar: BottomNavigationBar(
@@ -64,6 +62,13 @@ class _HomeState extends State<Home>{
void onTabTapped(int index) {
setState(() {
_currentIndex = index;
print(ddw);
});
}
}
class Item {
const Item(this.name, this.color);
final String name;
final Color color;
}