Category "flutter"

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

Flutter Print on Android Built In Printer

May i ask help to use flutter for print in my android built in printer ? I already search in everywhere but not found a clue but i just try use sunmi pos refere

Does StatefulWidget not rebuild State every time it has new data?

The widget TrainsPage is added to the build graph in main.dart, when the corresponding menu button is clicked. This is done twice: once when _routes is empty an

Couldn't handle popUntil()

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

Does StatefulWidget not rebuild State every time it has new data?

The widget TrainsPage is added to the build graph in main.dart, when the corresponding menu button is clicked. This is done twice: once when _routes is empty an