Category "dart"

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

How to make drag and drop from drawer in Flutter

I've provide the code. So the dragable widget is in the drawer and the drag target is in the home screen. But when I drag the container to put it in the drag ta

Flutter Error:Please ensure that the SDK and/or project is installed in a location that has read/write permissions for the current user: Flutter Error

I have just started mobile app development and I choose flutter as my first mobile app developing language(I know python,html,javascript already). I have instal

How to calculate age using datetimepicker?

Im trying to figuring out how to calculate the age of user in my flutter application. What I want is only valide user which are have a min age of 18. Heres my c

Radio button style using icon buttons in flutter

I want to create a radio button style voting system using icons in Flutter (Dart) which looks like this: vote icons The concept is simple: The page will display

I cant run Geolocator.getCurrentPosition() in background (Flutter)

when I try to getCurrentPosition while the application in the background or terminated, it returns ' MissingPluginException(No implementation found for method g

Firebase data is not fetching in flutter app

I'm developing a simple app to learn firebase, the creation of data is working fine, but they can't fetch the created data. and there is no error showing. just

Send Keyboard Event Flutter

I am trying to find a way to send keyboard events from my flutter app to a WebView that I have open in app. For example, the WebView has some JS code with an Ob

Flutter WidgetsBinding.instance.addPostFrameCallback((_) error

Hello friends first off all sorry for my bad English. I'm getting an error when I start debug my code in flutter-Dart. import 'package:flutter/foundat