Category "flutter"

why flutter give me url null in url launcher?

ElevatedButton( onPressed: () async { const url ='https://www.facebook.com'; if (await canLaunch(url)) { await launch(url,forceWebView: true,en

How ListView scroll to bottom accurately?

It seems Controller.position.maxScrollExtent is a predicted value since the bottom items haven't been rendered,Controller.jumpTo(Controller.position.maxScrollEx

How to solve the error FAILURE: Build failed with an exception. * Where: Script 'C:\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1005

I'm trying to run the application in the android emulator but this error keeps popping. FAILURE: Build failed with an exception. * Where: Script 'C:\flutte

Flutter - type 'Future<dynamic>' is not a subtype of type 'List<Map<String, dynamic>>'

I am using mysql1: ^0.19.2 and trying to fetch some data from a database to display in a select_form_field (select_form_field: "^2.2.0"). The database table I'm

upgraded depricated uuid pacakge in Window

npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be pro

Expected a value of type 'Map<String, dynamic>', but got one of type 'Null'

I'm using flutter and managing data by cloud_firestore. I could send data to firestore, but now I'm Struggling with reading data. In firestore, data are stored

Error occur when I am building my app.(Execution failed for task ':app:checkDebugAarMetadata'.)

What went wrong: Execution failed for task ':app:checkDebugAarMetadata'. Multiple task action failures occurred: A failure occurred while executing com.android

why can't create user using stream chat api in flutter?

I'm trying to create a chat screen in my flutter application using Stream chat API. the problem is when I try to create a channel with two users it shows that t

Closure call with mismatched arguments: function '_TaskTileState.checkboxCallback'

I'm getting this error in my code ======== Exception caught by widgets library ======================================================= The following NoSuchMetho

Error: Expected a value of type 'int', but got one of type 'String'

screenshoot Error: Expected a value of type 'int', but got one of type 'String' at Object.throw_ [as throw] (http://localhost:50026/dart_sdk.js:5405:11) at Obje

Flutter Navigator Observer get path of old and new route

I am trying to call an function, if the Router changes the first part of a Route. I do use a NavigatorObserver and know about the functions didPop/didPush. I ha

Flutter - App Store Connect rejection due to needing "functional link to the Terms of Use (EULA)" in "your app's binary"

Our flutter app, with a subscription membership in-app-purchase, is repeatedly being rejected by App Store Connect for the following reason : Specifically, we

FlutterError : The key [LabeledGlobalKey<FormState>] was used by multiple widgets

I'm getting an error while trying to navigate to the menu_screen widget. I'm pretty sure that the GlobalKey menuFormKey is not used inside another widget but I

NavigatorKey not found on MaterialApp.router

Previously using MaterialApp there was a way to set a GlobalContext using a NavigatorKey located on the MaterialApp widget. However now it's looks like that alt

Authentication Api using user name and password in flutter web

I try to authenticate api using user name and password it worked good in flutter android app but in flutter web do not get any data below my authentication func

How return bool from write on file

Am using this for write file on phone Future<File> writeData(data) async { final file = await _localFile; return file.writeAsString(data); } how can

Is there a way of assigning a future variable to another variable without returning null in dart?

I was trying to pass a data to a variable that returns future but it returns out to be null even though I'm using async and await. what is I'm missing here ? im

_CastError (Null check operator used on a null value) because it requires loading

So I am creating an Instagram clone and when I open the feed screen, an error that says '_CastError (Null check operator used on a null value)' pops up. But whe

Flutter testing: static method I need to mock inside code

I want to test a method that is responsible for a button tap (let's call it onButtonTap()), one of the first methods is a call to static method from utils file,

How to write integration test in provider

Could not find appbar title "Exam Start" await tester.pump(Duration(seconds: 1)); final titleFinder = find.text("Exam start"); expect(titleFinder, findsOneWid