Most voted "flutter" questions
Flutter is a mobile application development SDK created by Google.
Learn more…510 questions
Sort by count of
-
0
votes1
answer294
viewsError when connecting API to Flutter (Dio)
Good afternoon! I’m trying to learn how to use the Dio to integrate an API that I am also developing and for this I tried to carry out a simple test. I simply tried to make a print on the terminal…
-
0
votes1
answer81
viewsField recording as Null in Firestore Flutter
I’m trying to record a document inside another document (nested Documents) in Flutter with Firestore. The model is a property that has some fields, and next to the fields a collection of comforts,…
-
0
votes1
answer54
viewsUpdate method with flutter and sqlite generating error
Good morning, I am updating to sqlite with Flutter and am having the following error: NoSuchMethodError: The method 'update' was called on null. I built the code according to the documentation where…
-
0
votes1
answer290
viewsHow do I update a Widget via a controller in an Onchanged field?
I cannot update a Text widget that should show the sum of two Textformfield as long as someone is changing it (Onchanged). What could I be doing wrong? (I’ve put Setstate everywhere and nothing has…
-
0
votes1
answer260
viewsCreating flutter tables generating error in such table
I’m having a problem where I’m not being able to create more than one table in the fluuter sqlite. When trying to create a table if the database has already been created generates the error no such…
-
0
votes1
answer82
viewsFooter covering other Scaffold widgets
I’m trying to make a very simple movie listing app, but when I did a footer, it was on top of the Scaffold widgets, covering some of them, like this: Follows the code: import…
-
0
votes1
answer591
viewsFilter in list with flutter
I need to filter in a list type JSON based on your ID, I am loading the data from the list and then having to filter with Where, but it returns empty even if your ID exists. The list goes like this:…
-
0
votes1
answer118
viewsUsing Sharedpreferences to get the default setting in Flutter
Good morning I’m starting to study Flutter and I was trying to create a Configuration screen, where after configuring the parameters on the screen, you can search at any time, and for this I’m using…
-
0
votes1
answer267
viewsI am unable to delete in Firebase database with Flutter
I can’t seem to delete a data in Firebase personal. I created a CRUD I’m already connected with Firebase, the project is configured, and I was able to add some data. But I can’t delete it. It’s not…
-
0
votes1
answer156
viewsHow to prevent the Bottom menu from displaying over the Drawer menu?
I’m wearing a Bottom Menu and receiving calls through an index. However, my Bottom Menu is displayed over my Drawer Menu. How can I fix this? @overrid Widget build(BuildContext context) {return…
-
0
votes1
answer365
viewsAutomatic and real-time validation of each Text field
I want every TextFormField is validated individually and in real time as the user type, I got this behavior using TextEditingController and updating the errorText of each TextFormField as validated…
-
0
votes0
answers61
viewsTrouble reading data in Firestore
I’m trying to build an app with Flutter using Firestore as a database. I’m having trouble locating a document’s undercutting. I’m having trouble recovering the data, at the end of the list function…
-
0
votes1
answer836
viewsDart/Flutter: how to use return of one method in another method? both invoked in the Class Constructor
I am using Dart/Flutter to develop an application and in it I have two Firebase Listeners methods, as shown below, and I would like to know how, in the constructor method, I trigger one of the…
-
0
votes1
answer282
viewsHow to create a specific Picker date
Here’s my code, no bugs, but I was trying to implement an adjustment on the Picker date and I couldn’t get until then. I wanted to create a Picker date that selected from week to week ie 7 days,…
-
0
votes0
answers90
viewsHow to change the default color of the area that appears when scrolling occurs on the screen?
On the home screen of this application I use a Sliverappbar and when I perform a Scroll on screen this area/ blue shadow appears. What is the name of this area? I want to allow the user to choose a…
-
0
votes1
answer40
viewsInsert ad for each x item in the list
Good evening, I’m having a little trouble adding an ad to every x item on my list. Searching I found this piece of code void _getData() { for (int i = 0; i < imageList.length; i++) { var image =…
-
0
votes1
answer847
viewsRangeerror (index) error: Invalid value: Valid value range is Empty: 0
An error occurred that I don’t know how to fix in Flutter: Rangeerror (index): Invalid value: Valid value range is Empty: 0 The idea is to load a profile page and this data is recovered with…
-
0
votes1
answer181
viewsHow to update Dropdownbutton Value State in Flutter with Getx without using Setstate?
I’m trying to make a Dropdownbutton in my project through a Futurebuilder. Before using Getx to update the Value state, I used setState and it worked. After modifying the project for the use of Getx…
-
0
votes1
answer508
viewsFlutter: Upload user image
Hello, I am trying to send via API the image of the user at the time of registration. I need to receive the image in Base64 and receive the image format type, example ("image/png" or "image/jpg").…
-
0
votes1
answer156
viewsWhy don’t push notifications from my app using one Signal arrive with the app closed or in the background?
I’m using one Signal to send the push notification to my app, I saw several tutorials to create the notifications and I did so : configuration of app/build Gradle: dependencies { implementation…
-
0
votes0
answers61
viewsIssue with Kotlin Gradle version
Good morning, I am developing an app with flutter and the application uses a dependency called barcode_scan that serves to scan QR code, when generating the APK Gradle an error with the version.…
-
0
votes0
answers47
viewsFirestore call returning before the end of the run, on flutter
I have a function to search the data in the firestore. I call the function that is in a controller class helper.getTodosAgendures(); Works well. Below a snippet of my firestore search function.…
-
0
votes0
answers32
viewsHow to remove the margin added to the label in Textfield that has prefixIcon when receiving Focus?
Current Goal: Container( padding: EdgeInsets.all(10), child: TextFormField( keyboardType: TextInputType.number, textInputAction: TextInputAction.continueAction, style: TextStyle(fontSize: 20),…
-
0
votes0
answers289
viewsError "setState() called after Dispose()" in flutter
Good morning, I’m getting the following error message on the flutter: [ERROR:flutter/lib/ui/ui_dart_state.cc(177)] Unhandled Exception: setState() called after dispose():…
-
0
votes0
answers64
viewsFlutter - Error filtering results using Searchdelegate
Hello! I’m having trouble filtering results inside a Searchdelegate. I created a "alertDialog" where the user can select the filters, and put the "Apply" button (see image below) to automatically…
-
0
votes1
answer47
viewsList values in PHP with Checkboxlisttitle and set an id for each checkbox listed
I am listing some values that are returned from a PHP API. In this list I am using a Checkbox for each information. When I click on any Checkbox, all items in the list are selected. How do I pick a…
-
0
votes1
answer68
viewsFlutter: Sublist model of the same model, (Class tree)
I am creating an application where I call an external API that returns a list of categories, each category can have a list of categories (subcategories). I don’t know how I can make my model right.…
-
0
votes1
answer1118
viewsHow to pass variables from a reusable widget to a flutter screen?
Hello, I’m seeking to reuse some widgets from my app, I’ll give a brief example. I have an Appbar, which in case is my General Menu, present on all screens. import 'package:flutter/material.dart';…
-
0
votes1
answer118
viewsHow to use a Bloc Pattern to manage 2 widgets in Flutter
I’m implementing Bloc in my app, in order to componentize widgets, but I am unable to receive the status changes of a Widget that is in the Widgetprincipal class to change another that is in the…
-
0
votes1
answer105
viewsFlutter - Mobx and Checkbox()
I’m using Mobx and I want to create a checkbox list, that list is already created, however I can’t make the values change when we click the checkbox, although the logic is running and adds items to…
-
0
votes1
answer328
viewsFlutter / Changing a Dropdown List after pressing a button
Good afternoon/night, I’m developing an application where on one of the screens I want to make a "chat" equal to Whatsapp. In terms of functionality, my chat differs from Whatsapp for being totally…
-
0
votes1
answer35
viewsAssign an array value and a variable
I need to assign a value of a list within a variable, but I don’t know how to call it inside the function. void calcula() { setState(() { double tensaoValue = double.tryParse(tensaoController.text);…
-
0
votes2
answers100
viewsMake textfield move when adding items in listview
My question is as follows: When placing the employee id and clicking add, enter the employee id and name in the list, as in the photo: When adding, the contributor overwrites the textfield... I’m…
-
0
votes1
answer177
viewsFlutter Exception Error in firebase_auth
Good afternoon, I’m using the firebase_auth plugin: 0.20.0+1 to authenticate user. When the user matches the login information no error is shown, however when the user is incorrect and an exception…
-
0
votes1
answer162
viewsFlutter : How to Recover a Screen with Data in Navigator Stack
I’m making a sales app, where I use a Drawer to move between the screens using the commands of Navigator, and found the following situation 1 - When opening the app it enters the main screen where…
-
0
votes1
answer87
viewsObserverlist + Mobx problem
Hello! I’m trying to make a checkbox list (Checkboxlisttile) using mobx, but every time I click on the box to check/uncheck I have to use the flutter reload or the setState to update the data. mobx…
-
0
votes0
answers30
viewsYou have how to get a list<Items> items;
Code: class ListarPedido { int numero; String localEntrega; String dataHora; String formaPagamento; List<Itens> itens; ListarPedido({ this.numero, this.localEntrega, this.dataHora,…
-
0
votes1
answer182
viewsFlutter Mobx load data at page start
I am studying/learning about mobx, and I am like the following problem: I have a controller that picks up and saves some settings with Shared Preferences. The saving part of the data is working…
-
0
votes1
answer62
viewsView Arrays Data Items
Model of the json: class ListaPedido { int numero; String localEntrega; String dataHora; String formaPagamento; List<ItensPed> itens; ListaPedido({ this.numero, this.localEntrega,…
-
0
votes1
answer20
viewsThis function has a 'Widget' return type, but does not end with a return statement
class Home extends StatefulWidget { @override _HomeState createState() => _HomeState(); } class _HomeState extends State<Home> { DataBaseHelper db =…
-
0
votes1
answer60
viewsFuture is not recognized in Flutter (Dart)
I’m studying Flutter and recently I’ve had a rather boring problem. I was using Future for my asynchronous programming and I did all the code, just like the example I was seeing. However, I realized…
-
0
votes1
answer58
viewsHow I add a hyperlink in the flutter Checkbox
Good morning, all right, guys? I would like to add a hyperlink in the "privacy policy" section, and I’m not getting it. Is it possible to do this? If anyone can help me, I’d appreciate it. import…
-
0
votes1
answer62
viewsMandatory checkbox in flutter
Good morning, I am developing an application and with the implementation of LGPD has become mandatory in the registration menus a checkbox with the famous "read and accept the terms of use and…
-
0
votes1
answer164
viewsState Management with Flutter
Good afternoon, I have a problem, I have my code below, and in it I do the following, when it opens the screen for the first time it searches data from an api and saved in the database. Soon the…
-
0
votes0
answers40
viewsHttp requests the local api in Laravel through mobile APP in Flutter
Good night, I have an API in Laravel that is only running locally through Valet and I am developing a mobile APP in Flutter where I intend to make requests to that same Laravel API. I have already…
-
0
votes1
answer35
viewsFlutter Error Post - Datatime
The following situation is occurring in my project. I have a model that has a property like Datetime, in Tojson I pass the date to the json using toIso8601String, in case I just put the current date…
-
0
votes0
answers43
viewsflutter - Migrate to Android embedding v2 - plugin audioplayers error
I have a bit of a problem (I believe). Earlier today, I was working on my app and everything was ok, but now at night I went running and got this error message: Upgrading to Android embedding v2 (I…
-
0
votes0
answers108
viewsDenied permission to create file in flutter
I have an application in Flutter that generate file and compact in the Android download directory and makes available to the user. In Devices with Android 9, It was no problem, but the on Android 10…
-
0
votes0
answers27
viewsShow my connected physical device in Android Studio on logcat
Debugging a code using Logcat is very good. Due to my machine not having many features I am using physical device to test my apps. Only this device does not appear in the list of connected devices…
-
0
votes0
answers70
viewsWhen sharing the link through the app does not load either photo or text in the iPhone version. Android works perfect
Hello, I have an app developed in Flutter. It has a list of news that the user can share. I’m using the Dart Packages share plugin. On android the sharing is working perfectly, I pass the link of…