Category "dart"

How to Scan documents in flutter

How to scan documents in a flutter with crop and editing? I am working in an app which required documents scanning and creating a .PDF file. I have come across

PlatformException (PlatformException(ERROR_GEOCODING_COORDINATES, Service not Available, null))

How can I convert location latitude and longitude to a formatted address? I'm trying with geolocator plugin but the line- List placemark = await Geolocator().pl

How can a named route have URL parameters in flutter web?

I'm building a web-app which needs to have a route that gets a post ID and then it will fetch the post using the ID. How can I have URL arguments let's say /pos

How to avoid full page reloading when keyboard pops up?

Check out this video for problem demo https://youtu.be/GsdWcTEbUbg As there is a large number of code, I will try to summarize the structure of the code here.

Download Files in Flutter InAppWebview

I am Using the flutter_webview_plugin Package for displaying Web Page. On the Webpage, we had a feature to download files. the logic for the Downloading File is

Fetch data from firestore inside a stream map

Is it possible to let a stream await during a fetch from firestore? I want to achieve that a user also fetches his own roles from the firestore database. Of cou

How to make InkWell `onLongPress()` override tap on a TextField inside of it?

I have a TextField inside of an InkWell with an onLongPress() callback. The problem is, despite the fact that even when long pressing on the TextField, I see th

The argument type 'Future<Widget>' can't be assigned to the parameter type 'Widget'.dart

Here I have to use pdfImageFromImageProvider function to stateless widget. So, Is it possible to resolve this issue using stateless widget? Future<Widget>

flutter waning schedule binding while using listview builder

import 'package:firebase_storage/firebase_storage.dart'; import 'package:flutter/material.dart'; import 'package:firebase_core/firebase_core.dart'; import 'pack

How can I use Future builder with provider?

My main objective is to show a CircularProgressIndicator before I get a location address placename but I keep getting this error The getter 'placeName' was cal

GeneratedPluginConstraint , Fatal error: module 'firebase_auth' not found @import firebase_auth;

so I've got this error in my last project while trying to link it with firebase for my flutter app. So for this project , I downloaded it from my github which I

Getting Incorrect use of ParentDataWidget error when I use ListView

In this part of my application I have ListView, when I run app I get this error and I can't resolve that: Scaffold( body: Directionality( textDirection: TextD

Convert List <double> to Double

I want to convert the double type of list into a double variable, my code is something like this... var _first=<double> [108,105,90.833,87.7,88.6]; v

How to parse over different elements in a HTML document (in Dart/Flutter) and keep the order intact

I have a large HTML document containing important information of different types in sequence. I'm parsing in Dart/Flutter Obtaining the raw information is fine

TextField inside of Row causes layout exception: Unable to calculate size

I’m getting a rendering exception that I don’t understand how to fix. I’m attempting to create a column that has 3 rows. Row [Image] Row [T

Flutter error, Null check operator used on a null value

Whenever I tried to do register and tap on the register button then I am having this type of problem with the null check operator used on null values. I get thi

How do you detect the host platform from Dart code?

For UI that should differ slightly on iOS and Android, i.e. on different platforms, there must be a way to detect which one the app is running on, but I couldn'

Mockito generate an invalid override for Methods that have as parameter an other generated class (generated from Moor)

We generate our database entities with moor. We have an database service as an facade for all database access. There we have the method Future<DatabaseEntry?

I want to build a dynamic Tab Bar and corresponding pages which contains a list of items corresponding to that tab using complex JSON data in flutter

I'm trying to build a dynamic Tab bar using flutter that displays tabs with the tab names corresponding to my JSON data and then for each key I want to map the

Flutter: Play sound on button press

I'm very new to programing and especially flutter. I want to write an soundboard, basically a list of buttons and the job of each button is to play a sound that