Category "dart"

flutter-how to download file with inappwebview

I want to use inappwebview to download files on a website, but when I try the code available at https://blog.codemagic.io/inappwebview-the-real-power-of-webview

How to remove an animation in Flutter?

I would like to remove an animation and just print the result but I don't know how to remove the animation from this result Here is where the result is: onPress

Text label that explains what a certain button in the app would do

I need to create a text label component that will act as an in-app tutorial explanatory label in Flutter. This text label should show up above a button explaini

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'