Category "flutter"

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

How can I decode a string from base64 to binary to decrypt it with RSA in flutter?

I have an encrypted string with RSA that I have encoded in base64 to put it in a QR-code: echo "thesearesecretlogininfos"|openssl rsautl -encrypt -pubin -inkey

Blue line at the end of the screen flutter

I'm creating a dashboard from flutter. in my code, I have used the singlechildscroll view and it's not working. and I'm getting a blue line at the end of the pa

Flutter Text only break lines at whitespaces

My issue is that flutter breaks Text at non whitespace characters: How can I tell flutter not to beak text at the "/" but only when it encounters a whitespace?