Category "flutter"

Where to put widget init/deinit code in Flutter

I'm building a widget that listens for UDP packets on the network and then updates the child widgets accordingly. I'm not sure where to put the init code for th

How to stop "keychain access" permission dialog on MacOS when debugging Flutter app on Visual Studio Code?

I had just moved from Android Studio to Visual Studio Code. I'm using Firebase in my app which I debug by running it on MacOS. Every time I do "Start Debugging"

Flutter -ios - pod install gRPC-C++ sed ssl issue

I have been running through this issue when I do pod install in my flutter project. (I'm going to answer this myself as I reached the solution after couple of h

TailwindCSS-like framework for Flutter?

Coming from a web dev background, I have grown to appreciate how quickly I can style a site with TailwindCSS utility classes. Looking around, I don't see many o

Flutter In App purchase (subscription) automatically refund after three days

I have integrated in flutter in_app_purchase subscription (android ), but it always automatically refund after 3 days I am using below code for flutter subscrip

Flutter plugins not installed

I have installed both flutter and Dart plugins on Android Studio but when I run flutter doctor, it shows that plugins are not installed Doctor summary (to see a

How to draw over other apps with flutter

I have an Android app which renders a FAB with fan out options over other apps (like AZ Screen recorder. Refer image). I want to leverage Flutter for its ease o

How to convert unicode with hex to String in dart / flutter

%u0BB5%u0BA3%u0B95%u0BCD%u0B95%u0BAE%u0BCD Above is unicode with hex characters string Need to convert that to readable text When decoded, the above text will r

How to localize BottomNavigationBarItem labels

Is there any workaround to translate the BottomNavigationBarItem into different languages? I use Lang.getString(context, key) to access a map(loaded from a json

How can I execute a function during the count-down timer?

I want to collect some real-time values during a time period and then proceed accordingly. Below is the code of java android studio. However, I cannot find any

Combining good old providers with Riverpod

I have an existing app that implements provider pattern. A sample provider would be: class SampleProvider { static SampleProvider of(BuildContext context) =

graphql-flutter subscriptions in flutter connectivity issue

I am new to flutter development but I have good experience in nodejs and graphql. I am trying to consume the subscription widget of graphql-flutter and update t

Does the onValue listener for Realtime Database return items in the same order that they are added to the database?

I don't see this specified in the docs anywhere. Does this listener return the node's data in the order that it is added to the node? For example, if I add mess

How to start a CupertinoSliverRefreshControl from flutter initState(){}

I'm trying to show CupertinoSliverRefreshControl for showing initial loading. This could be achieved in Material RefreshIndicator like this refreshKey.currentSt

Could not find protoc-3.9.2-osx on Flutter/Android build

I am working on a Flutter application which integrates a native package which uses Protobuff. I work on Android Studio and Mac (Apple ship). On windows, the app

Flutter Unable to instantiate activity ComponentInfo Main Activity

I'm using vs code (to code) and android studio (to get virtual device). I just merged and pulled the project I'm working on this morning, and first, have a very

Assets in Flutter package are not visible in the app

I've created a package, which uses some assets (sf2 file, ttf files, etc). Assets don't seem to load. I can fix this by including these files in the assets fold

Flutter how to center Textfield on screen after the user taps on it?

I am just wondering how should I go about making the Textfield widget to be on the center of the screen when the user taps on it? Right now with what I have, th

How to upload Multiple Images to rest API in Flutter?

I am trying to upload upload multiple images to Rest API in flutter. the code i have written is given below: final List<File> _image = []; Future<F

Crash of the flutter project on the Google Pixel 6 Pro, OS Level 31

We released our app and the next day we got a lot of crash reports on the Google Pixel 6 Pro with different use cases. On all other android devices, with exactl