How to change the state in a bloc? – Flutter
I just started to study the bloc and I have a question. I need to change the color when the state is selected, and according to my logic, I have to do state = Colors.red, but unfortunately this is not…
I just started to study the bloc and I have a question. I need to change the color when the state is selected, and according to my logic, I have to do state = Colors.red, but unfortunately this is not…
I tried to display snackBar at the bottom when an error occurs by using the try ... catch syntax as shown below, but for some reason, it is not displayed. Does anyone have a solution for this? Widget _confirmButton() {…
i want to call data api based on the selected parameters, but i'm having a bit of trouble and this has been going on for a few days and it's still not done. this is the api you want to…
I'm new to Flutter and I have to make a list of rules where every item in the list is green and if you break a rule you can press it and change the color to red. I also have…
Have 'TextInputArea' widget, and want to keep this widget remain on screen (upper part of screen) all the time, Lower part of screen need to be changed as per BottomNavigationBar (it has three pages XX,YY,ZZ) is clicked But 'TextInputArea' is…
I have a Container whitch needs to include two TextField where i can insert a product name and description. It is supposed to appear, and take its place, when a FloatingActionButton is pressed. This is actually working till I insert…
I would like to know why I can not see the ListView content if I put it in Row that is inside Column? Thank you body: Center( child: Column( children: <Widget>[ Row( children: <Widget>[ Flexible( child: ListView( children: [ Text('Text…
So I'm Using Getx's routing in Flutter. I have a Product class that accepts an argument of the type Product const Produkt({ required this.product, }); I handle the navigation through GetPages, like: GetPage( name: Produkt.route, page: () => Produkt( product:…
I'd Like to get data in home screen of my flutter app, where I have list of OfferCards, these are generated from firestore via FirestoreQueryBuilder in my homeView like this FirestoreQueryBuilder<OfferData>( pageSize: 10, query: FirebaseFirestore.instance .collection('Offers') .orderBy('CreatedAt', descending: true) .withConverter<OfferData>(…
I am learning flutter. I have few doubts. For flutter app to run we do need a flutter engine, right? But when I download a flutter app from Play Store(android) or App store(ios) when do the flutter engine gets installed…