diff --git a/lib/screens/medicine/medicine_search_screen.dart b/lib/screens/medicine/medicine_search_screen.dart index d45c7349..3db62d00 100644 --- a/lib/screens/medicine/medicine_search_screen.dart +++ b/lib/screens/medicine/medicine_search_screen.dart @@ -55,8 +55,8 @@ class _MedicineSearchState extends State { super.didChangeDependencies(); if (_isInit) { _medicineProvider = Provider.of(context); - requestPermissions(); - initSpeechState(); + // requestPermissions(); + // initSpeechState(); } _isInit = false; } @@ -135,18 +135,19 @@ class _MedicineSearchState extends State { searchMedicine(context); }, textInputAction: TextInputAction.search, - prefix: IconButton( - icon: Icon(Icons.mic), - color: - lastStatus == 'listening' ? Colors.red : Colors.grey, - onPressed: () { - myController.text = ''; - setState(() { - lastStatus = 'listening'; - }); - - startVoiceSearch(); - }), + // TODO return it back when it needed + // prefix: IconButton( + // icon: Icon(Icons.mic), + // color: + // lastStatus == 'listening' ? Colors.red : Colors.grey, + // onPressed: () { + // myController.text = ''; + // setState(() { + // lastStatus = 'listening'; + // }); + // + // startVoiceSearch(); + // }), inputFormatter: ONLY_LETTERS), ), SizedBox(height: 15,), diff --git a/lib/widgets/shared/bottom_nav_bar.dart b/lib/widgets/shared/bottom_nav_bar.dart index 8b552468..6a791627 100644 --- a/lib/widgets/shared/bottom_nav_bar.dart +++ b/lib/widgets/shared/bottom_nav_bar.dart @@ -44,14 +44,14 @@ class _BottomNavBarState extends State { currentIndex: 0, name: TranslationBase.of(context).home, ), - BottomNavigationItem( - icon: DoctorApp.message_icon, - activeIcon: DoctorApp.message_icon_active, - changeIndex: _changeIndex, - index: _index, - currentIndex: 1, - name: TranslationBase.of(context).replay2, - ), + // BottomNavigationItem( + // icon: DoctorApp.message_icon, + // activeIcon: DoctorApp.message_icon_active, + // changeIndex: _changeIndex, + // index: _index, + // currentIndex: 1, + // name: TranslationBase.of(context).replay2, + // ), BottomNavigationItem( icon: DoctorApp.schedule_icon, activeIcon: DoctorApp.scdedule_icon_active, @@ -60,14 +60,14 @@ class _BottomNavBarState extends State { currentIndex: 2, name: TranslationBase.of(context).mySchedule, ), - BottomNavigationItem( - icon: DoctorApp.menu_icon, - activeIcon: DoctorApp.menu_icon_active, - changeIndex: _changeIndex, - index: _index, - currentIndex: 3, - name: TranslationBase.of(context).services, - ) + // BottomNavigationItem( + // icon: DoctorApp.menu_icon, + // activeIcon: DoctorApp.menu_icon_active, + // changeIndex: _changeIndex, + // index: _index, + // currentIndex: 3, + // name: TranslationBase.of(context).services, + // ) ], ), ),