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
-
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
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
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
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
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
answer217
viewsDeclare a variable using var or the type itself?
I started studying Dart and came across this question. In java, it is always used the type in the declaration of a variable. However, Dart allows you to declare both using "var" and the variable…
-
0
votes1
answer96
viewsHow to use attributes of a subclass of an abstract class?
I have the following scenario: an abstract class "Listitem" and the classes "Headingitem" and "Contact". The relationship between them is as follows: ... } abstract class ListItem{ } class…
-
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
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
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…
-
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
votes2
answers689
viewsHow do I select this in the Firebase Cloud Firestore database?
how do I do this kind of select in the Firebase Cloud Firestore database ? _results = (await connection.query('select id from produtos where numero_serie = $_numeroSerie')) I need to get the product…
-
0
votes2
answers1502
viewsHow to get the value of the variable outside the Future method in Flutter?
I am developing in a book app and am stuck on the screen where will open the file . pdf. I need to get the path of the mobile directory using path_provider to send to pdfviewer but I can’t get the…
-
0
votes2
answers408
viewsHow to use distinct to bring a single result of each Dart/Flutter item
Hello, I am trying to bring a single result of each consuming title from an API. As this picture shows I’m having repeated titles What way could I make it right, it follows code as far as I’ve tried…
-
0
votes0
answers71
viewsHow to dynamically leave . package configuration in flutter
How to leave dynamic the configuration of . package in flutter, by default of my machine (Windows) is like this: async:file://C:/flutter_windows_v1.5.4-Hotfix.2-stable/flutter/.…
-
0
votes1
answer173
viewsTextfield flutter using Cupertino theme
I need to do a search bar next to this field "Contacts": child: CustomScrollView( //semanticChildCount: totalRows, slivers: <Widget>[ CupertinoSliverNavigationBar( largeTitle:…
-
0
votes1
answer1836
viewsHow to change the color of an Icon through Boolean Return in Flutter?
I have a method that queries books that are favorite in the Firestore database, the book page has a star icon in black color, use isFavorite method to query whether the open book is preferred by the…
-
0
votes1
answer1814
viewsKeep login active on flutter
I want when the user logs in, even if the application is still logged in. I am using an own api made in Nodejs. Through my researches I saw that you can do this using the plugin Sharedpreferences.…
-
0
votes1
answer430
viewsDeserialize JSON - Dart/Flutter
I have a JSON and want to play it in an array. final String jsonSample='[{"id":1},{"id":2}]'; var json = jsonDecode(jsonSample); print (json); //resultado é: [{id: 1}, {id: 2}] So far so good, but…
-
0
votes1
answer222
viewsHeader in an http.send request
I have a request by stream which is as follows:. Future<Stream<Chamado>> getChamado() async{ final String url = 'www.api' final client = new http.Client(); final streamRest = await…
-
0
votes1
answer229
viewsHow to capture packets from a TCP connection using a proxy?
I’m writing a TCP proxy to capture packets sent from my computer to a remote server and vice versa. I connected a fake test server on localhost and Proxy works well, intercepting and directing the…
-
0
votes1
answer1014
viewsFormat Duration - Timer
I am trying to format in Dart/Flutter the timer a certain time elapsed, whose code: Duration _tempo = new Duration(); Text('Tempo: ${_tempo.inHours}:${_tempo.inMinutes}:${_tempo.inSeconds}'), The…
-
0
votes2
answers488
viewsVoidcallback x Function what’s the difference?
In the documentation it states that part of dart.ui; /// Signature of callbacks that have no arguments and return no data. typedef VoidCallback = void Function(); From what I understand VoidCallback…
-
0
votes1
answer949
viewsHow do I get every Gridview Card in flutter to open a specific link?
Do I need to know how to differentiate one card from another in Gridview from the flutter? Because I need to open, as soon as clicked, a specific link for each card. I have a code that opens a…
-
0
votes1
answer166
viewsconcatenate a link in a Map
I receive data from an API of The Movie DB, of which I must take an image link,the movie poster. The problem is that the data of this image only generates me half the link. Code: class…
-
0
votes1
answer737
views -
0
votes1
answer182
viewsHow do I disable the stagehand template when creating a web flutter project?
I’ve tried to disable using the command pub global deactivate stagehand , however I cannot create any project if this template is not enabled. Vscode asks if you want to activate it using the…
-
0
votes1
answer38
viewsGet User Directories (Windows)
Is there any way to get the system directories? In my case I am trying to get the folder Download of user logged The most I could get was the briefcase temp of the user. import 'dart:io'; main() {…
dartasked 4 years, 9 months ago rubStackOverflow 7,372 -
0
votes2
answers1988
viewsScrollview with a Fixed Container in the Footer - Flutter
I would like a Scrollview with a fixed container in the footer because in it I will position a banner of admob but I cannot fix this container I want it to be independent of the scrollview and…
-
0
votes1
answer38
viewsHow to apply Sliverappbar class code to Flutter
I found in Flutter’s documentation the Sliverappbar. However, as I am starting with Flutter, I have doubts about how and where to insert the code within my project in Flutter. Should I create a…
-
0
votes1
answer278
viewsPrintar or draw widget with flutter
I have the following dialog and would like to generate a "voucher" so that the person could share it, as if it were proof of payments that the bank applications generate. I managed to take a "print"…
-
0
votes1
answer38
viewscall a file by Listtile
I have an apparently simple doubt (difficult for me as a beginner), but I created a navigation Drawer, and in this Drawer has the Listtile, I need to know how to call a file by this list. ListTile(…
-
0
votes1
answer290
viewsWidget Slider and flutter_staggered_grid_view Slider
How to individualize the actions of these Widget Slides? The problem is that when I slip one, the other also reacts as if it were a clone. I’m using the "flutter_staggered_grid_view Slider 3.0…
-
0
votes1
answer169
viewsThe Schedule function of the local flutter notification does not work, does anyone know what it might be?
import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:flutter_local_notifications/flutter_local_notifications.dart'; import…
-
0
votes0
answers1129
viewsError while trying to install the application in flutter on physical mobile
I’m having trouble installing my application on my physical phone(Redmi 6 note PRO), I’ve done some tests and the problem is in the plugin authentication with facebook, flutter_facebook_login, if I…
-
0
votes1
answer1183
viewsWhen to use "map()" or "toList()" methods?
In the example below, the two methods basically do the same job, go through the list of objects getting each item from the list. A difference is noted in the iteration using map(), in the last…
-
0
votes0
answers417
viewsDoubts onPressed integration with Google Maps Flutter
I set up a canvas and I’m having a hard time doing something On the buttons I wanted to put to work onPressed linked to the google maps API. Like, when I click on one of the buttons, it will tell me…
-
0
votes3
answers331
viewsIterate in Map<List, String>
How to iterate on a Mapof the kind Map<List, String>? List all values, pay key value: [1, 'A']. void main() { print(_mapList.map); //?? // _mapList.map((i, s) =>{ // }); } Map<List,…
-
0
votes1
answer2121
viewsSimple GET request to a Rest API in flutter
I’m trying to get a json by making a request to an API, but it’s making a mistake when making the request. Follows the code: Future<Map> timeStamp() async { const request =…