comment code not working in good way until we fixed

pull/168/head
Elham Rababah 6 years ago
parent 1ad3652913
commit 9a18c405c7

@ -55,8 +55,8 @@ class _MedicineSearchState extends State<MedicineSearchScreen> {
super.didChangeDependencies(); super.didChangeDependencies();
if (_isInit) { if (_isInit) {
_medicineProvider = Provider.of<MedicineProvider>(context); _medicineProvider = Provider.of<MedicineProvider>(context);
requestPermissions(); // requestPermissions();
initSpeechState(); // initSpeechState();
} }
_isInit = false; _isInit = false;
} }
@ -135,18 +135,19 @@ class _MedicineSearchState extends State<MedicineSearchScreen> {
searchMedicine(context); searchMedicine(context);
}, },
textInputAction: TextInputAction.search, textInputAction: TextInputAction.search,
prefix: IconButton( // TODO return it back when it needed
icon: Icon(Icons.mic), // prefix: IconButton(
color: // icon: Icon(Icons.mic),
lastStatus == 'listening' ? Colors.red : Colors.grey, // color:
onPressed: () { // lastStatus == 'listening' ? Colors.red : Colors.grey,
myController.text = ''; // onPressed: () {
setState(() { // myController.text = '';
lastStatus = 'listening'; // setState(() {
}); // lastStatus = 'listening';
// });
startVoiceSearch(); //
}), // startVoiceSearch();
// }),
inputFormatter: ONLY_LETTERS), inputFormatter: ONLY_LETTERS),
), ),
SizedBox(height: 15,), SizedBox(height: 15,),

@ -44,14 +44,14 @@ class _BottomNavBarState extends State<BottomNavBar> {
currentIndex: 0, currentIndex: 0,
name: TranslationBase.of(context).home, name: TranslationBase.of(context).home,
), ),
BottomNavigationItem( // BottomNavigationItem(
icon: DoctorApp.message_icon, // icon: DoctorApp.message_icon,
activeIcon: DoctorApp.message_icon_active, // activeIcon: DoctorApp.message_icon_active,
changeIndex: _changeIndex, // changeIndex: _changeIndex,
index: _index, // index: _index,
currentIndex: 1, // currentIndex: 1,
name: TranslationBase.of(context).replay2, // name: TranslationBase.of(context).replay2,
), // ),
BottomNavigationItem( BottomNavigationItem(
icon: DoctorApp.schedule_icon, icon: DoctorApp.schedule_icon,
activeIcon: DoctorApp.scdedule_icon_active, activeIcon: DoctorApp.scdedule_icon_active,
@ -60,14 +60,14 @@ class _BottomNavBarState extends State<BottomNavBar> {
currentIndex: 2, currentIndex: 2,
name: TranslationBase.of(context).mySchedule, name: TranslationBase.of(context).mySchedule,
), ),
BottomNavigationItem( // BottomNavigationItem(
icon: DoctorApp.menu_icon, // icon: DoctorApp.menu_icon,
activeIcon: DoctorApp.menu_icon_active, // activeIcon: DoctorApp.menu_icon_active,
changeIndex: _changeIndex, // changeIndex: _changeIndex,
index: _index, // index: _index,
currentIndex: 3, // currentIndex: 3,
name: TranslationBase.of(context).services, // name: TranslationBase.of(context).services,
) // )
], ],
), ),
), ),

Loading…
Cancel
Save