Remove bottom padding of bottom navigation bar
This commit is contained in:
parent
f9b4c0cba0
commit
c6bf03fe36
|
@ -79,85 +79,82 @@ class _HomeBottomNavigationBarState extends State<HomeBottomNavigationBar> {
|
||||||
|
|
||||||
return RepaintBoundary(
|
return RepaintBoundary(
|
||||||
child: AnimatedContainer(
|
child: AnimatedContainer(
|
||||||
duration: const Duration(milliseconds: 3000),
|
duration: const Duration(milliseconds: 300),
|
||||||
curve: Curves.easeInOut,
|
curve: Curves.easeInOut,
|
||||||
height: filesAreSelected ? 0 : (56 + bottomPadding),
|
height: filesAreSelected ? 0 : (56 + bottomPadding),
|
||||||
child: IgnorePointer(
|
child: IgnorePointer(
|
||||||
ignoring: filesAreSelected,
|
ignoring: filesAreSelected,
|
||||||
child: Padding(
|
child: ListView(
|
||||||
padding: EdgeInsets.only(bottom: bottomPadding),
|
physics: const NeverScrollableScrollPhysics(),
|
||||||
child: ListView(
|
children: [
|
||||||
physics: const NeverScrollableScrollPhysics(),
|
Row(
|
||||||
children: [
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
Row(
|
children: [
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
GNav(
|
||||||
children: [
|
curve: Curves.easeOutExpo,
|
||||||
GNav(
|
backgroundColor:
|
||||||
curve: Curves.easeOutExpo,
|
getEnteColorScheme(context).backgroundElevated2,
|
||||||
backgroundColor:
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
getEnteColorScheme(context).backgroundElevated2,
|
iconSize: 24,
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
padding: const EdgeInsets.fromLTRB(16, 6, 16, 6),
|
||||||
iconSize: 24,
|
duration: const Duration(milliseconds: 200),
|
||||||
padding: const EdgeInsets.fromLTRB(16, 6, 16, 6),
|
gap: 0,
|
||||||
duration: const Duration(milliseconds: 200),
|
tabBorderRadius: 32,
|
||||||
gap: 0,
|
tabBackgroundColor:
|
||||||
tabBorderRadius: 32,
|
MediaQuery.of(context).platformBrightness ==
|
||||||
tabBackgroundColor:
|
Brightness.light
|
||||||
MediaQuery.of(context).platformBrightness ==
|
? strokeFainterLight
|
||||||
Brightness.light
|
: strokeSolidFaintLight,
|
||||||
? strokeFainterLight
|
haptic: false,
|
||||||
: strokeSolidFaintLight,
|
tabs: [
|
||||||
haptic: false,
|
GButton(
|
||||||
tabs: [
|
margin: const EdgeInsets.fromLTRB(8, 6, 10, 6),
|
||||||
GButton(
|
icon: Icons.home_rounded,
|
||||||
margin: const EdgeInsets.fromLTRB(8, 6, 10, 6),
|
iconColor: enteColorScheme.tabIcon,
|
||||||
icon: Icons.home_rounded,
|
iconActiveColor: strokeBaseLight,
|
||||||
iconColor: enteColorScheme.tabIcon,
|
text: '',
|
||||||
iconActiveColor: strokeBaseLight,
|
onPressed: () {
|
||||||
text: '',
|
_onTabChange(
|
||||||
onPressed: () {
|
0,
|
||||||
_onTabChange(
|
mode: "OnPressed",
|
||||||
0,
|
); // To take care of occasional missing events
|
||||||
mode: "OnPressed",
|
},
|
||||||
); // To take care of occasional missing events
|
),
|
||||||
},
|
GButton(
|
||||||
),
|
margin: const EdgeInsets.fromLTRB(10, 6, 10, 6),
|
||||||
GButton(
|
icon: Icons.collections_rounded,
|
||||||
margin: const EdgeInsets.fromLTRB(10, 6, 10, 6),
|
iconColor: enteColorScheme.tabIcon,
|
||||||
icon: Icons.collections_rounded,
|
iconActiveColor: strokeBaseLight,
|
||||||
iconColor: enteColorScheme.tabIcon,
|
text: '',
|
||||||
iconActiveColor: strokeBaseLight,
|
onPressed: () {
|
||||||
text: '',
|
_onTabChange(
|
||||||
onPressed: () {
|
1,
|
||||||
_onTabChange(
|
mode: "OnPressed",
|
||||||
1,
|
); // To take care of occasional missing
|
||||||
mode: "OnPressed",
|
// events
|
||||||
); // To take care of occasional missing
|
},
|
||||||
// events
|
),
|
||||||
},
|
GButton(
|
||||||
),
|
margin: const EdgeInsets.fromLTRB(10, 6, 8, 6),
|
||||||
GButton(
|
icon: Icons.people_outlined,
|
||||||
margin: const EdgeInsets.fromLTRB(10, 6, 8, 6),
|
iconColor: enteColorScheme.tabIcon,
|
||||||
icon: Icons.people_outlined,
|
iconActiveColor: strokeBaseLight,
|
||||||
iconColor: enteColorScheme.tabIcon,
|
text: '',
|
||||||
iconActiveColor: strokeBaseLight,
|
onPressed: () {
|
||||||
text: '',
|
_onTabChange(
|
||||||
onPressed: () {
|
2,
|
||||||
_onTabChange(
|
mode: "OnPressed",
|
||||||
2,
|
); // To take care
|
||||||
mode: "OnPressed",
|
// of occasional missing events
|
||||||
); // To take care
|
},
|
||||||
// of occasional missing events
|
),
|
||||||
},
|
],
|
||||||
),
|
selectedIndex: currentTabIndex,
|
||||||
],
|
onTabChange: _onTabChange,
|
||||||
selectedIndex: currentTabIndex,
|
),
|
||||||
onTabChange: _onTabChange,
|
],
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in a new issue