comment code not working in good way until we fixed

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

@ -55,8 +55,8 @@ class _MedicineSearchState extends State<MedicineSearchScreen> {
super.didChangeDependencies();
if (_isInit) {
_medicineProvider = Provider.of<MedicineProvider>(context);
requestPermissions();
initSpeechState();
// requestPermissions();
// initSpeechState();
}
_isInit = false;
}
@ -135,18 +135,19 @@ class _MedicineSearchState extends State<MedicineSearchScreen> {
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,),

@ -44,14 +44,14 @@ class _BottomNavBarState extends State<BottomNavBar> {
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<BottomNavBar> {
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,
// )
],
),
),

Loading…
Cancel
Save