Null check operator used on a null value – Flutter
I'm getting this error when i was tried to use different pages based on the user role. I don't know how should I use the ? or ! in the StreamBuilder or the class itself. i don't know it said…
I'm getting this error when i was tried to use different pages based on the user role. I don't know how should I use the ? or ! in the StreamBuilder or the class itself. i don't know it said…
i was trying to create a news app with news api, but i got a weird error when 1 tile of the news actually showedup but there's also an error message in the app. i need help with how do…
I have 5 sizedBox and each sizedbox has many widgets,sizedboxes are inside a container inside scaffold, when I run my application, got an message in emulator that : Column( children:[ SizedBox(... SizedBox(... SizedBox(... SizedBox(... SizedBox(... SizedBox(... ], ), Its one…
I'm trying to manage the users roles using firebase auth and firestore but when i try to pass the snapshot.data to the class i create to save the user date in firestore i got this error. i followed a tutorial…
I am working on a statefulWidget and my purpose is to make sure that the next button is not clickable until an option (in this language is selected). However it doesn't seem to work, I also added Yaesin's(Someone who answered)…
body: FutureBuilder( future: determinePosition(), builder: (context, snapshot) //error here{ if (snapshot.connectionState == ConnectionState.waiting) { return CircularProgressIndicator(); } else if (snapshot.hasError) { return Text("Error "); }else if(snapshot.hasData){ return Column( children: [ Text(currentAddress), The body might complete normally, causing 'null' to be…
I want to pass to lists which are destinations and coordinates. I had to separate them because I have to scrape the data first then geocode them. Here is my code: Future<void> getCoordinates()async{ for(int i=1 ; i < destination.length ;…
i got problem when i dont know to make each buildrow go to each page?this is for buildDrawer can you help me with this? builDrawer fuction this for profile screen.dart _buildDrawer() { return ClipPath( clipper: OvalRightBorderClipper(), child: Drawer( Container( height:…
`hi i am new in flutter and i got this problem using my codes when i change the page i can not stop the music below are my codes what should i add `hi i am new in flutter and…
I want to disable a button for 900ms(using flutter). How can I do that? if (isButtonDisabled == false) { incrementCounter(); AudioPlayer().play( AssetSource( Assets.correct_answer_audio), volume: 1.0); _onTyping(); await Future.delayed( const Duration(milliseconds: 900)); Navigator.of(context).pop(); ); }