Category "dart"

How can i show previous 30 days in my list calendar?

I have a calendar, that works correct but shows only current day and future. How can i set previous days? I'd like to highliht a current day but also give an op

Flutter : Issue with the dependencies in the project

I am using a prebuilt project and I am getting below issue with the three dependencies mentioned Error: Cannot run with sound null safety, because the followin

Flutter : How to Automaticallly scroll to end of SingleChildScrollView

I have a SingleChildScrollView, its scrollDirection is set to Horizontal with 5 child widgets placed inside a Row Widget. I want to programmatically scroll to t

EventChannel not being called every time

I am very new to flutter+dart framework. I am trying to understand how EventChannel works. I have set up EventChannel to capture the number of an incoming call.

How to avoid keyboard popping out while navigating to next screen?

When I navigate from LoginScreen() to HomeScreen() the keyboard pops up for no apparent reason for a split second and then immediately closes while the navigati

How to Share Image from API(URL) in flutter?

Here I want to share image which I get through API. I tried different method for this functionality but I did not get any solution because every solutions have

How to Listen For BLE signals in background using Flutter and Dart?

I'm trying to figure out how to add a listener in flutter that would listen for BLE signals even in the phone background, while the app is off. Is it possible t

How can I tell if DateTime.Now() is on a day AFTER a different DateTime

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 DateT

borderRadius is not true in PinCodeTextField

I create an pin code text field like below, but when i try using shape: PinCodeFieldShape.circle, my console throw me 'package:flutter/src/painting/box_decor

Round Image File

I did this code to get an image from firestore and use it as an icon for a Map Marker. final StorageReference storageReference = FirebaseStorage().ref().child(

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