Category "dart"

Flutter: converting an Image object to a base64 string without using a File

I grabbed somewhere the following code to convert a picture to a base64 string without accessing a file : String ImageToString(Image image) { String result;

how to disable scrolling NestedScrollView

I tried to use physics: NeverScrollableScrollPhysics() in NestedScrollView but still yet is still scrolling. How can disable scrolling in NestedScrollView if th

ERROR: The argument type 'Object?' can't be assigned to the parameter type 'String?'

I have a TextFormField widget wrapped inside a StreamBuilder, in TextFormField widget, inside the decoration, when is pass snapshot.error to the errorText argum

The getter 'documents' isn't defined for the type 'Object'

I have a collection called status in Firebase. I'm trying to pull data from here. However I am getting this error. I tried some solutions but I still get the sa

Flutter error Script 'C:\src\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1102

Hello I have a flutter error although i dont have any bugs in code. This is all error: /C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/provider-3.2.0/lib

Missing type arguments for generic type 'Future<dynamic>'. Try adding an explicit type, or remove implicit-dynamic from your analysis options file

How do I resolve this issue without removing the implicit-dynamic form analysis options file? Error: My Code: Future<void> _scrollToBottomOnKeyboardOpen(

different in signature in Dart & node

am trying to make a signature for a HTTP request , using flutter/dart for the app and the server in NodeJs but i have a problem there is little different betwee

Listen a ValueNotifier from class

Hi im new in flutter and i have a class for notify changes of a global values in my app like this import 'package:flutter/material.dart'; class GlobalNotifier

Problem with time picker not working flutter

Problem with the time picker not working when I choose the time it should be typed automatically in the field code : https://codeshare.io/WddQvl onTap: () {

Flutter Spinner date picker (CupertinoDatePicker) change order/swap location

I want to use Spinner date picker but I did not find it in flutter packages I found something similar CupertinoDatePicker which works fine. but I can't change

How to make a simple Flutter stopwatch foreground service on Android?

I am implementing a stopwatch (0 to .. seconds counter) in my app. I succesfully implemented it in my Dart code, but I need it to work even if the app is closed

Parsing csv data - Flutter

I'm receiving data from the csv file as SERVICE_ID‡WEIGHT_ID‡DISTANCE_ID‡BASE_PRICE‡IDENTIFIER PARCEL‡W0‡‡0.00&

Send emails from flutter application without expenses or smtp server and without opening the gmail app

As the title says, I would like to know if there is any way to send emails without having to use an external service, that charges me for sending the messages,

why the second short form constructor gives the error that name and age must be initialized but not the commented ctor?

I am beginner in dart language. So i created this class .. class X{ String name; int age; // X(this.name,this.age); X(name,age); } In this code the sh

Apple pay using Stripe shows error in flutter

Apple pay using stripe shows an error in flutter before it's working fine but currently shows an error. Payment intent generating working fine but when I do pay

Flutter firebase authentication event handler and hot reloads

Following this blog post: https://blog.ishangavidusha.com/flutter-authentication-flow-with-go-router-and-provider I have implemented a flutter app using the go

This app is using a deprecated version of the Android embedding

I am getting the following error. This app is using a deprecated version of the Android embedding. To avoid unexpected runtime failures-, or future build failur

flutter_downloader In the release version, it crashes (on Android)

I use flutter_downloader (on Android) Everything is correct in debug and profile mode and works well, but in the release version, after hitting the download but

Converting unit8list to video file with out creating it and its be on memory

I have downloaded the bytes of a movie and stored them in a database. I need a way to convert it back to a movie to give it to the video_player package to play.

Socket connection not workin in flutter release apk

I am new to working with sockets, and I am working on this project where a connection between my android flutter app and a java server is needed, to do this I a