Category "dart"

How to catch OAuth2 token in Flutter Web?

This dependency supposedly supports web, but the implementation to listen for the callback and retrieve the token is missing. After digging around for the last

Why does the Software Keyboard cause Widget Rebuilds on Open/Close?

I have a screen, which contains a Form with a StreamBuilder. when I load initial data from StreamBuilder, TextFormField show data as expected. When I tap inside

Return multiple values from function

Is there a way to return several values in a function return statement (other than returning an object) like we can do in Go (or some other languages)? For exa

Flutter future builder to list

I have some troubles in understanding how future builder works in flutter. I want to pass a list of String from my future call and I want to display them in a S

What went wrong: Execution failed for task ':google_api_headers:compileDebugKotlin'

When updating my flutter to version 3.0.0 , the console started showing me this error does anyone know how to fix it AppData\Local\Pub\Cache\hosted\pub.dartlang

How should I implement the init method? In a stateful or stateless widget?

What is the rule of thumb to use an initial method for a widget. Shall I use the: A. classical stateful widget approach? Or is it better to stick with the B. s

Flutter Web not displaying Material Design Icons

I started Flutter web and i wanted to add Material icons to my Flutter web app but its displaying boxes instead. Any help is appreciated. Thanks

How can I resolve "The argument type 'String' can't be assigned to the parameter type 'int' " - Flutter

I'm trying to fetch data Online Using HTTP GET with Flutter SDK. I'm trying with this code https://github.com/RaglandCodes/Flutter-basic-API/blob/master/lib/mai

How to hide autogenerated files from VS code

I want to hide auto generated dart files like .g.dart, .freezed.dart from vs code project. How to do that?

Flutter build apk error Dart snapshot generator failed with exit code -1073741819

here is my flutter doctor output Doctor summary (to see all details, run flutter doctor -v): [√] Flutter (Channel stable, v1.17.5, on Microsoft Windows [V

How i can fix this issue?? i can't compile my flutter web

How i can fix this ?? flutter build web Building with sound null safety Target dart2js failed: Exception: Warning: The 'dart2js' entrypoint script is deprecated

Flutter - Making DataTable responsive according to screen orientation/size

I am trying to make my data table in Flutter more responsive by adjusting the width according to screen resolution (eg: in browser, its the default width, and i

How can I decode a hexadecimal to a byte array in Dart?

So there's the 'dart:convert' library, which contains a HexDecoder class that doesn't seem to have a constructor (according to this). But importing it and tryin

Subclassing Widgets with complex signatures

As far as I found out, RadioListTile with Text als child has unlimited with. As a helper class, I'd like to subclass RadioListTile with a default Text child of

when i'm creating flutter new project lib folder is missing in andorid studio

when I am creating new flutter project in Andorid studio lib folder is missing how to fix it? I run flutter doctor everything is fine but I am facing this prob

Unable to upload data on firebase console

I am Unable to upload data on firebase console. I have written all the code, import all the libraries, and also follow all the steps to upload data on firebase

How i can reapirt problem in new flutter project

When i create new flutter project and click run i have this problem "Could not initialize class com.android.sdklib.repository.AndroidSdkHandler" enter image des

Drop down widget is not showing in flutter

I am design a screen in which I need to opening a drop down list when user click on textfield till now I am using CupertinoActionSheetAction sheet which is corr

How do I share an image on iOS and Android using Flutter?

I would like to share an image using the standard share dialogs in iOS and Android. The code below is mostly from https://pub.dartlang.org/packages/share which

Flutter Firestore real-time pagination using multiple listeners streamed combined

I want to create a pagination screen, using Bloc, from the Firestore database. The screen should update on document changes. My FirestoreProviderApi receives fe