Category "dart"

Does flutter_background_geolocation fetch the location even when app is killed?

I’ve been using background_locator to fetch the location of the user in the background even when app is killed. To be honest, it’s the only package

getSelectedText on inactive InputConnection flutter

I have this weird problem,When i try to enter value to textfield the keyboard comes up when i try to type the the keyboard goes away , i am also doing fill up

google maps flutter check if a point inside a polygon

I'm working on flutter project using google-maps-flutter plugin, and I want to check if the user location is inside the polygon that I created on the map. There

display loading indicator while list is being populating from an api

am new to flutter ... and am calling an api in my app and i want to display a loading indicator while the api function is finished and every thing is retrieved

Unable to load asset image (Flutter)

I'm repeatedly having the following exception in terminal while trying to add an asset image in the appBar of my Flutter application (running on an Android emul

Flutter Dio HTTPS Certificate Validation Ignoring onBadCertificate - CA Cert Problem?

I've run into a bit of a quandary. I'm writing a client/server application. The frontend is in Flutter and uses the Dio http package, the backend is Java. The b

Send Email for SMTP wtih Mailer/Mailer2 in Dart

i have the next problem whe send a mail for smtp Dart VM version: 2.1.0-dev.6.0 (Thu Sep 27 09:51:34 2018 +0200) on "macos_x64" pubspec.yaml environment:

How to save Base64 String to file and view it using Flutter

I need to download and view file (if possible, for Image, PDF, etc) using Flutter. My problem is, the file that I want to download is Base64 String. How can I

Flutter error - Gradle task assembleDebug failed with exit code -1

I'm new to flutter. I just created a new project in flutter and have not even altered the code. And when I run the code I get the following error. Launching li

dart:ui:1: Error: Not found: dart:ui. flutter/dart:

When I start a debugging session (pressing F5) I receive the following messages: dart:ui:1: Error: Not found: dart:ui. Exited (sigterm) There is no indicatio

Flutter - Adding Container (widget) in GridView when click a button?

I wanted to add a container widget in the GridView when a button is clicked. I was able to do this with the column widget but could not do it with GridView. im

Unable to overwrite a Dart/Flutter value - setting today's date correctly on pressing button

apologies for a simple question but I just started my Dart/Flutter hobby and ran into the following issue: I wanted a simple App that has a defined end date ("d

Remove the spaces between Gridview in Flutter

I want to remove the spaces between gridview children. I will provide an image of what I need and what below respectively. I used the GridView() by the way. Gr

Flutter - Lines between containers

I made a Flutter page but I have 2 lines that I don't know how to hide. This is my piece of code: return Column(children: <Widget>[ Stack( alignment

App not returned to portrait mode in full screen mode

I'm trying to put an App in full screen mode, but when I return to portrait mode, the full screen mode continues Widget build(BuildContext context) { MediaQ

Remove space between widgets in row flutter

I need to remove the space between two or more Text widgets in a Row. This is the code using a Row Row( mainAxisAlignment: MainAxisAlignment.start

When should I use a FutureBuilder?

I was wondering when I should use the future builder. For example, if I want to make an http request and show the results in a list view, as soon as you open th

Why am I getting errors while adding launcher icon in flutter project?

So, I am trying change the default flutter launcher icon with my one. I am using the flutter_launcher_icons: ^0.9.2 from pub.dev. The code in pubspec.yaml: depe

How to refresh an AlertDialog in Flutter?

Currently, I have an AlertDialog with an IconButton. The user can click on the IconButton, I have two colors for each click. The problem is that I need to close

Error: NoSuchMethodError: The getter 'sessionToken' was called on null

Hello fellow programmers! I am starting in the world of Flutter programming. I am following a course on Udemy, the questions are never answered by the teacher a