Category "flutter"

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

Accesing downloaded files from a Flutter app

I am working on an app that should manage downloaded files. For now I am able to download a file on both platforms, but I would need to know how can I get the d

Using photo_view package to fit image like BoxFit.cover

A basic usage as it, but in this case it is not fitted to screen borders. Is it possible to display it with a behaviour of BoxFit.cover ? A double tap make it f

Flutter: Autoroute : RouteGuard not working in AutoTabsScaffold

I am trying add auth guard for my AutoTabsScaffold [bottom nav] but it's not working, It's working in other navigation pages but not just inside my landing page

Flutter: How can I unit test a Timer used by a Bloc using blocTest?

How can I test a Timer inside a Bloc, using blocTest? I’m using the bloc library, with freezed to build the state and event objects (might not matter here

CocoaPods could not find compatible versions for pod "FirebaseFirestore":

I have a problem that I cannot seem to resolve. I have tried all of the solutions listed here previously, but nothing is resolving the error. I am building an a

How can I remove shadow above AppBar for Android in Flutter?

How can I remove the shadow above the AppBar for Android in Flutter? On the iOS Simulator the following Code works fine. Code: return Scaffold( ext

Android License issue during Flutter environment set up

I am having a problem while trying to set up the Flutter development environment. These are the steps I have performed: I downloaded flutter and extracted the f

TabBar icon color change animation

How to apply the same color change animation that's applied to TabBar text (label) to the icon at the same time, instead of instant changing the color of the ic

Lighthouse Performance improvement for flutter [Scroll]

So I've build a static website using flutter (web-app) which is hosted on Firebase Hosting. I checked my Lighthouse report using DevTools by chrome, and i get t

Fix all const warning flutter

How to fix this all const warning in VSCode? It's hard if I fix one by one.