fix bottom_nav_bar

merge-requests/927/head
Elham Rababh 4 years ago
parent 63af889e2f
commit ad1ae99707

@ -41,56 +41,61 @@ class _BottomNavBarState extends State<BottomNavBar> {
elevation: 4, elevation: 4,
shape: CircularNotchedRectangle(), shape: CircularNotchedRectangle(),
color: Colors.white, color: Colors.white,
child: Padding( child: Container(
padding: EdgeInsets.symmetric(horizontal: 18), decoration: BoxDecoration(
child: Row( border: Border.all(color: Color(0XFFEFEFEF), width: 1)
mainAxisSize: MainAxisSize.max, ),
mainAxisAlignment: MainAxisAlignment.spaceAround, child: Padding(
children: [ padding: EdgeInsets.symmetric(horizontal: 18),
BottomNavigationItem( child: Row(
icon: DoctorApp.home_1, mainAxisSize: MainAxisSize.max,
activeIcon: DoctorApp.home_active_1, mainAxisAlignment: MainAxisAlignment.spaceAround,
svgPath: "assets/images/svgs/bottom_nav/home-active.svg", children: [
changeIndex: _changeIndex, BottomNavigationItem(
index: widget.index, icon: DoctorApp.home_1,
currentIndex: 0, activeIcon: DoctorApp.home_active_1,
name: TranslationBase.of(context).home, svgPath: "assets/images/svgs/bottom_nav/home-active.svg",
dashboardViewModel: widget.dashboardViewModel, changeIndex: _changeIndex,
), index: widget.index,
BottomNavigationItem( currentIndex: 0,
icon: DoctorApp.schedule_1, name: TranslationBase.of(context).home,
activeIcon: DoctorApp.schedule_active_1, dashboardViewModel: widget.dashboardViewModel,
svgPath: "assets/images/svgs/bottom_nav/schedule-active.svg", ),
changeIndex: _changeIndex, BottomNavigationItem(
index: widget.index, icon: DoctorApp.schedule_1,
currentIndex: 1, activeIcon: DoctorApp.schedule_active_1,
name: TranslationBase.of(context).mySchedule, svgPath: "assets/images/svgs/bottom_nav/schedule-active.svg",
dashboardViewModel: widget.dashboardViewModel, changeIndex: _changeIndex,
index: widget.index,
currentIndex: 1,
name: TranslationBase.of(context).mySchedule,
dashboardViewModel: widget.dashboardViewModel,
), ),
BottomNavigationItem( BottomNavigationItem(
icon: DoctorApp.qr_reader, icon: DoctorApp.qr_reader,
activeIcon: DoctorApp.qr_reader_active_1, activeIcon: DoctorApp.qr_reader_active_1,
svgPath: "assets/images/svgs/bottom_nav/reader-active.svg", svgPath: "assets/images/svgs/bottom_nav/reader-active.svg",
changeIndex: _changeIndex, changeIndex: _changeIndex,
index: widget.index, index: widget.index,
currentIndex: 2, currentIndex: 2,
name: TranslationBase.of(context).qr, name: TranslationBase.of(context).qr,
dashboardViewModel: widget.dashboardViewModel, dashboardViewModel: widget.dashboardViewModel,
), ),
BottomNavigationItem( BottomNavigationItem(
icon: DoctorApp.dr_reply_1, icon: DoctorApp.dr_reply_1,
activeIcon: DoctorApp.dr_reply_active_1, activeIcon: DoctorApp.dr_reply_active_1,
svgPath: "assets/images/svgs/bottom_nav/reply-active.svg", svgPath: "assets/images/svgs/bottom_nav/reply-active.svg",
changeIndex: _changeIndex, changeIndex: _changeIndex,
index: widget.index, index: widget.index,
currentIndex: 3, currentIndex: 3,
name: TranslationBase.of(context).replay2, name: TranslationBase.of(context).replay2,
dashboardViewModel: widget.dashboardViewModel, dashboardViewModel: widget.dashboardViewModel,
), ),
], ],
),
), ),
), ),
); );

Loading…
Cancel
Save