skip to Main Content

Flutter – Why setState() method not working despite making related variable nullable

class _InputPageState extends State<InputPage>{ Gender? selectedGender; @override Widget build(BuildContext context) { return Scaffold( backgroundColor: mainColor, appBar: AppBar( title: Text( 'BMI Calculator' ), backgroundColor: Colors.transparent, elevation: 0, centerTitle: true, ), body: Column( children: <Widget>[ Expanded( child: Row( children: [ Expanded( child:…

VIEW QUESTION
Back To Top
Search