Category "dart"

Android Device Verification not working in Flutter

I am trying to do get OTP without Verifying you are not a robot screen using firebase in a flutter. I added the SHA-256 key in firebase and enabled the Android

How to format TimeOfDay to String in flutter

I want to display the current time. Used TimeOfDay.Now() to get the current time, TimeOfDay _currentTime = TimeOfDay.now(); Text("Current Time: ${_currentTime

How to convert CameraController's XFile to Image type in Flutter?

Flutter's CameraController has a takePicture() method for taking picture from the camera which gives type of Future<XFile>, so I need to convert it to Ima

Error in initializing AnimationController in flutter

I'm trying to make animated icon but I have an error in AnimationConroller _controller line, before I write any code for Icons. Here is the code: class _MyHomeP

Dealing with API endpoints in flutter

I have started learning to code since a few days back, and am only familiar with HTML/CSS/JS, and basics of dart/flutter I am working on a Random quotes generat

Synchronize sending data to the server, whether there is internet or not in Flutter

I am trying to add the temporal feature in my application so that if there is an Internet, the data is sent in the application, and in the absence of the Intern

Dart Analysis problems not shown in editor in Android Studio Bumblebee

After upgrading Android Studio to v2022.1.1 (Bumblebee) Dart Analysis problems shown in the corresponding tab are not shown within the editor itself. Typos on t

Error: Could not find the correct Provider<ClientsProvider> above this Clients Widget in flutter?

I'm getting a list of clients from the Api, in a clients' list screen, when I want to Update a client, I navigate through DetailClient Screen than navigating th

Error setting-up flutter_localizations package "Target of URI doesn't exist: 'package:flutter_gen/gen_l10n/app_localizations.dart'."

This error appears when I try to add language support to my flutter application: Target of URI doesn't exist: 'package:flutter_gen/gen_l10n/app_localizations.da

How can I get day name from string date '22 May 2022' in flutter

I am a beginner in Flutter, I want to get day name [like Sunday] from a date, date i am getting from api which is basically a string like '22 May 2022' How can

flutter problem: "Could not resolve all files for configuration ':classpath'."

I run simple flutter "show random word" project but i have this error: this is my gradle-wrapper.properties file: #Fri Jun 23 08:50:38 CEST 2017 distributionBa

Playing Vimeo videos in Flutter

I'm trying to play vimeo videos in flutter app using the video_player plugin but got no success, it's throwing bunch of errors. please help me how I might go a

How to reshape the flutter (dart) list

Iam working with tflite library which requires an array with shape of [1, 150, 3] and i have 3 arrays of [150], when i try to make a list of the 3 list it shape

Flutter push notifications app background : firebase_messaging

I want to display a push notification when my app is in the background. I am using the flutter_local_notifications package and the firebase_messaging package. P

is there a way to upload data from a FormField with a dropdown list to firebase...im get null value after uploading to firebase

this is the formField that is uploading no value i tried using a controller but seems now event compatible.the rest of the textformfields are working but i dont

FormatException: Unexpected character (at line 439, character 1) } with arb file

I have two .arb files in my project, everything was working fine, but today I added two strings and I am receiving this error when I am doing flutter pub get: G

How to save session data permenantly when the data are sent from Flutter function using http.post method

I want to access the session value in PHP from another PHP file that is assigned with a value sent from the Flutter HTTP.post method. When I try this I got the

Flutter: Id does not exist when try to run my code

I have a Flutter application and when I try to run my code, it throw a warning that says the id does not exist. How can I get out of this warning? ======== Exce

How to add a project from android studio to Gitlab in an existing project?

I did a project on my personal desktop on android studio. Now I want to add that project to Gitlab in a branch that is already created in a repository. How can

How to add a project from android studio to Gitlab in an existing project?

I did a project on my personal desktop on android studio. Now I want to add that project to Gitlab in a branch that is already created in a repository. How can