Most voted "flutter" questions
Flutter is a mobile application development SDK created by Google.
Learn more…510 questions
Sort by count of
-
0
votes2
answers82
viewsError in word "context" flutter
I wanted the listtile to open a specific page, but it’s giving me an error in the "context". The code is as follows:: class MyHomePage extends StatelessWidget { @override Widget build(BuildContext…
-
0
votes2
answers35
viewsSplashscreen with named routes
I’m using the Splashscreen package in my app. I want the splashscreen screen the app identify that there is already a logged in user that was done with firebase. However, along with the route call…
-
0
votes1
answer28
viewsHow to navigate from Radiobutton?
I’m doing a project where the user has to choose one of the languages below and then click the "finish" button. However, as I would navigate between screens, if there are three possible screens that…
-
0
votes0
answers24
viewsCan anyone help me resolve this error: A Renderflex overflowed by 473 pixels on the bottom
import 'dart:convert'; import 'package:flutter_spinkit/flutter_spinkit.dart'; import 'package:singlecheff/consts/consts.dart'; import 'package:flutter/material.dart'; import…
-
0
votes1
answer54
viewsView Mobx Information Snackbar
I want to display a Snackbar with login error, but I did not find information about it and the way I tried it not working... the login itself works normal, authenticated and all, but I can not pass…
-
0
votes1
answer38
viewshow to send multiple files to firebase at once with flutter
I need help with this question. I’m new to flutter. and can’t send more than 1 file at the same time to firebase with this code I can send 1 file without problems, but when selecting 2 files in the…
-
0
votes1
answer116
viewsHow do I line up at the bottom corner of the screen in the flutter?
I am new to flutter and need to align a Row() inside a columnar() that already has other items. The screen I’m making contains a main column that stores all the content of the page and other…
-
0
votes1
answer223
views -
0
votes1
answer96
viewsHow to add values in a Firestore cloud collection in flutter Dart?
How can I add up the therebyValue' field - image below - using the Dart programming language in flutter? I tried to do as in the code below but it didn’t work. RecuperarLista() async { int a;…
-
0
votes1
answer54
viewsSearch a list with Mobx and Get It
I’m trying to make my search system work The entire app is made in Flutter, Mobx for State and Get It for Injection and the data comes from a json API I’ve tried it in some ways, but I can’t make it…
-
0
votes0
answers37
viewsFlutter camera autofocus timeout error
I’m using the Flutter camera to create a camera component. The component works relatively well, if not for the fact that when I try to take a blurred footo, the component returns a timeout error.…
-
0
votes2
answers70
viewsHow to wait for return to continue running the app? - Flutter
I have a function retornaDescricao() which makes an http request and edits the variable controller with the received value. However, the value is only changed when I press the Elevatedbutton for the…
-
0
votes1
answer45
viewsCircularcountdowntimer doesn’t change the time when I change the page
I’m new to flutter and I’m creating a fitness app for a school project. However, I have a problem with my Circularcountdowntimer, because when I press the button to change the exercise the time…
-
0
votes0
answers32
viewsHow do I receive a variable or function within the Textformfield input without having to type and save to the list with Flutter?
I need to insert a text inside the input so there is no need for typing, it was a way to edit the data stored in Firebase, when I edit the data, goes to an editing screen with the data in each…
-
0
votes0
answers48
viewsFlutter + Php + Mysql
Well, I’m new to flutter but basically I’m doing a simple registration with 3 fields. Summarizing my problem is that I can register normally by Androidstudio emulator, but when Gero APK and I try to…
-
0
votes0
answers17
viewsHow to pass a <Gridtile> list to Staggeredgridview?
I’m returning a list of images to put on a Staggeredgridview. The problem is that I am unable to find a way to pass the list within Networkimage(). How could I do this? List<GridTile>…
flutterasked 3 years, 6 months ago Vitor Freitas 11 -
0
votes0
answers38
viewsFlutter - Dropdown<List> from SQFLITE Database - No List on screen, only after hot-Reload
Guys, I have this problem and I don’t know how to fix it. I have a method list await, but my screen does not wait to load the list to list, only when I update with hot-Reload, the screen works. My…
-
0
votes0
answers21
viewsHow to browse a multidimensional list in flutter
I have a list that I will use to form a Drawer, passing it title, link and icon. List<List<String>> DrawerList = [ ["Perfil", "/perfil","Icons.vpn_key"], ["Turmas",…
-
0
votes0
answers32
viewsFlutter Navigator "Context argument type cannot be assigned to the 'Buildcontext' parameter type"
I’m trying to navigate to another page on the flutter, so I insert the line: Navigator.push(context, Materialpageroute(Builder: (context) => Loginpage())); however context of that error: The…
-
0
votes1
answer21
viewsTabbarview inside a Slivertoboxadapter
I need to add a tabbarview inside the Slivertoboxadapter, but nothing I try works. I want to generate a chart for each tab, but I can’t even insert any message. Below is my code: class StatsScreen…
-
0
votes1
answer62
viewsHow to remove Textfield edge?
I’m making an autocomplete, it works perfectly, but it adds this edge on the input, I already used border.None, enabledBorder: Inputborder.None, among other things and I’m not able to remove. If…
-
0
votes1
answer116
viewserror: The argument type 'Jsobject' can’t be Assigned to the Parameter type 'Buildcontext'
I’m trying to navigate from the login screen to the homescreen, but when creating the void _onSuccess is returning the error: error: The argument type 'Jsobject' can’t be Assigned to the Parameter…
-
0
votes0
answers33
viewsConflict between firebase and Goole ads
I’m on a project that uses firebase and google ads. When I add the google ads dependency on pubspec.yaml I get the following error while compiling: Launching lib main.Dart on LM X525 in debug…
-
0
votes0
answers29
viewsHow do I mount Listview of the result of an API call?
I am making the call of an HTML and the return in JSON var dadosJson = json.decode( response.body ); is the following string: flutter: resposta dadosJson: {_embedded: {banks: [{number: 001, name:…
-
0
votes0
answers45
viewssetState on Flutter works only the first time
I’m studying Flutter and decided to make a cart, I have the product widget and widget to list products. The problem is that when I first click on add it adds in the cart and updates the amount in…
-
0
votes1
answer31
viewsProblem displaying a captured json from an API in my column widget - Flutter
I have a problem I couldn’t solve, so I’m coming to you to give me a hand. I’m searching for a json from an API, the data search process goes well (I use a print() that shows me that if I got the…
-
0
votes0
answers39
viewsError after updating package name (app does not run)
I rename my package and after my application does not run anymore. I’ve updated the name on all the files that are required (Androidmanifest in debug, main and profile and Kotlin) but it doesn’t run…
-
0
votes0
answers21
viewsdropbox_client Authorize with token does not work on IOS
Hello, I have an application developed in flutter that use Dropbox to upload images, I access Dropbox by dropbox_client https://pub.dev/packages/dropbox_client and upload images. However, on IOS it…
-
0
votes1
answer32
viewsErrortext conditional does not work
I’m trying to use a validation on Textfield, I tried it as Textformfield too, but without success! I would like that when typing or pressing the Confirm button, the error message appears or not in…
-
0
votes0
answers30
viewsUpdate status without creating widget directly - Flutter
I have in my main.Art a Bottomnavigationbar that should always be visible. Some screens cannot be accessed by Bottomnavigationbar icons. Main.Dart vvvvv void main() async { await _storage.ready;…
-
0
votes0
answers30
viewsHow to keep login active Flutter Firebase
Good afternoon, I’m having a hard time keeping my login active in my app, either by email or by google account. I tried the Sharedpreferences method but I was not very successful. This is the login…
-
0
votes1
answer38
viewsUse flutter Icon class by code
Good night! I’m getting the code from a flutter icon as per the documentation below: https://pub.dev/documentation/flutter_for_web/latest/material/Icons-class.html Therefore, as documentation to use…
-
0
votes0
answers37
viewsHow to use the same Stream on different pages in Dart?
Hello! I am creating an application using Clean Architecture as a base. In the context of my problem, I have a Tabbarview that has 4 indexs. In the numbers 0 and 3, there is a component that will be…
-
0
votes1
answer30
viewsDisplay Future variable on an Elevatedbutton
I am making the call in my database of the boarding number, I need to put this number inside a button, but my variable "boarding" appears as undefined inside the Elevatedbutton import…
-
0
votes2
answers26
viewsOpen Alert when user enters access screen
I needed as soon as the user accessed a particular application screen to open a alertDialog. But I can’t make it happen. I’ve tried opening with initState but it still won’t open. I have this modal,…
flutterasked 3 years, 4 months ago Marcelo Lemos 7 41 -
0
votes1
answer28
viewsHow to validate if the value of one form is equal to the value of the other in the Textformfield attribute'Validator()
Hello! I have a _textFieldValue() component, so you don’t have to replay the same code more than once. Component _textFieldValue() Widget _textFieldValue(String title, TextEditingController…
-
0
votes1
answer34
viewsSearchdelegate do not return to page in release mode
I have this code on Searchdelegate class CustomSearchDelegate extends SearchDelegate<String> { @override List<Widget> buildActions(BuildContext context) { return [ IconButton( icon:…
-
0
votes0
answers16
views(GETX) Class 'String' has no instance getter 'Description'." Tried Calling: Description
I’m trying to do 2 Dropdownbutton, the first that when selecting the UF the second list of its cities however I’m not getting at all, I’m making the request and adding the cities of this request in…
-
0
votes0
answers14
viewsCreation of Resources in Woocommerce
Good afternoon, I’m creating a flutter/Dart app and I’m not getting permission to create a new client. I’ve already modified . htaccess and everything. In my cPanel I have 5 domains and as I am…
-
0
votes0
answers36
viewstype 'Future<Dynamic>' is not a subtype of type 'Set<Marker>'
Basically this code searches for the delivery locations already inserted in the databank and adds a marker on the map for them, in addition to showing the real-time position of the user. The error…
-
0
votes1
answer32
viewsFunction to create buttons according to the database
I have in my database several information and that for each information there should be a button that directs the user to the screen where a guide will be displayed according to the chosen option.…
-
0
votes0
answers58
viewsPassword visibility icon appearing when it should not be displayed
I am making a login screen and in it I will leave the option to make visible or not the password. I already have everything set up, but for some reason a second button appears that I did not create.…
-
0
votes0
answers7
viewsFlutter : Devtools problem "Running the Contributed command: 'Dart.opendevtools' failed."
Basically from nothingness my Devtools stopped working, first it started and asked if I wanted to start it together every time I was going to debug something, today it appears to me like this:…
-
0
votes0
answers12
viewsHow to redirect to a specific screen by clicking on a notification with the app completely closed using firebase messaging > V9.0
I am using firebase messaging version 9.0 and wish to redirect the user to a specific screen when receiving and click a notification when the app is closed. I can currently redirect with the app…
-
0
votes1
answer30
viewsI’m having trouble with my flutter code
I am creating an application in flutter to train but this presenting the following error: Launching lib main.Dart on Motorola one Vision in debug mode... Running Gradle task 'assembleDebug'...…
flutterasked 3 years, 3 months ago Eduardo Treuherz 11 -
0
votes1
answer18
viewsobject appears in console but is not added to list
When added in the list, the objects appear in the console. however the list is not updated and no obj sent appears. import 'package:flutter/material.dart'; void main() => runApp(Home()); class…
flutterasked 3 years, 3 months ago Cleriston Lincoln 49 -
0
votes1
answer35
viewsI am making a code in flutter in case two list one horizontal and the other vertical, but between the lists stand a space as remove?
import 'package:flutter/material.dart'; class Menu extends StatefulWidget { const Menu({Key? key}) : super(key: key); @override _MenuState createState() => _MenuState(); } class _MenuState…
flutterasked 3 years, 3 months ago Matheus Teixeira 13 -
0
votes0
answers33
viewsHow to get the return of a javascript variable with Flutter Web
Colleagues, please, I need to receive the return variable from this encryption library below. My application is in Flutter Web, and I don’t know how to include Javascript in Flutter Web. I’ve done a…
-
0
votes1
answer31
viewsHow to read multiple values in a single line on Dart?
How do I read more than one value in a single line? For the exercise I’m doing says the following: the input file contains two rows of data. In each row there will be 3 values, respectively two…
-
0
votes0
answers22
viewsTextfield componentization with color changes
After componentization of a Textfield from the login page, the color changes (fillColor and labelStyle) do not work properly. The main class login_view calls the Component (Textfieldcomponent). //…