Category "dart"

Persisting AppBar Drawer across all Pages Flutter

I am trying to create a uniform drawer that is accessible across all pages in my app. How do I make it persist throughout all these pages without having to recr

FirebaseOptions cannot be null when creating the default app

I am trying to try a sample project in Flutter integration email and google based login, and planning to use firebase initialisation for doing it while I have f

Problem converting FirebaseAuth.instance.currentUser to Future in Flutter FutureBuilder

I am new to flutter and have taken this course which uses an older version of FirebaseAuth that returns FirebaseAuth.instance.currentUser() as future to Future

Force ListView to shrink to contain children

The most similar question I could find was 'how to create a row of scrollable text boxes or widgets in flutter inside a ListView?', however their solution was j

Problem converting FirebaseAuth.instance.currentUser to Future in Flutter FutureBuilder

I am new to flutter and have taken this course which uses an older version of FirebaseAuth that returns FirebaseAuth.instance.currentUser() as future to Future

Convert time to am/pm flutter

How to convert the time to am/pm ? I have this output I/flutter (17720): 9:00:00 I/flutter (17720): 11:00:00 I/flutter (17720): 12:00:00 This is what I have

How to access window.navigator.serial in flutter web

On some browsers there exists the the property serial on the window.navigator object. I can see it on chrome but not on safari. How can I access that object via

Android build issue with 'scan' plugin - Flutter

Android build failing with following exception. Plugin: scan [https://pub.dev/packages/scan] FAILURE: Build failed with an exception. What went wrong: Executio

Flutter: How can I make a Random color generator Background

Generate random colors return new RaisedButton( padding: EdgeInsets.symmetric(vertical: 30.0), color: Colors.primaries random List <blue,gr

Flutter fetched Japanese character from server decoded wrong

I am building a mobile app with Flutter. I need to fetch a json file from server which includes Japanese text. A part of the returned json is: { "id": "

How to catch SocketException using the http library?

This problem has already been pointed out by others (like here). Althought I may have understood the cause, I still haven't found a solution when using the high

How can I Store Document in chronological order in firebase with flutter

I am coding an appointment booking application I want to store my own created document in firestore database but in chronological order. So that I can see my la

How can I show a snackbar after navigator.pop(context) in Flutter?

We need close one screen and open a second screen. And show snackbar on the second screen from first screen. I tried to use Navigator.push, but this screen is a

Lint don't override field in flutter

I'm new in using Lint and I'm getting a blue underline on my UserModel variables with a message of Don't override fields and Annotate overridden members. I'm ha

Flutter: [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: PlatformException

I am new in Flutter.I face a problem about [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: PlatformException. This is my Debug Console: Launch

Suddenly can't fetch any data inside firebase firestore, after trying to use tutorial that contain firestore emulatore

i tried following some of youtube tutorial video and saw a firestore emulators connect. but after i connect the app. the screen that works properly suddenly don

How to convert mnemonic to 32 byte seed?

I have a 24-word mnemonic, and I want to convert it to public and private keys. This is how I did it: const hex = HexCoder.instance; final seed = bip39.mne

dart pub global run webdev serve Building package executable... Failed to build webdev:webdev:

C:\flutter\bin (stable) λ dart pub global run webdev serve Building package executable... Failed to build webdev:webdev: /C:/Users/valen/AppData/Roaming/

Flutter Hive save custom object with list of custom objects gone after restarting app

I am using the Hive- Package in my project to store some data locally. That has been working fine so far, but now I am facing an issue: I have a Custom-Class wh

Flutter RawKeyboardListener listening twice?

What I am trying to achieve is when viewing this widget, the RawKeyboardListener starts listening straight away when the TextField is not selected/in focus. It