Category "dart"

Flutter settings.name incomplete on page reload

I have a route setup. In the browser, it looks like this. localhost:1234/#/member/D8B5D7F17639A28FE83C47AFFC69592E? I use an onGenerateRoute function like this

What to do when listview.builder does not fit screen width in Flutter

The following is what is returned from a Flutter widget: return Center( child: Column( children: [ SizedBox(

Flutter Firestore: FirestoreBuilder with initial data

I'm making my first Flutter app and I encounter a problem and doesn't found any solution for it. I have a view where I render a Firestore document, and there is

First file created with Flutter leads to white screen

I got Flutter installed. No problems with flutter doctor. Installed Dart en Flutter in Android Studio, opened a new Flutter project and chose for Flutter (and f

Select center item of ListView Flutter

I need to implement a scrollable list, so that the element in the center is automatically highlighted. How to keep track of the central element and constantly h

Firebase Read Data Issue (Bad state: Snapshot has neither data nor error)

Showing this problem every time suddenly, There was no issue at first. AVD can run app but in physical device its not even running Column( children: [

Flutter 3 null safety Warnings and Errors [duplicate]

I just upgraded my flutter to the latest version, (3.0.0) and My projects keeps giving me these warnings and Errors: ../../../../flutter/.pub-

How to set up navigation to a specific page base on FirebaseAuth State?

I want to create an authorization check to display different screens depending on whether the user is logged in. When the user is logged in, then HomeScreen ()

Dart 2.17 has warning when using code snipplet

I just update dart sdk to 2.17 and when I use snipplet (in VScode) to auto generate code for Stateless/Stateful it auto import these two package. But it tel

No result from hyperpay after integration

I'm trying to integrate with HyperPay for payment . I'm using there demo for test . This is the demo demoUrl And I got this response payment_statusData: {resul

Show nested JSON from API in single Page with multiple lists

Im new in Flutter and i'm struggeling with a nested JSON from API which data i want to show in one single page. I get this JSON from a URL and decode it in a cl

Flutter project debug is stopping in my Redmi note 9 phone

Launching lib\main.dart on M2003J15SC in debug mode... lib\main.dart:1 Plugin project :firebase_core_web not found. Please update settings.gradle. Invalid depf

Continuously Retrieving data from stream builder

I am trying to implement stream builder with cloud firestore to retrieve field data. Here is the code: @override Widget build(BuildContext context) { retu

Error while trying to precache local SVG files in Flutter using flutter_svg library

I'm getting following error when I try to pre-cache SVG files in flutter using flutter_svg library: > flutter: ══╡ EXCEPTION CAUGHT BY

Flutter / Dart FFI existing .so file for Android

I'm trying to use a pre-compiled .so file with Flutter/Dart FFI. I've generated bindings with dart-ffigen, which seems to work without any issues. I've added th

Stuck terminal when creating new flutter project with get_cli?

Here the activation command flutter pub global activate get_cli Here the create new project command get create project:getcli_test

error: Undefined name 'uploadTask'. Flutter error

I am integrating file uploading system in my flutter project using firebase. While making progress indicator I am getting undefined name 'uploadTask' error. In

How to use 15 length character key in flutter encrypt package

I'm going to use this package for encryption in the flutter application. It doesn't accept keys lower than 16 characters long. But I want to use 15 characters k

ScreenUtilInit should be return but WillPopScope need to return at the same time

Update: I solved the first problem (merged codes). But now i have a different problem. I have LateError (LateInitializationError: Field '_instance@34075166' has

how can i import main functin of another dart file

How can I verify that a print is called for in dart unit tests? I am writing a sample code for textbooks and want to try it out. There are many examples that us