Category "flutter"

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

Sending self sms from iPhone via flutter

I'm using the flutter_otp plugin for SMS. It works fine on Android but I get this error on iPhone. I tried different format for phone number but still the same

How to automatically update a Flutter Mobile app to newer version when the application is not on play store or app store?

let's say i have a Flutter APK hosted on my website where users can download and install , what i'm interested to know is how possible that the application can

Flutter (mailer package): mailing from within the app. not receiving mail

I am working on an app in flutter, and I would like to have a "give feedback option". this form consists of 1 text field where the message is typed, and 1 butto

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

Flutter: After deleting the last item in ListView item, it always gives a RangeError. Why doesn't it stop on new itemCount.length?

I've a listview of products and when I delete any item other than the last item, it works fine. But when I delete the last item in the listview, may it be 0th o

Flutter check if stream is empty before close end

I'm using BehaviorSubject as a Stream controller. In one of my functions, I want to .add more items only in case the Stream is empty of events. @override Fu

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

Staggered Gridview item disappear when scrolling

I have some question on the latest flutter_staggered_grid_view package. Can anyone help me please? the item in gridview below will disappear when scrolling Sliv

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

How to change a Flutter app language without restarting the app?

In the settings page of my app, I would like to add an option that controls the app language. I can set the language before starting the app like this: @ove

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

ExpansionTile lagging when expanding with a lot of children

Hello ! Everything is in the title. I have an expansion tile to show members of a group. When lots of people are in a group (here 47), the expansion is not smoo

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

How do I programmatically simulate onTap on a button in Flutter?

For example: // Update: This GestureDetector is embedded inside a third party package // that will invoke a series of animation along with the onTap button Gest

Flutter PDF Viewer for Linux desktop

I developing some kind of chat application with PDF viewing functions on Flutter for Android and Linux desktop platforms. So i want to embed PDF viewer in flutt

Flutter not detecting sdk cmdline tools

Running flutter doctor gives me the "cmdline-tools component is missing" error, even though I installed Android SDK command-line tools in android studio, I also

GridView inside Expanded not visible, only visible when using Container with a specified height

I have a gridview that I'd like to display in a non-specific height container. However, the gridview only shows up when I use container with a specified height.