Category "flutter"

Flutter loads old version of app every time I restart the app

Every time I run the flutter app from IntelliJ, it loads an old outdated version of the app from days ago. The new version of the app is only loaded after a hot

How to design Filters in Flutter?

I am new to flutter and I wonder how to develop filters in flutter something like this (screenshot taken from google images), so I just want to know how to do f

Detect when we moved back to previous page in Flutter

We moved from Page1 to Page2 but now from Page2 we move back again to Page1 like this: Navigator.of(context).pop(); How can we detect on Page1 that we went ba

How to make flutter app responsive according to different screen size?

I am facing difficulties to make it responsive according to various screen sizes. How to make it responsive? @override Widget build(BuildContext context)

Add indicator to BottomNavigationBar in flutter

any way to add indicator to BottomNavigatorBarItem like this image?

I want to show data change dynamically but its does not work

I am trying to show the product offer time left by using the difference between DateTime Now and the deadline date which is come from API, Here The Code: GridVi

iOS App was building fine yesterday, but it won't build today

Yesterday I pushed my first Flutter app to TestFlight in the App Store. While the app was running okay on my iPhone 5 and my iPhone Xr when I build directly to

Mongo Dart SubDocument Updating and Editing

Hello I have a data like that: { "_id":ObjectID(), "field1":"field1 value", "group1":{ {"name": "name1", "favoriteBooks":{"book1","book2"}}, {"name": "name

Is there a way on Flutter to identify and navigate to a marker from my current Location?

I have a group of markers which I retrieved and plotted on a google maps interface. I have also implement a geolocator package that gets users location. So I ha

Navigator.pop won't close the simpledialog in flutter

I'm building android app using flutter. I have a problem to close the simple dialog programmatically. Now I have a stateful page named ListVessel. This page

LateError (LateInitializationError: Field 'documentSnapshot' has not been initialized)

I am using Cloud Firestore in my Flutter application and I am facing this issue in app: LateError (LateInitializationError: Field 'documentSnapshot' has not bee

How to use more than just if/else in ternary operator?

I am having trouble with writing the right syntax for this ternary operator. I want to put like three 'if statements' and one 'else statement'. But as far as I

Existing Flutter project not show in Android Studio while import

I am importing existing flutter project in Android Studio. while open project it's only show External Library folder but not show project folder. I am trying t

Preload network images to avoid load times

I'd like to add and remove items on top of each on the press of a button to avoid load times for network images. My idea is to add ~5 images to a Stack on top o

How to change Status Bar and App Bar color in Flutter?

I'm trying to change the color of the system status bar to black. The configuration seems to be overridden by the AppBar class. I can achieve what I want by ass

How exactly to use Health package in Flutter

I am using health 3.2.0 https://pub.dev/packages/health package and after all the effort I am able to successfully access the authorisation. The problem I am fa

How To Create Folder in Local Storage/External Flutter?

import 'package:path_provider/path_provider.dart'; import 'dart:io'; void createAppFolder() async { final directory = await getExternalStorageDi

flutter: set font of SnackbarAction label

Is there a way to set the font of a SnackBarAction in flutter? It seems to use the default system font. SnackBarAction( label: 'my text', // ho

When I wnat to get package flutter it show me HTTP error 403: Forbidden

I am working on flutter project in Intellij Idea. when I want to add a package in pubspec.yaml, it leads to below errror: HTTP error 403: Forbidden package:p

Can't build a flutter project with PathProvider dependency

Disclaimer: First of all, this is my early attempt to play with Flutter. So forgive me if is a noob question. I had been playing with an MVP-Clean architecture