Skip to content

Commit

Permalink
Make bottom navigation transparent
Browse files Browse the repository at this point in the history
  • Loading branch information
AhsanSarwar45 committed Dec 13, 2023
1 parent 960c845 commit ceeb8ab
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/common/widgets/fab.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class FAB extends StatelessWidget {
this.onPressed,
this.icon = FluxIcons.add,
this.index = 0,
this.bottomPadding = 0,
this.bottomPadding = 80,
this.size = 1,
this.position = FabPosition.bottomRight,
}) : super(key: key);
Expand Down
1 change: 1 addition & 0 deletions lib/navigation/screens/nav_scaffold.dart
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ class _NavScaffoldState extends State<NavScaffold> {
),
],
),
extendBody: true,
body: Center(
child: tabs[_selectedTabIndex].widget,
),
Expand Down
3 changes: 2 additions & 1 deletion lib/navigation/widgets/app_navigation_bar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@ class _AppNavigationBarState extends State<AppNavigationBar> {
Widget build(BuildContext context) {
return Padding(
padding:
const EdgeInsets.only(left: 16.0, right: 16.0, bottom: 8.0, top: 0),
const EdgeInsets.only(left: 16.0, right: 16.0, bottom: 4.0, top: 0),
child: CardContainer(
elevationMultiplier: 2,
// color: Colors.red,
child: BottomNavBar(
backgroundColor: Colors.transparent,
elevation: 0,
Expand Down

0 comments on commit ceeb8ab

Please sign in to comment.