Category "dart"

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) =

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

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

Flutter: go_router connect to flow_builder

go_router can't use declarative flow of steps. Like steps of registration, where you can fill the form and call goNext() But flow_builder can. It allows you to

Cannot run flutter application on newly set up environment

I've got a flutter app that has last been working on about two years ago and I wanted to pick it up from there and do some further changes. I installed flutter

Riverpod StateNotifierProvider depend on a FutureProvider

I have a StateNotifierProvider that depends on a FutureProvider. Currently they look like below. final catalogProvider = StateNotifierProvider<CatalogNotifie

stop watch timer on flutter. How can I print the time in the terminal while pressing a button?

What I would like to do is printing the current time on the terminal while pressing the reset button. ElevatedButton( onPressed: () {

pull to refresh freezes the WebView scrolling in flutter

After implementing the pull to refresh button on webview I'm facing the screen scrolling issue on webview. When I try to scroll the screen upwards or downwards

Cannot convert http.post from php to dart

I tried to convert this code from php <?php function sendjson($url, $array_params) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url);

ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: [core/duplicate-app] A Firebase App named "[DEFAULT]" already exists

Since im new in firebase, im having trouble with duplicated name already exists, and i need your help. E/flutter (21802): [ERROR:flutter/lib/ui/ui_dart_state.cc

How to reduce network speed in Flutter?

I am writing a networking app, In there I just want to control the speed of the network (Increase and Decrease). Are there any solutions to achieve this?

How can i change only the changing value in flutter signalr?

I cannot setup the logic. I have three values. You know signalr only changing value comes. When i tried to change, every values change. Here is my code part=>

Flutter error: No CMAKE_CXX_COMPILER could be found

I am new to Flutter. When I want to run my Flutter application on Windows, I get this error: Launching lib\main.dart on Windows in debug mode... CMake Error at

Flutter Error: WidgetsBinding.instance!.addPostFrameCallback((_) {

After upgrading to 3.0.0. i keep getting this error about WidgetsBinding.instance!.addPostFrameCallback((_) { here is the image of the error.

Graphql_flutter runMutation's QueryResult is returning null, though the mutation is executing correctly

I'm using graphql_flutter 3.1.0 and have started the authentication for my app and am needing to set the user in my Provider state on successful creation. My mu