Issue I want to replace Arabic number with English number. 1-2-3-4-5-6-7-8-9 <== ١-٢-٣-٤-٥-٦-٧-٨-٩ Solution Arabic to English String replaceArabicNumber(String input) { const english = [‘0’, ‘1’, ‘2’, ‘3’, ‘4’, ‘5’, ‘6’, ‘7’, ‘8’, ‘9’]; const arabic = [‘٠’, ‘١’, ‘٢’,
Continue readingCategory: Dart
TensorFlowLite tensor with type UINT8 and a Java object of type [[F (which is compatible with the TensorFlowLite type FLOAT32)
Issue I was creating a mobile app that can recognize images using flutter and I got this runtime error when testing the app. Caused by: java.lang.IllegalArgumentException: Cannot convert between a TensorFlowLite tensor with type UINT8 and a Java object of
Continue readingFlutter: insert textfield data into the MYSQL database using POST method in php
Issue I try to insert my text field data into the MYSQL database using PHP post method. Here This is My code for SAVE data. POST method Showing this Undefined index: visitor_name in database connected successfully GET data works Properly
Continue readingHow can I tell if DateTime.Now() is on a day AFTER a different DateTime
Issue I’m running this on flutter, but I guess this could be a more general issue. I am saving a DateTime in the preferences. I want to be able to then tell if DateTime.now() is on at least a day
Continue readingCod 400 , message: wrong latitude, OpenWearher: getting current weatherData
Issue I’m getting error (wrong latitude) when I’m trying to get current weather data. can anyone tell me what went wrong I tried changing locationAccuracy from low to best but it didn’t change anything Location location = Location(); class _LoadingScreenState
Continue readingHow to put a widget in a condition?
Issue I want to create an authorization check to display different screens depending on whether the user is logged in. When the user is logged in, then HomeScreen () should be displayed to him. And when not logged in, then
Continue readingThe difference between the use of constructor " className() and className._()
Issue I have these two ways to write a constructor. className() and className._() What is the difference between them and when should I use which? class GlobalState{ final Map<dynamic,dynamic> _data=<dynamic,dynamic>{}; static GlobalState instance = new GlobalState._(); GlobalState._(); } //In Main
Continue readingHow does the null check operator work in Dart
Issue I’m using this repository to familiarize myself with Amazon’s Cognito user system. In the file lib/screens/signup_screen.dart, starting at line 27 there is this piece of code: TextFormField( keyboardType: TextInputType.emailAddress, decoration: InputDecoration(labelText: "Email"), controller: _emailController, validator: (value) => !validateEmail(value) ?
Continue readingHow can I update the data fetched from a future bilder in Flutter?
Issue In my app I have a screen which contains 3 different future builders, I would like to update the data recovered from a future builder. I tried the setState () method but this updates all 3 future builders on
Continue readingHow to apply recommended Dart and Flutter settings in VS Code after installing Flutter
Issue I was setting up VS Code for Flutter and I accidentally gave "No" for the following recommendation I tried to find this manually in the settings to enable it, but I wasn’t able to find it. How can I
Continue reading