|
|
|
|
@ -7,8 +7,8 @@ import 'package:doctor_app_flutter/util/translations_delegate_base.dart';
|
|
|
|
|
|
|
|
|
|
class BottomNavBar extends StatefulWidget {
|
|
|
|
|
final ValueChanged<int> changeIndex;
|
|
|
|
|
|
|
|
|
|
BottomNavBar({Key key, this.changeIndex}) : super(key: key);
|
|
|
|
|
final int index;
|
|
|
|
|
BottomNavBar({Key key, this.changeIndex, this.index}) : super(key: key);
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
_BottomNavBarState createState() => _BottomNavBarState();
|
|
|
|
|
@ -40,7 +40,7 @@ class _BottomNavBarState extends State<BottomNavBar> {
|
|
|
|
|
icon: DoctorApp.home_1,
|
|
|
|
|
activeIcon: DoctorApp.home_active_1,
|
|
|
|
|
changeIndex: _changeIndex,
|
|
|
|
|
index: _index,
|
|
|
|
|
index: widget.index,
|
|
|
|
|
currentIndex: 0,
|
|
|
|
|
name: TranslationBase.of(context).home,
|
|
|
|
|
),
|
|
|
|
|
@ -48,7 +48,7 @@ class _BottomNavBarState extends State<BottomNavBar> {
|
|
|
|
|
icon: DoctorApp.schedule_1,
|
|
|
|
|
activeIcon: DoctorApp.schedule_active_1,
|
|
|
|
|
changeIndex: _changeIndex,
|
|
|
|
|
index: _index,
|
|
|
|
|
index: widget.index,
|
|
|
|
|
currentIndex: 1,
|
|
|
|
|
name: TranslationBase.of(context).mySchedule,
|
|
|
|
|
),
|
|
|
|
|
@ -56,7 +56,7 @@ class _BottomNavBarState extends State<BottomNavBar> {
|
|
|
|
|
icon: DoctorApp.qr_reader,
|
|
|
|
|
activeIcon: DoctorApp.qr_reader_active_1,
|
|
|
|
|
changeIndex: _changeIndex,
|
|
|
|
|
index: _index,
|
|
|
|
|
index: widget.index,
|
|
|
|
|
currentIndex: 2,
|
|
|
|
|
name: TranslationBase.of(context).qr,
|
|
|
|
|
),
|
|
|
|
|
@ -64,7 +64,7 @@ class _BottomNavBarState extends State<BottomNavBar> {
|
|
|
|
|
icon: DoctorApp.dr_reply_1,
|
|
|
|
|
activeIcon: DoctorApp.dr_reply_active_1,
|
|
|
|
|
changeIndex: _changeIndex,
|
|
|
|
|
index: _index,
|
|
|
|
|
index: widget.index,
|
|
|
|
|
currentIndex: 3,
|
|
|
|
|
name: TranslationBase.of(context).replay2,
|
|
|
|
|
),
|
|
|
|
|
|