@@ -7,7 +7,6 @@ import 'package:rtu_mirea_app/presentation/app_notifier.dart';
7
7
import 'package:rtu_mirea_app/presentation/theme.dart' ;
8
8
import 'package:rtu_mirea_app/presentation/typography.dart' ;
9
9
import 'package:unicons/unicons.dart' ;
10
- import 'package:dot_navigation_bar/dot_navigation_bar.dart' ;
11
10
import 'package:salomon_bottom_bar/salomon_bottom_bar.dart' ;
12
11
import '../constants.dart' ;
13
12
@@ -43,45 +42,13 @@ class ScaffoldWithNavBar extends StatelessWidget {
43
42
body: Consumer <AppNotifier >(
44
43
builder: (_, value, child) => navigationShell,
45
44
),
46
- extendBody: true ,
47
- bottomNavigationBar: DotNavigationBar (
48
- boxShadow: [
49
- BoxShadow (
50
- color: Colors .black.withOpacity (0.1 ),
51
- blurRadius: 8 ,
52
- ),
53
- ],
54
- marginR: const EdgeInsets .symmetric (horizontal: 16 ),
55
- paddingR:
56
- const EdgeInsets .only (bottom: 5 , top: 7 , right: 8 , left: 8 ),
57
- backgroundColor: AppTheme .colors.background03,
58
- splashBorderRadius: 30 ,
59
- currentIndex: navigationShell.currentIndex,
60
- onTap: (index) => _setActiveIndex (index),
61
- items: [
62
- DotNavigationBarItem (
63
- icon: const Icon (Icons .library_books_rounded),
64
- selectedColor: AppTheme .colors.colorful02,
65
- ),
66
- DotNavigationBarItem (
67
- icon: const Icon (Icons .calendar_today_rounded),
68
- selectedColor: AppTheme .colors.colorful03,
69
- ),
70
- DotNavigationBarItem (
71
- icon: const Icon (Icons .widgets_rounded),
72
- selectedColor: AppTheme .colors.colorful04,
73
- ),
74
- isDesktop
75
- ? DotNavigationBarItem (
76
- icon: const Icon (UniconsLine .info_circle),
77
- selectedColor: AppTheme .colors.colorful06,
78
- )
79
- : DotNavigationBarItem (
80
- icon: const Icon (Icons .person),
81
- selectedColor: AppTheme .colors.colorful06,
45
+ bottomNavigationBar:
46
+ navigationShell.route.toString ().contains ('home' )
47
+ ? null
48
+ : AppBottomNavigationBar (
49
+ index: navigationShell.currentIndex,
50
+ onClick: (index) => _setActiveIndex (index),
82
51
),
83
- ],
84
- ),
85
52
);
86
53
}
87
54
},
0 commit comments