Category "dart"

Flutter: [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: PlatformException

I am new in Flutter.I face a problem about [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: PlatformException. This is my Debug Console: Launch

Suddenly can't fetch any data inside firebase firestore, after trying to use tutorial that contain firestore emulatore

i tried following some of youtube tutorial video and saw a firestore emulators connect. but after i connect the app. the screen that works properly suddenly don

How to convert mnemonic to 32 byte seed?

I have a 24-word mnemonic, and I want to convert it to public and private keys. This is how I did it: const hex = HexCoder.instance; final seed = bip39.mne

dart pub global run webdev serve Building package executable... Failed to build webdev:webdev:

C:\flutter\bin (stable) λ dart pub global run webdev serve Building package executable... Failed to build webdev:webdev: /C:/Users/valen/AppData/Roaming/

Flutter Hive save custom object with list of custom objects gone after restarting app

I am using the Hive- Package in my project to store some data locally. That has been working fine so far, but now I am facing an issue: I have a Custom-Class wh

Flutter RawKeyboardListener listening twice?

What I am trying to achieve is when viewing this widget, the RawKeyboardListener starts listening straight away when the TextField is not selected/in focus. It

Multiple Dependent dropdown in flutter

I am trying to build multiple dependent dropdown on flutter. The second one depend on 1st one. here is the code to the dropdown I have implemented. Container(

How to add a name to a chart on flutter, x- and y-axis?

I have been working with the online gallery of Flutter charts (https://google.github.io/charts/flutter/gallery.html) but I'm struggling to add a title for x &am

how can i use more than one tflite flutter model?

i created one tflite model. i want to pass string to model and label according to user selection. for example, if your select model1 it will load model two, if

How to specify a TimeZone when creating a DateTime object in Dart/Flutter?

Dart?flutter does not appear to allow a timezone (eg: "Australia/Sydney" or "America/Detroit") to be specified when creating a DateTime object. Either the local

Flutter Scaffold Appbar not showing the back button

My class is not showing the back button in the AppBar, Already try put this.automaticallyImplyLeading = true, import 'package:carros/pages/carro/carro.dart';

Call async function from Isolate function

I am trying to call an async function from the Isolate function. class IsolateExample { final ReceivePort port = new ReceivePort(); IsolateExample(){

Widget rebuild after TextField selection Flutter

I'm developping a Flutter App that needed to have a form. So when the user open the app, a Splash Screen appear before the form that have the following code :

Access properties of a flutter class through the content of a variable

I'm in Flutter (Dart), I want to access to a property of a class, but the property that I have to access is defined by the content of another variable. Example:

How do I change Text Input Action Button (return/enter key) on Keyboard in Flutter?

In Android and iOS it is possible to change the enter/return key of the keyboard to e.g. a "Go" button (and other options). On top, we can see the regular "

Add Key for list of multiple object ~ dart

final uri = Uri.parse( "https://api.binance.com/api/v3/klines?symbol=BTCUSDT&interval=1h"); final res = await http.get(uri); var data = (

How to solve exception caught by widgets library?

I want to use cached network image to display images in my flutter app, however it shows this: ═══════ Exception caugh

Network requests in Flutter app on physical iOS devices are slow

I am working on a cross-platform app using Flutter, for Android, iOS and Web. For some reason though, network requests on iOS are very slow. The app works fine

Flutter iOS fatal error: 'Flutter/Flutter.h' file not found

When I try to build my iOS I was facing such error I think it's mostly with the webview_flutter package Failed to build iOS app Error output from Xcode build:

How to load images with image.file

I can't seem to simply load an image from the hard drive to the screen. Image.network seems straightforward. But I can't figure out how to use Image or Image.