Category "dart"

How to create a screenshot taking application using Flutter?

I am thinking of making a Screenshot application using Flutter. The features of the screenshot application will be: Creating a floating button, that can float/d

Can we Delete Singleton class in flutter

I wanted to delete singleton class when i need Could you please tell me is it possible to dispose or remove singleton class from memory instance after use

LateInitializationError Flutter using SharedPreferences.then

I want set value of bool v from SharedPreferences in flutter but getting LateInitializationError. here's my code: import 'package:agl_mdd/home/home.dart'; impor

Flutter: How to copy HTML into the clipboard so mail apps recognize it as HTML?

Is it possible to copy HTML and paste it into Gmail or Apple Mail? Sample HTML: <img src="w3schools.jpg" alt="W3Schools.com" width="104" height="142"> I'

Dart manual translation text problem with double letter key's value never shows

I'm currently facing this problem with flutter (dart): var data = { "U": "উ", "UU": "ঊ", } UU's value never get printed it print U's value twice

Sending Flutter form data into an SQLite database

I am a new Flutter developer trying to figure out how to send my form data into SQLite as an instance of a simple class I set up. I am trying to create a new us

google_maps_flutter crashes on ios device with the error "-[__NSCFString objectForKey:]: unrecognized selector sent to instance 0x2808f4380"

I have the google_maps_flutter 2.1.0 and flutter 2.10.3 running. While opening the map, the app crashes and shows the following error log. Could anyone point ou

How to achieve Expandable TextField with Center Align of text and prefixIcon in Flutter

I am stuck in trying to achieve a text field with prefix Icon. I want the text field and prefixIcon to be center-aligned and should expand while typing. Any hel

Showing Error (The operator '+' isn't defined for the type 'Uri'. Try defining the operator '+'.dart (undefined_operator))

THIS IS MY CODE this is the app for storing data into google spreadsheets. // showing red line under plus OPERATOR '+' in LINE import 'dart:convert' as convert;

Find the first page of a MuliPage in dart-pdf

I am creating PDF document using dart-pdf. It contains various sections that could be any number of pages in length. Each section starts on a new page. Currentl

fixedLengthList - freezed & dart

How to make fixedLengthList in class model using @freezed? @freezed class Example with _$Example { factory Example({ List<int> example, // this list

Flutter Error when creating SQL DB table by giving tableName parameter

I found a flutter sqfl example on the web and trying to modify it for my personal project. I need more than one table in a database, so I want to be able to cre

How do I share an analysis_options.yaml file across multiple packages?

I am developing a Flutter Module, multiple Flutter Plugins. The relationship between them is: module depends on all plugins. All plugins are not published to pu

Unhandled Exception: LateInitializationError: Field 'isDayTime' has not been initialized

[ERROR:flutter/lib/ui/ui_dart_state.cc(199)] Unhandled Exception: LateInitializationError: Field 'isDayTime' has not been initialized. E/flutter ( 5534): #0

Error: The getter 'addressOf' isn't defined for the class 'Utf8'

/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/ffi-0.1.3/lib/src/utf8.dart:63:33: Error: The getter 'addressOf' isn't defined for the class 'Utf8'. 'Utf

How do I convert a date/time string to a DateTime object in Dart?

Say I have a string "1974-03-20 00:00:00.000" It is created using DateTime.now(), how do I convert the string back to a DateTime object?

Call build on Text widget when i change tab

I want to change title in appBar, when when I switch from one tab to another. In my current code do not do that because on change tab build is not called. Thank

Flutter SafeArea: avoid notches, but ignore rounded corners

Is there a way to detect and avoid notches in a phone's screen (for example, the camera notch in an iPhone X), but ignore a screen's rounded corners? For exampl

Is it allowed to add event to another bloc from inside of a bloc?

I am using bloc library available in Dart to implement "bloc" pattern. I will eventually move onto flutter_bloc library so I can use it inside a real app. I'm h

Allow accessibility screen reader to read a number string one-by-one as digits using semantics [flutter]

I'm using Semantics to adapt my app for accessibility and want to read a phone number (like: Text("950874123")) one to one instead "million, thousand...". Is th