Most voted "flutter" questions
Flutter is a mobile application development SDK created by Google.
Learn more…510 questions
Sort by count of
-
0
votes1
answer62
viewsHow to take off Floatingactionbutton from Bottomnavigationbar items?
I’m developing a screen with a floatingactionbutton in the middle of a bottom navigation however, it is very close to the menu items. How do I give a correct spacing? My code: class _NavigationState…
-
0
votes1
answer4227
viewsCreate an array list in the flutter
I have two pages. On the first page I want to return a list. I want to insert in this list the values that come from the second page. So the flow is more or less the following: I enter the second…
-
0
votes1
answer913
viewsImage in flutter’s Image.network URL does not work on physical device
I made a basic app, because until then, I only used Image.asset() to put picture, now I went to put Image.network() and the URL and it worked on the AVD I created, but when I do the APK and install…
-
0
votes1
answer74
viewsHow to multiply Widgets in a list?
Before you start doing the Back-End part of the app I wanted to see what this list style with more items would look like. class ListScreen extends StatefulWidget { @override _ListScreenState…
-
0
votes1
answer165
viewsHow to use linter in flutter/Dart to improve code quality?
In flutter/Dart Lint (process that parses the code to identify possible errors.) comes by default with some 'flexible' rules that allows an error code to compile and execute. Such rules can pass up…
-
0
votes1
answer833
viewsLayout button in flutter
I’m trying to build a video player. However I’m not getting to leave the button the way I’d like. It’s like I need to "extend" the size of the button so that the intersection point of borderRadius…
-
0
votes1
answer200
viewsHow do I list data from a model that receives a JSON but an array in the structure?
The goal here is to list the array tracking, but it presents this error below when I try: ERROR: Exception has occurred. Nosuchmethoderror (Nosuchmethoderror: The method '[]' was called on null.…
-
0
votes1
answer332
viewsFlutter - Change one image to another in a short period of time
Everybody, good afternoon, everybody! I have a grid with 2 items set with "on tap" to perform an action. These items have an image coming from /Assets.png and wanted the image to change to another…
-
0
votes1
answer124
viewsI cannot validate the current computer time with IF ELSE, on Dart
I’m trying to do a validation on Dart, where my function timevalider() has a variable of type dynamic, where he fits in with what I put in. I’m doing the following assignment time = new…
-
0
votes0
answers33
viewsBloc: Why does Sink not trigger my Stream function?
I have a problem, which I believe is understanding the concept in the use of Bloc. I understood that a Sink with a linked stream will always trigger the stream if an add ( "some information" ); But…
flutterasked 4 years, 7 months ago Valmor Flores 421 -
0
votes2
answers504
viewsCreating folder that does not erase when uninstall to save backup - Flutter
I am developing a backup system using path_provider, with the following code. // Busca o local que esta o arquivo Directory documentsDirectory = await getApplicationDocumentsDirectory(); final path…
-
0
votes2
answers836
viewsCheckbox in the Flutter
I’m trying to create a List, which shows the necessary ingredients, and next to them, a Checkbox, simulating what the user took or not. I tried Checkbox, Checkboxlisttile, but I have no idea what to…
-
0
votes1
answer87
viewsFlutter: Error message Could not update files on device: Httpexception
Hello, I am studying Flutter and recently I had a problem when I tried to run my project with Flutter run received the error message: Could not update files on device: Httpexception: Connection…
-
0
votes2
answers73
viewsUse of a _dolarChanged(String text) void function generating an error message in onChanged
I created the following function: void _dolarChanged(String text) { if (text.isEmpty) { _clearAll(); return; } final double dolar = double.parse(text); realController.text = (dolar *…
-
0
votes1
answer31
viewsProblems with Splitting in Flutter
Good evening!! I am creating a social network feed with Flutter, and I find myself with a problem in the display of the images. Divider should appear between the two images, however, what is…
-
0
votes1
answer135
viewsHow to return a registration layout based on a selected Dropdownmenuitem Flutter option
Good afternoon, everyone! I’m a beginner in development flutter and I’m having a hard time returning a specific registration layout based on the option selected by the user in Dropdownmenuitem.…
-
0
votes1
answer167
viewspageView with a bottomNavigationBar = error
Friends, I’m trying to make a pageView with a bottomNavigationBar, but I’m getting an error that I don’t understand why. In this line: currentIndex: controller.page.round(), the page is coming with…
-
0
votes0
answers303
viewsPath between 2 points with polylines, google maps route
I made an app using flutter where I want to determine a path between two points. I can do it, but the problem is that the line that connects the points A, B doesn’t respect the streets... I use a…
-
0
votes1
answer232
viewsHow Dart interprets a ()=>{x,y,z} Arrow in lambda/anonymous functions
Have a similar question here (referring to javascript) but I believe that there are different characteristics in the implementation with Dart. Example in Dart: void main() { printName(() => {…
-
0
votes1
answer73
viewsHow to run counter without click event?
How to run the click counter without having to click the button? Type starts app already starts 1, 2, 3... I tried it as follows, but I can’t start the project without the same event. void main()…
-
0
votes1
answer37
viewsHow to make a generation of text without scroll
I am trying to generate text like there in text("500g oats") but I want to generate without that scroll. There is some widget that can do this? import 'package:flutter/material.dart'; class…
-
0
votes1
answer174
viewsI’m having trouble understanding async no flutter
import 'package:flutter/material.dart'; import 'package:ouvinos_caprinos/especie/class/especie.dart'; import 'package:ouvinos_caprinos/especie/db/especie_database.dart'; import…
-
0
votes1
answer260
viewsHow to save given type map or array in firestore?
I tried it this way: createProduto(Produto produto){ Map<String, dynamic> model = { "nome" : produto.nome, "descricao" : produto.descricao, "precoCompra" : produto.precoCompra, "itens" :…
-
0
votes1
answer43
viewsWhy does Navbar persist even after the page change?
I made a Flutter screen using Cupertino, which by clicking on the "drive" field would open a "Drive" screen to choose the drive, but the Navigationbar that was used on one screen is being passed to…
-
0
votes0
answers184
viewsNavigation between screens in Flutter
I’m making an app where I need to open navigate to a new screen when I click on some Gridview container, it was working normally when the containers were each on an Inkwell, but the code is getting…
-
0
votes0
answers127
viewsHow to pass two variables in a steless with Flutter
Talk people! I’m starting on the flutter! Can you give me a light there? I take 'snapshot' from another screen with Navigator.of(context). push and on this screen Productscone need to pick up the…
-
0
votes1
answer142
viewsChange an entire Scaffold body
Hello! I’m trying to finalize an app, but I stopped in a problem. I have a screen with a Scaffold and a action in appBar with widget that returns the date. I would like to know how to update a text…
-
0
votes0
answers33
viewsScreens starting on full screen
I’m facing a problem with browsing between screens in my app, the screens are starting on full screen and I can’t leave it normal. What I call navigation void onDonePress() { // Do what you want…
-
0
votes1
answer201
viewsHow do I use http.get() in Flutter WEB?
I’m trying to run a Flutter mobile project on WEB. There is a part that we make a requisition http an endpoint to take a JSON data that is used the following excerpt: final response = await…
-
0
votes0
answers42
viewsWhy isn’t the Flutter page starting at the beginning by default?
The scrollable page is starting at a place below the beginning, not in the middle, not at the end, I initially thought it was because I was using a Listview inside a Container, without specifying…
-
0
votes1
answer207
viewsFlutter Autocompletetextfield with dynamic hintText
Description My App consists of two widgets: The first (Autocompleteinput) is composed of an autocomplete field (Autocompletetextfield) and a button beside it as shown in the following image: When an…
-
0
votes1
answer417
viewsHow to place an online symbol inside a flutter image
Hi, I have to put an online symbol inside an image, but I don’t know how to do it, I want something like : All I could do was: As I pass this green ball to image, as in the example up there, my…
-
0
votes1
answer163
viewsReturn value 0 or 1 with checkbox (Dart)
(I’m new to language) I have a checkbox to inform if the customer wants to receive (1) the push or not (0). My idea is to create a Dynamic variable (to receive all types) and then convert true=1 and…
-
0
votes0
answers426
viewsError after upgrading Android Studio and Flutter
Good evening guys, my project was all normal, and I went traveling and stayed 1 week away! I arrived today and had to update the android studio and the flutter and after that I’m getting an error…
-
0
votes1
answer317
viewsConfiguration of Flutter web and Firebase
I am trying to make a web application with Flutter Web and in my file index.html pasted the script indicated by google firebase, but when I run the application, it runs for hours "compaling…
-
0
votes1
answer352
viewsAnother Exception was thrown: Nosuchmethoderror: The getter 'zipcode' was called on null
I’m making a shipping calculator screen, the code ta all " working" however at the time of running the app and get on the calular screen presents me this Error Follows some Codes. import…
-
0
votes1
answer732
viewsFlutter - How to use Scrollview correctly when showing the keyboard?
I’ve seen several videos on youtube about it but in my code it doesn’t work like in the video. I’ve looked at some questions and some dirty using the code below, but it doesn’t solve the problem.…
-
0
votes1
answer84
viewsConsuming SOAP in Flutter, storing Cookie
Good morning everyone, I’m having a hard time, I need to consume a WS in SOAP, when I use Postman works, but when I try to work with the data in Flutter, it’s not working, I think it’s something in…
-
0
votes1
answer185
viewsRadiobutton in flutter with error
I’m having problems with this code, when I run the following error appears: "Unimplemented Handling of Missing Static target". What can it be? How can I solve this problem? import…
-
0
votes1
answer70
viewsCreating Listeners in Gridview using a List Flutter
I’m creating a menu with a gridview on the flutter. Shares are on a List: List<Map> actions = [ {"description": "Cadastro", "icon": Icons.people, }, {"description": "Alterar Senha", "icon":…
-
0
votes1
answer287
viewsHow to create a reusable dropdownButton in Flutter
I intend to create a dropdown reusable with Flutter, which is capable of receiving different lists of values as an argument. However, I get an error when creating a variable that will store the…
-
0
votes1
answer64
viewsStreambuilder does not return value - Flutter
Hello! I’m trying to return location values with StreamBuilder, but I’m not succeeding. In debug, it doesn’t even run Builder. I can’t find the problem. Here I create the Streambuilder, to bring the…
-
0
votes1
answer355
viewsSeparating Flutter components
Inside a alertDialog I created a column with the checkbox and then a Row with two Flatbutton, however they are side by side and I need them to be below the checkbox. Code AlertDialog( ... actions:…
-
0
votes1
answer49
viewsAPI call returning delayed data
What’s wrong with my function? Because, the data called in the second api returns with enough delay. How do I load the screen only after the return of the second API? var os = new List<OS>();…
-
0
votes2
answers46
viewsHow to implement Voidcallback in a List of Items to list in a Gridview?
I tried to follow the tutorial of this link http://www.macoratti.net/19/07/flut_gridv1.htm because it has a list of items in gridview closer than I want to use. And then I tried to add an option to…
-
0
votes1
answer98
viewsTabbarview with card generating error while loading data into flutter
Good morning, I’m starting now in the flutter world and I’m mounting a Tabbarview card with data coming from a bank. I’m putting it inside Listview so I can separate it into tabs and load the data…
-
0
votes2
answers82
viewsProblem with value animation in Flutter
I have a problem with a numerical transition animation. I wanted the animation to always continue from the last generated number, but is always repeating the first value transition made I’ve looked…
-
0
votes2
answers264
viewsListview doesn’t update on the screen!
I’d like to ask for a beginner’s help on Flutter/Dart. I’m programming an app to add cards that represent real estate, and each card represents a property within a Listview. But I can’t update…
-
0
votes1
answer232
viewsWhere am I wrong in cheering up by showing and hiding widgets in the flutter?
I made a list divided into two gridview because I wanted only the first 3 items to be displayed and with a button to display more items later. I don’t know if it was the right way to do it but it…
-
0
votes1
answer48
viewsDoubt Flutter - List
Good morning, you guys! I am doubtful to bring the elements of a list. Could someone assist me? I am new to the flutter. What am I doing: I have a list who is called listed that brings me the…