change: Settings button to appBar
This commit is contained in:
parent
717980744d
commit
cbc4204527
5 changed files with 37 additions and 23 deletions
|
|
@ -25,18 +25,13 @@ class DefaultBottomNavigationBar extends StatelessWidget {
|
|||
AdaptivePageLayout.of(context)
|
||||
.pushNamedAndRemoveUntilIsFirst('/discover');
|
||||
break;
|
||||
case 3:
|
||||
AdaptivePageLayout.of(context)
|
||||
.pushNamedAndRemoveUntilIsFirst('/settings');
|
||||
break;
|
||||
}
|
||||
},
|
||||
backgroundColor: Theme.of(context).scaffoldBackgroundColor,
|
||||
selectedItemColor: Theme.of(context).accentColor,
|
||||
currentIndex: currentIndex,
|
||||
//unselectedItemColor: Theme.of(context).textTheme.bodyText1.color,
|
||||
type: BottomNavigationBarType.fixed,
|
||||
showUnselectedLabels: false,
|
||||
showUnselectedLabels: true,
|
||||
items: [
|
||||
BottomNavigationBarItem(
|
||||
icon: Icon(currentIndex == 0 ? Icons.people : Icons.people_outlined),
|
||||
|
|
@ -54,11 +49,6 @@ class DefaultBottomNavigationBar extends StatelessWidget {
|
|||
: CupertinoIcons.compass),
|
||||
label: L10n.of(context).discover,
|
||||
),
|
||||
BottomNavigationBarItem(
|
||||
icon: Icon(
|
||||
currentIndex == 3 ? Icons.settings : Icons.settings_outlined),
|
||||
label: L10n.of(context).settings,
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue