skip to Main Content

Showing a button to the user based on the data entered in the TextFormField – Flutter

final TextEditingController _weight = TextEditingController(); if (_weight.text.contains(RegExp(r'[0-9]'))) Padding( padding: const EdgeInsets.only(bottom: 20), child: BMIButton( onpressed: () { Navigator.push( context, PageTransition( type: PageTransitionType.rightToLeft, child: BMIHeight(), inheritTheme: true, ctx: context), ); }, )) I'm trying to show an OutlinedButton when the user…

VIEW QUESTION
Back To Top
Search