Most voted "flutter" questions
Flutter is a mobile application development SDK created by Google.
Learn more…510 questions
Sort by count of
-
1
votes0
answers71
viewsPage Transition - Change Screen After Successful Email Submission Message - Flutter
I’m a beginner in Flutter, I need help with something that although it seems simple I can’t find a solution, not even a widget that helps me with it. Even if it was a direction it would help me! I…
-
1
votes2
answers57
viewsCan I run two flutter projects with different versions on the same machine?
I’m codifying an app in the version Flutter 2.2.2, now I received a task to help in a friend’s app, but his app is in version 2.1.3 and I want to know how I can run these two projects on my machine…
-
1
votes1
answer280
viewsAsynchronous function with Futurebuilder returning a list of Widgets
My function was to obtain data from a system and mount the widgets. It was synchronous and works perfectly. children: _confere .obterDados(data) .map( (d) => Conferencia( dados: d, ), ) .toList()…
-
1
votes2
answers1131
viewsConvert Map to String to fill Dropdown in Flutter
I’m having a hard time filling one dropdown. Using data from a query sqflite I have already made the following codes: A Future map that returns my database categories in the following format: [ {…
-
1
votes0
answers809
views -
1
votes1
answer361
viewsCatch the return of a Alertdialog to treat willpopscope
I have a function called showAlertDialogSimNao() and this receives the name parameter and content. I would like to take the return of this function and treat at the end of the application. However…
-
1
votes1
answer132
viewsDrawer all white, nothing shows up
I’m having trouble creating the SiderBar. The Drawer nothing appears. Everything is blank. My man who calls this file is: import 'package:Cardapio/consts/consts_app.dart'; import…
-
1
votes1
answer694
viewsList on the Query screen the REST API , JSON on Flutter
I’m having trouble dealing with the return of a REST request. API: Rails is working properly. my job Future <Map> _getProdPromo() async { http.Response response = await…
-
1
votes2
answers314
viewsConditional with async in flutter
I have the following function, which returns me either "FREE" or "PREMIUM". The return of the database works perfectly. Here is the code. userInfoConst() async { try { var uid = await…
-
1
votes2
answers1773
viewsHow to sort a list of objects in Dart?
Future<void> _getAllPesagens() async { List<Pesagem> pesagemFinal = List(); await pesagemHelper.getAllPesagems().then((listaP) { print(listaP); if (listaP.isNotEmpty) { for (var peso in…
-
1
votes1
answer3453
viewsFlutter Container filling the full screen with rounded edges
I would like to know how to make a layout similar to the pictures below in flutter. I tried to use a container, but it did not fill the screen, when I used height: double.infity it disappeared from…
-
1
votes1
answer317
viewsProblem updating a list after inserting a data from another page
I have a page that has a list of the names of "students" registered in a given course. Then, I click on a button to add. This button leads to a screen with all the names of the "students". The…
-
1
votes1
answer131
viewsHow do I pass an authentication token using the signalR client in Flutter?
I have a flutter mobile app that needs to connect to a signalR hub that needs a touch of authentication. In the angular client I do as follows and function correctly: this.hubConnection = new…
-
1
votes1
answer459
viewsFlutter Dart consuming a lot of RAM memory during build
I have installed the flutter for web, desktop and android. The problem happens in all platforms that I try to run a project, and it takes a long time to build the project, before it didn’t take that…
-
1
votes0
answers57
viewsHow to create messages using Futuredelayed?
Guys, I’m new to the flutter language and I have the following problem. As the image below, the client asked that instead of loading, he should be passing 3 messages, as if it were a slide. How do I…
flutterasked 4 years, 6 months ago Thiago Correa 293 -
1
votes1
answer365
viewsError retrieving URL from Firebase, Flutter
Good night!!! I am developing an app in which it is possible to post photos. The user opens the camera (or picks it up from the gallery with Imagepicker) and clicks a button on the Appbar. When…
-
1
votes1
answer138
viewsSet the application version to the default 4 numbers
A company has had a standardized version of projects for many years and would like to continue using this standard to keep things easy in its environment. This standard that was adopted uses the…
-
1
votes1
answer660
viewshow do I use push notification to show a notification to the user when changing any status in the Flutter app
Hello! I’m new in the area and wanted to know how I make to create a method that can notify the user every time you have any change in the status of his order, because I’m creating a virtual store…
-
1
votes2
answers84
viewsConflict in installing the latest version of Hive
EDIT Has been corrected as per : https://github.com/hivedb/hive/issues/337 This issue is fixed with v1.4.2 update. 1.4.2 - Fixed dependency issues and minor improvements dependencies: hive: ^1.4.1+1…
-
1
votes2
answers1866
viewsFlutter - How to change the size of a Textfield correctly?
I want to leave my Textfield with a specific height, but when the user type a larger text than the field happens that is illustrated in the gif below. There’s no point in reducing the font size.…
-
1
votes1
answer303
viewsIncrease the size of the Flutter Gesturedetector
Hi, I have a GestureDetectorwho receives as his son a container with width: 20 and heigth: 20 and with that my Gesturedetector is only 20x20, as shown in the image (the size is only the gray ball)…
-
1
votes1
answer155
viewssetState() called after Dispose()
I am receiving this log in my application flutter after integrating google maps. I declared it right at the beginning of the code CameraPosition _posicaoCamera = CameraPosition( target:…
-
1
votes0
answers88
viewsImage does not update after upload
I am making an application using Flutter, but the image does not update on the screen, even after it has been saved correctly. See the steps I follow in programming. Step 1 I enter the page and it…
-
1
votes1
answer318
viewsError running build_runner 'Infinite loop at build time
I added the following packages and versions build_runner: ^1.10.2 and mobx_codegen: ^1.1.0+1 in the archive pubspec.yaml of my project Flutter and at the time of automatic code generation I got the…
-
1
votes1
answer160
viewsPut scrolling effect on my code
I’m new to flutter and would like to know how I do to have that scrolling effect I think is called scrollView, for the user to read the rest of the text The result is getting like this;…
-
1
votes2
answers53
viewsHelp with Stack, to create template as example
Good morning Personal! I’m learning Flutter, and found a problem to build this model of the following image: Row(children: [ Stack(children: [ Container( width: 400.0, height: 200.0, decoration:…
-
1
votes1
answer533
viewsSave files from download directory with flutter
I am generating a PDF file and I want to save it in the "downloads" of mobile device, I am using "downloads_path_provider: 0.1.0" for this but when I save I have the following error:…
-
1
votes0
answers139
viewsPass parameter to a module using Widgetmodule (Modular)
Good afternoon! I have a Pageview with Bottomnavigation and would like to use modular in the Pages I created the modules as Widgetmolude instead of Childmodule and everything is ok!!! ... body:…
-
1
votes1
answer156
viewsHow to change the size of the Dropdownbutton list?
I’m new to Flutter and created a Dropdownbutton where it works perfectly. But I need the same when opened, do not fill the entire screen as shown in image 1 and 2. I need the Dropdownbutton open its…
-
1
votes0
answers186
viewsHow do I keep background tasks running when the app goes to the background on Flutter Android?
I have an application for a (specific) company that has some tasks for the purpose of counting time, marking macros and generating notifications (electronic point type). When the app gets too long…
-
1
votes0
answers22
viewsProblem retrieving firebase lists using mobx
Whereas I have a product with several items/complements loaded from firebase.. Each of these items has a checkbox to check whether the user will add this item to the order or not. And, state control…
flutterasked 3 years, 10 months ago Alex Anderson 23 -
1
votes0
answers55
viewsSocial login using API in Laravel with Socialite to be consumed in an application in Flutter
I am developing an API using Laravel 5.8 to be consumed in a flutter application. So, I’m using Laravel Socialite to log in with Facebook and Google. However, I’m still new to these frameworks and I…
-
1
votes1
answer103
viewsError :"Getlifecyclebase" not found. You need to call "Get.put(Getlifecyclebase())" or "Get.lazyPut(()=>Getlifecyclebase())"
I’m using getx for state management and I’m having a mistake that says the following: "Getlifecyclebase" not found. You need to call "Get.put(Getlifecyclebase())" or…
-
1
votes1
answer35
viewsFlutter Web - Set parameters
good afternoon!! I am developing a web page using Flutter Web. But this page has a query string with a parameter, example: "? recipeId=E4rt6yu8iod33rt". I need to take this parameter inside Flutter.…
flutterasked 3 years, 9 months ago Daniela Martins 11 -
1
votes1
answer48
viewsLoad firestore flutter information
Can anyone tell me where I’m wrong with this code? import 'package:anime_app/models/home_page.dart'; import 'package:cloud_firestore/cloud_firestore.dart'; import 'package:flutter/material.dart';…
-
1
votes1
answer32
viewsProblem using firebase Listen with mobx
Hello, good afternoon! I am trying to make a query on firebase using Listen to be notified every time a document is changed. However, Listen is always notified but the widget itself is not, even…
-
1
votes0
answers28
viewsSplashscreem on Flutter - Error with Bottom Bar
Hey, how you doing? So, I can’t make the splash screen work on the main where Curved Bottom is, because both of them, so the following doc is added to the home: of main.dart. When I add the splash…
-
1
votes1
answer75
viewsHow to receive a list of parameters in a property correctly?
I’m using this widgets library: https://pub.dev/packages/flutter_rounded_date_picker The library makes it possible to disable certain dates within a calendar. Originally in the original documented…
-
1
votes0
answers27
viewsFlutter Navigator error
Good afternoon, I’m having a problem with Flutter’s Navigator: Through a certain screen I’m pushing a route this way: Provider.of<AuthProvider>(context, listen: false).getAddresses()…
-
1
votes1
answer56
viewsFlutter: equivalent CSS image-Rendering in Flutter
I have an API that returns pixel art’s, this API returns only images with small size: 25x25, 50x50. Problem As the images are very small it is not possible to display these images at a higher…
-
0
votes1
answer271
viewsHow to create a unique Drawer?
I would like to create a Drawer unique to my entire application and get a consistency on it. How can I do this without having to rewrite it on all my pages? For example, I have the following Drawer…
-
0
votes1
answer483
viewsHow to return data from a thread to the runtime layout in flutter
There is how to thread using the flutter and return the processing result on the screen? I have the following code. In the main class _Myhomepagestate I have the layout and function _process(). The…
-
0
votes2
answers278
viewsCHANGE PATH WINDOWS 7
Hello, to boot my Flutter course, one of the requirements is to change the windows path to 'flutter bin'. The problem is that my PATH already has a value and when I click on "edit", there is no list…
-
0
votes1
answer688
viewsError message when buildar apk on Flutter console
When I try to give a flutter build apk --release in my app it returns the following error: FAILURE: Build failed with an exception. * What went wrong: Execution failed for task…
-
0
votes2
answers324
viewsColor-free code when filename starts with upper-case
I am using Intellij IDEA to develop using Flutter but when I name a new class with its name starting in uppercase the typed code remains the same color without highlighting variables, Keywords and…
-
0
votes2
answers990
viewsAdd label to a Container in Flutter
I would like to add a label like the image below on the edge of a container, the code of my container is this: new Container( decoration: BoxDecoration( borderRadius: BorderRadius.circular(5.0),…
-
0
votes1
answer71
viewsError while trying to integrate firebased cloud notification into Dart
Guys, I’m trying to push Notifications to my application users in Flutter, however when I do the method void initState() { \\\\\ } and configure the entire notification system, the compiler returns…
-
0
votes1
answer95
viewsAfter the 0.7.0 update of firebase_auth I can no longer log in with Google. How do I proceed to log in with google+firebase?
After the user used the Google login option he used this code, but after updating the firebase_auth for version 0.8.0+1 this code broke: var fUser = await fAuth.linkWithGoogleCredential( idToken:…
-
0
votes1
answer478
viewsHow to put loading bar with Flutter Webview Plugin?
I implemented a browser using Flutter Webview Plugin (https://pub.dartlang.org/packages/flutter_webview_plugin), in the example below: class _VisualizadorDeUrl extends StatelessWidget { final items;…
-
0
votes1
answer845
viewsCalling Layout (Menu) elements in separate files
Good morning, you guys! I’m developing an App on Flutter and already have several screens developed. I would like to know how to create a file .Dart with a Bottom Navigation Menu and call him on all…