Tags "flutter" Result

Flutter/Dart - Open a view after a delay

I'm trying to find a solution to open a view after a delay in a loading view. I have a View, in which there is a button and when I press it, the onPressed() method triggers a Navigator.of(Context).pushNamed("/loading"). which opens the loading view. In the loading view I have then a function to make a delay of 1.5 sec and then open the home view, t

it1352 0 2020-10-15

Flutter: RenderBox was not laid out

I'm trying to create a ListView but when I import the list_form.dart class i get this error. Maybe I made some mistakes with the layout because if I try to run it inside the main file I don't get this error. This is the error: I/flutter (12956): ══╡ EXCEPTION CAUGHT BY RENDERING LIBRARY ╞═══════════════════════════════════════════════════════

it1352 0 2020-10-14

Android Studio stuck when creating new Flutter project

I have installed Flutter on Windows and checked all is ok using flutter doctor. I imported the Flutter plugin. Now, when I try to create a new Flutter app via Anroid Studio it never ends. I get "Creating Flutter Project" and that's it. The message area contains ""C:\Program Files\Flutter\flutter\bin\flutter.bat" --no-color create --template app -

it1352 1 2020-08-28

Minimum Android version with flutter

Which minimum android version is supported by flutter? Do some plugins have any affect on which version is not supported? I tried to run my flutter app on an android emulator, but with the version android 16 it doesn't work and the app crashes. Do I have to change the compile version in some config files or why doesn't it work? Solution Flutter s

it1352 1 2020-11-09

location.getlocation() gives casting error on android flutter

First importing and initializing the location package: import 'package:location/location.dart' as locationPackage; locationPackage.Location location = new locationPackage.Location(); On android running the code: try { await location.getLocation().then((pos) { setState(() { print(pos.runtimeType); _center = LatLng(pos.latitud

it1352 0 2020-11-09

Flutter setState() or markNeedsBuild() called when widget tree was locked

I am having trouble finding the source to this exception, and the app is quite complex so it is hard to show any relevant part of the code. This is my repository at the point where the error happens: Github repo I suspect the following code might be the perpetrator: Widget buildResultCard(Map result, BuildContext context) { String name = resu

it1352 0 2020-10-14