Category "flutter"

Crash when permission changed manually

Flutter app crashes when user manually changing location perimssion from allow to deny. Is this a normal behavior ?, i've tried to change manually the permissio

Create flutter chart with json api data

I'm creating a flutter app to receive data from the Yahoo finance API and show this data in a chart widget. This is my detail page, getting the "Symbol"-Informa

How to set status bar color if using sliver app bar

As I am having sliver app bar in my screen, I am not using AppBar() widget. So by default the status bar color is white. Is there a way to change the color of s

Generic navigation listener for whole application

I'm trying to find a way to setup a global Navigation listener in the Root of my app (MaterialApp) which can allow me to track all navigation events including t

Flutter pod install error when i add package firebase_core

I added my Firebase project for ios and android. I did not have a problem in Anroid, but when I run it on IOS, pod install gives an error. The error description

Android SDK built for x86 does not support profile mode?

it throws this error when I run --profile H:\MyApp>flutter run --profile Profile mode is not supported by Android SDK built for x86. but H:\MyApp>flutt

Flutter method channel error. { Unhandled Exception: MissingPluginException(No implementation found for method getBatteryLevel on channel battery) }

so i followed everthing from 'https://flutter.dev/docs/development/platform-integration/platform-channels?tab=android-channel-java-tab' but when I click the flo

Flutter OpenWeatherMap api fetch forecast

So... I got this One Call Api which also includes forecast for 7 days. I managed to get display the current weather (temp, and icon) but how do I get the foreca

Flutter - how to trigger a function after the async function is completed

Hi I would like for the addUserToFirestore() function to trigger after the code above has done being executed Future<void> registerAccount( String e

Deleting a folder from Firebase Cloud Storage in Flutter

I have a Flutter mobile app in which I am trying to delete a folder (and its contents) from Firebase Cloud Storage. My method is as follows: deleteFromFirebaseS

Experience with Revive Add-Server integration

We have an existing Flutter based mobile application, pulling advertising content from our own CMS, using REST API's and Cloudinary as the CDN. We are consideri

TextInputType.number incorrectly shows sign decimal buttons

According to the docs, TextInputType.number should show a keyboard without sign and decimal buttons, like this: But when I call TextField( : keyboardType:

What is the use of BlocSelector in flutter_bloc

There is no example found for the usage of BlocSelector. Anyone knows the real usage of it?

Flutter failed to build on Android due to icon_tree_shaker

After updating Flutter to 1.20.2 (also tried 1.20.1) app failed to build android apk in release mode. After flutter build apk I got error Script '/flutter/pack

how to pick an address from map in flutter

I want to create a widget that show google map with initial location, when user click on it it open google map with a marker and allow user to search or select

lib/home.dart:2:8: Error: Not found: 'dart:html'

I am new here and facing issues with the Android studio. I try to run main.dart (both ios and android) and get this warning message ** BUILD FAILED ** ↳ I

Freezed class with enum property throws error upon trying to serialize

I have a freezed class that takes an enum in its constructor, but when trying to perform the jsonEncode method on this class, it fails with the following error:

GetX middleware runs before binding?

Here is my Auth middleware: import 'package:donirajkrv/controllers/user_controller.dart'; import 'package:flutter/material.dart'; import 'package:get/get.dart';

Calling dispose function in stateless widget using provider

I maintain a state of a counter(let say) in a separate Singelton class I am using provider in my app and I want to reset that state when I pop the current scree

Couldn't handle popUntil()

I have an AppRouter like this; class AppRouter { //static const String homeScreen = '/'; static const String mapScreen = '/'; static const String filter