Most voted "dart" questions
Dart is a web-based language developed by Google. The goal of the Dart language is to replace Javascript as the main language of browsers. Programs in this language can be either run on a virtual machine or compiled for Javascript.
Learn more…410 questions
Sort by count of
-
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
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
answer160
viewsType int variable output error in Dart code
I am starting in Dart code before going to the flutter, there is an error on the line var numero = int.parse(); which cannot insert an integer value, as I must enter an integer value correctly? In…
-
0
votes1
answer117
viewsHow to limit the number of decimals in Dart?
How do I limit the amount of decimals displayed? How do I set this value 15.592783505154639Kg equals 15.59Kg using Dart? import 'dart:io'; main() { CalculoIMC(); } CalculoIMC(){ stdout.write("Digite…
-
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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…
-
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…