How to disable button in Flutter based on state
I made a delete button that pops up a dialog and makes you record the reason for the delete. I only want the submit button enabled if the user enters a reason. Here is what I have for that widget:…
I made a delete button that pops up a dialog and makes you record the reason for the delete. I only want the submit button enabled if the user enters a reason. Here is what I have for that widget:…
I want to test equality between these two request objects but I can not figure out how to implement the hash and equality operator on a third-party package for example http package. How can I use equatable package on the…
I am creating a home screen for my application where on top there is username with their photo below there is a slider after that there is a categories tiles and below that all the recipes will be shown in…
Can you tell me how can I go back to previous pages in my webview application? I am using the following code which works for android but not swipe on iphone - late WebViewController? webViewController; Future<bool> _onWillPop(BuildContext context) async {…
Im pretty new to flutter only a few months and still learning. Im making a survey app that uses firebase when submitting the answer i get this range error. flutter: RangeError (index): Invalid value: Valid value range is empty: 1…
I want to make an application that can change many languages, from many tutorials using localization, if using localization we have to write all the text in the application one by one in each json file to the language we…
this is sampele of my json response always show error like this
How can I scroll to specific section in flutter ? I have webpage with header main footer When i click footer, I want to go to the footer section. I just know we have to use ScrollController but ran out…
I have this animated container: AnimatedContainer( width: ScreenSize.getScreenWidth(context), height: _selectAll ? 10 : bottomBarHeight, color: _selectAll ? Colors.red : Colors.green, duration: const Duration(seconds: 2), curve: Curves.fastLinearToSlowEaseIn, child: const FlutterLogo(size: 75), ), I want that when _selectAll is true, the container…
I am still new to flutter and learning how to deal with lists. In this case, I have a list of millisecondsSinceEpoch so (List<int> in Firestore) and I want to generate a new List<DateTime> of dates from those integers. However,…