Category "flutter"

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.

Flutter Firestore ) Bad state: field does not exist within the DocumentSnapshotPlatform

I am implementing the project by referring to the sample code before firestore 2.0. I'm going to bring the last document of the Chat collector to StreamBuilder.

Flutter returns null for AppLocalization.of(context)

I am using Flutter to build a Web-App and I want to use the internationalization feature of flutter on my new app. I was following the Flutter-Tutorial and I tr

Hi, I am developing an mobile application using flutter and I am bit confused if the strategy I am following is correct?

I created a separate Stateless widget called CustomAppBar will certain parameters. Every I need appBar in my app. I will use CustomAppBar and give required para

"WidgetsBinding.instance!.addPostFrameCallback((_) => yourFunction(context));" does not execute

So I created a custom NavBar, when you click on the icons it runs the animations for the icon. Problem: When starting the application the animation of a specifi

How to Adjust crossAxisCount(in gridview) based on gesturedetector

Like in the gallery app that it comes in our phones, when we zoom in we see less items, when we zoom out we see more items Is there a way to achieve this in Flu

How to add gradient color in card?

How to add gradient color in the background of a card ? Should I reproduce this card with a container and a box decoration or is there another simple way ?

How can we add / remove the object values with respect to entries with hashmap?

List<ServiceModel> serviceList = [ ServiceModel(id: "12", name: "Repair", subServiceList: [ SubServiceModel(name: "Toilet Repair", id: "123"),

Flutter _AssertionError 'initialValue == null || controller == null': is not true. Error

I have a code like this: TextEditingController adSoyadTextBox = TextEditingController(text: "Loading.."); // ... TextFormField( controller: adSoyadTex

how to resolve sqflite error : MissingPluginException sqflite

I created my database with this function: void CreateDatabase() async { database = await openDatabase( 'todo.db', version: 1, onCrea

How to do file operations (create/write/update/delete files) using the Flutter "saf" Package

How to do file operations (create/write/update/delete files) using the Flutter "saf" Package. link:- pub.dev/packages/saf I didn't find any solutions on Google.