text:
[go_router]  since v13 🐛 showBottomModalSheet not working in nested navigation with StatefulShell

StatefulShellBranch -> page1 -> page2
When calling context.pop() in nested page2, it goes back to page1 instead of closing the modal
It was working fine before 13.0.0, broken after
Steps to reproduce

call showBottomModalSheet() in a nested StatefulShell navigation
call context.pop()

Expected results
Context.pop should dismiss the modal
Actual results
Context.pop go back to previous page (parent) and doesn't dismiss modal
Code sample
Code sample
You can find a simple example demonstrating the bug here :
https://github.com/tempo-riz/bug-report/blob/main/gorouter_nested_nav_showbottommobal/lib/main.dart

Video

Video of the bug
https://github.com/flutter/flutter/assets/64015162/5fbdc332-b10f-4922-a6f4-5267c1505991

Workaround
If using  useRootNavigator: true then Navigator.of(context, rootNavigator: true).pop(); seems to work as expected
Flutter Doctor output
Doctor output
[√] Flutter (Channel stable, 3.19.6, on Microsoft Windows [Version 10.0.22631.3447], locale en-CH)
    • Flutter version 3.19.6 on channel stable at C:\apps\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 54e66469a9 (4 weeks ago), 2024-04-17 13:08:03 -0700
    • Engine revision c4cd48e186
    • Dart version 3.3.4
    • DevTools version 2.31.1

[√] Windows Version (Installed version of Windows is version 10 or higher)

[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at C:\Users\chati\AppData\Local\Android\sdk
    • Platform android-34, build-tools 34.0.0
    • Java binary at: C:\Program Files\Android\AndroidStudio\jbr\bin\java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-10027231)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop Windows apps (Visual Studio Build Tools 2019 16.11.30)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools
    • Visual Studio Build Tools 2019 version 16.11.34031.81
    • Windows 10 SDK version 10.0.19041.0

[√] Android Studio (version 2022.3)
    • Android Studio at C:\Program Files\Android\AndroidStudio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-10027231)

[√] VS Code (version 1.89.1)
    • VS Code at C:\Users\chati\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.88.0

[√] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.22631.3447]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 124.0.6367.158
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 124.0.2478.51

[√] Network resources
    • All expected network resources are available.

• No issues found!

@tempo-riz
it looks like ur using an old version of flutter kindly update to the latest flutter stable version and try again . If the issue persists after updating, feel free to leave another comment,

hello @AbdeMohlbi after upgrading to flutter 3.19.6 (I updated the flutter doctor part) issue still persists, with latest go_router version 14.1.0

@tempo-riz
have u tried using the a version prior to 13 again to see if the problem goes away to assure if the problem from the package ?

@AbdeMohlbi
yes I was using version 12.x.y and after upgrading to 13.x.y or later I get this behavior

@tempo-riz  yep logic updated.

@tempo-riz  now i see why this package have a lot of problems even the migration docs have been destroyed see here
maybee someone from the team to take a look

Thanks for the report. I was able to replicate this on latest versions.

 stable, master flutter doctor -v
[!] Flutter (Channel stable, 3.22.0, on macOS 12.2.1 21D62 darwin-x64, locale
    en-GB)
    • Flutter version 3.22.0 on channel stable at
      /Users/dhs/documents/fluttersdk/flutter
    ! Warning: `flutter` on your path resolves to
      /Users/dhs/Documents/Fluttersdk/flutter/bin/flutter, which is not inside
      your current Flutter SDK checkout at
      /Users/dhs/documents/fluttersdk/flutter. Consider adding
      /Users/dhs/documents/fluttersdk/flutter/bin to the front of your path.
    ! Warning: `dart` on your path resolves to
      /Users/dhs/Documents/Fluttersdk/flutter/bin/dart, which is not inside your
      current Flutter SDK checkout at /Users/dhs/documents/fluttersdk/flutter.
      Consider adding /Users/dhs/documents/fluttersdk/flutter/bin to the front
      of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 5dcb86f68f (5 days ago), 2024-05-09 07:39:20 -0500
    • Engine revision f6344b75dc
    • Dart version 3.4.0
    • DevTools version 2.34.3
    • If those were intentional, you can disregard the above warnings; however
      it is recommended to use "git" directly to perform update checks and
      upgrades.

[!] Xcode - develop for iOS and macOS (Xcode 12.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    ! Flutter recommends a minimum Xcode version of 13.
      Download the latest version or update via the Mac App Store.
    • CocoaPods version 1.11.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] VS Code (version 1.62.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.21.0

[✓] Connected device (5 available)
    • SM G975F (mobile)       • RZ8M802WY0X • android-arm64   • Android 11 (API 30)
    • Darshan's iphone (mobile)  • 21150b119064aecc249dfcfe05e259197461ce23 •
      ios            • iOS 14.4.1 18D61
    • iPhone 12 Pro Max (mobile) • A5473606-0213-4FD8-BA16-553433949729     •
      ios            • com.apple.CoreSimulator.SimRuntime.iOS-14-3 (simulator)
    • macOS (desktop)            • macos                                    •
      darwin-x64     • Mac OS X 10.15.4 19E2269 darwin-x64
    • Chrome (web)               • chrome                                   •
      web-javascript • Google Chrome 98.0.4758.80

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 1 category.

[!] Flutter (Channel master, 3.22.0-30.0.pre.11, on macOS 12.2.1 21D62
    darwin-x64, locale en-GB)
    • Flutter version 3.22.0-30.0.pre.11 on channel master at
      /Users/dhs/documents/fluttersdk/flutter
    ! Warning: `flutter` on your path resolves to
      /Users/dhs/Documents/Fluttersdk/flutter/bin/flutter, which is not inside
      your current Flutter SDK checkout at
      /Users/dhs/documents/fluttersdk/flutter. Consider adding
      /Users/dhs/documents/fluttersdk/flutter/bin to the front of your path.
    ! Warning: `dart` on your path resolves to
      /Users/dhs/Documents/Fluttersdk/flutter/bin/dart, which is not inside your
      current Flutter SDK checkout at /Users/dhs/documents/fluttersdk/flutter.
      Consider adding /Users/dhs/documents/fluttersdk/flutter/bin to the front
      of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision c90e18c6f5 (2 hours ago), 2024-05-09 20:32:11 -0700
    • Engine revision c0917b14fc
    • Dart version 3.5.0 (build 3.5.0-138.0.dev)
    • DevTools version 2.36.0-dev.5
    • If those were intentional, you can disregard the above warnings; however
      it is recommended to use "git" directly to perform update checks and
      upgrades.

[!] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/dhs/Library/Android/sdk
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/macos#android-setup for
      more details.

[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 13C100
    • CocoaPods version 1.11.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] IntelliJ IDEA Ultimate Edition (version 2021.3.2)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    • Flutter plugin version 65.1.4
    • Dart plugin version 213.7228

[✓] VS Code (version 1.62.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.29.0

[✓] Connected device (3 available)
    • Darshan's iphone (mobile) • 21150b119064aecc249dfcfe05e259197461ce23 • ios
      • iOS 15.3.1 19D52
    • macOS (desktop)           • macos                                    •
      darwin-x64     • macOS 12.2.1 21D62 darwin-x64
    • Chrome (web)              • chrome                                   •
      web-javascript • Google Chrome 109.0.5414.119

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 1 category.

[!] Xcode - develop for iOS and macOS (Xcode 12.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    ! Flutter recommends a minimum Xcode version of 13.
      Download the latest version or update via the Mac App Store.
    • CocoaPods version 1.11.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] VS Code (version 1.62.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.21.0

[✓] Connected device (5 available)
    • SM G975F (mobile)       • RZ8M802WY0X • android-arm64   • Android 11 (API 30)
    • Darshan's iphone (mobile)  • 21150b119064aecc249dfcfe05e259197461ce23 •
      ios            • iOS 14.4.1 18D61
    • iPhone 12 Pro Max (mobile) • A5473606-0213-4FD8-BA16-553433949729     •
      ios            • com.apple.CoreSimulator.SimRuntime.iOS-14-3 (simulator)
    • macOS (desktop)            • macos                                    •
      darwin-x64     • Mac OS X 10.15.4 19E2269 darwin-x64
    • Chrome (web)               • chrome                                   •
      web-javascript • Google Chrome 98.0.4758.80

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 1 category.

it can be fix by using Navigator.of(context).pop()

I have the same issue and Navigator.of(context).pop() give the same result.

as I tested here https://github.com/tempo-riz/bug-report/tree/195ab27ced8c55bd917a7d4154011cb3442002bd/gorouter_nested_nav_showbottommobal you can use Navigator.of(context, rootNavigator: true).pop(); if root navigator is set to true

It still not working using rootNavigator in pop.
i'm asking if it's me i did something wrong in my rooting or with context.

Have the same big issue, any updates?

My main problem isn't with the correct usage of the pop method, but rather with the back action behavior on Android.  The back button functions as expected on the latest version 12 (12.1.3), so I'll stick with that until this issue is resolved here.

I've stumbled upon the same issue, a downgrade to version 12.1.3 makes it work as expected, as in going back, the bottom sheet dialog is closed first.
This is the behavior I'm currently experiencing:
https://github.com/user-attachments/assets/3aaba35d-67c1-4017-a31a-ae72ff839ba0

Channel stable, 3.22.2.
Facing the same issue with useRootNavigator = true.
Temporary fix: Navigator.of(context).pop().
Would love an explanation on why this method works but context.pop() from go_router package doesn't.
what causes the dialog to get the wrong context.

This issue has been fixed in version 14.2.5

authors: AbdeMohlbi AhmedLSayed9 CaoGiaHieu-dev aodpi darshankawar gheorgheomni ignicubeLaeeq laldevfr omar-hanafy tempo-riz


text:
PredictiveBackPageTransitionsBuilder background color not changeable

Steps to reproduce

Add a theme to the MaterialApp that includes PredictiveBackPageTransitionsBuilder as transition (see code sample).
Enable predictive back in developer settings
Use predictive back, but don't pop it

=> There's no way of setting the black background to a different color (correct me if I'm wrong)

Code sample
Code sample
pageTransitionsTheme: const PageTransitionsTheme(
  builders: <TargetPlatform, PageTransitionsBuilder>{
    TargetPlatform.android: PredictiveBackPageTransitionsBuilder(),
  },
)

What target platforms are you seeing this bug on?
Android
OS/Browser name and version | Device information
Android 14
Does the problem occur on emulator/simulator as well as on physical devices?
Yes
Logs
Logs
Not needed

Flutter Doctor output
Doctor output
[√] Flutter (Channel stable, 3.22.2, on Microsoft Windows [Version 10.0.22631.4037], locale de-DE)
    • Flutter version 3.22.2 on channel stable at E:\dev\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 761747bfc5 (3 months ago), 2024-06-05 22:15:13 +0200
    • Engine revision edd8546116
    • Dart version 3.4.3
    • DevTools version 2.34.3

[√] Windows Version (Installed version of Windows is version 10 or higher)

[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at C:\Users\jakob\AppData\Local\Android\sdk
    • Platform android-34, build-tools 34.0.0
    • Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java
    • Java version OpenJDK Runtime Environment (build 17.0.9+0--11185874)
    • All Android licenses accepted.

[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.10.6)
    • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
    • Visual Studio Community 2022 version 17.10.35201.131
    • Windows 10 SDK version 10.0.22621.0

[√] Android Studio (version 2023.2)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.9+0--11185874)

[√] VS Code (version 1.92.2)
    • VS Code at C:\Users\jakob\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.86.0

[√] Connected device (2 available)
    • Pixel 6 (mobile)  • 25141FDF6001LD • android-arm64 • Android 14 (API 34)
    • Windows (desktop) • windows        • windows-x64   • Microsoft Windows [Version 10.0.22631.4037]

[√] Network resources
    • All expected network resources are available.

• No issues found!

Reproducible on the latest stable and master.  There doesn't appear to be a parameter to set or change the scrim/background color (or at least it isn't documented).
Labeling for further insight

flutter doctor -v
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import 'package:flutter/material.dart';

/// Flutter code sample for [PageTransitionsTheme].

void main() => runApp(const PageTransitionsThemeApp());

class PageTransitionsThemeApp extends StatelessWidget {
  const PageTransitionsThemeApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: ThemeData(
        useMaterial3: true,
        // Defines the page transition animations used by MaterialPageRoute
        // for different target platforms.
        // Non-specified target platforms will default to
        // ZoomPageTransitionsBuilder().
        pageTransitionsTheme: const PageTransitionsTheme(
          builders: <TargetPlatform, PageTransitionsBuilder>{
            TargetPlatform.android: PredictiveBackPageTransitionsBuilder(),
          },
        ),
      ),
      home: const HomePage(),
    );
  }
}

class HomePage extends StatelessWidget {
  const HomePage({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.blueGrey,
      body: Center(
        child: ElevatedButton(
          onPressed: () {
            Navigator.of(context).push(
              MaterialPageRoute<SecondPage>(
                builder: (BuildContext context) => const SecondPage(),
              ),
            );
          },
          child: const Text('To SecondPage'),
        ),
      ),
    );
  }
}

class SecondPage extends StatelessWidget {
  const SecondPage({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.purple[200],
      body: Center(
        child: ElevatedButton(
          onPressed: () {
            Navigator.of(context).pop();
          },
          child: const Text('Back to HomePage'),
        ),
      ),
    );
  }
}

flutter doctor -v
[!] Flutter (Channel stable, 3.24.1, on macOS 14.6.1 23G93 darwin-arm64, locale en-US)
    • Flutter version 3.24.1 on channel stable at /Users/deanli/dev/stable
    ! The flutter binary is not on your path. Consider adding /Users/deanli/dev/stable/bin to your path.
    ! The dart binary is not on your path. Consider adding /Users/deanli/dev/stable/bin to your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 5874a72aa4 (3 days ago), 2024-08-20 16:46:00 -0500
    • Engine revision c9b9d5780d
    • Dart version 3.5.1
    • DevTools version 2.37.2
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

[!] Flutter (Channel master, 3.25.0-1.0.pre.102, on macOS 14.6.1 23G93 darwin-arm64, locale en-US)
    • Flutter version 3.25.0-1.0.pre.102 on channel master at /Users/deanli/dev/master
    ! The flutter binary is not on your path. Consider adding /Users/deanli/dev/master/bin to your path.
    ! The dart binary is not on your path. Consider adding /Users/deanli/dev/master/bin to your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision aa934ac119 (11 hours ago), 2024-08-22 15:54:20 -0700
    • Engine revision 67a7fe18c0
    • Dart version 3.6.0 (build 3.6.0-167.0.dev)
    • DevTools version 2.39.0-dev.15
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

We should think about this as a part of changes to this animation in https://github.com/flutter/flutter/issues/153577. I thought it might be configurable via https://main-api.flutter.dev/flutter/services/SystemUiOverlayStyle-class.html but nothing there affects it.

FYI: #154057 ZoomPageTransitionsBuilder just got this feature

Author of #154057 here, I just played around with this for a bit on Android 15 and can also confirm this behavior with the given code sample.
I looked at the PredictiveBackPageTransitionsBuilder code and can't seem to find a way to change the color like I did for the ZoomPageTransitionsBuilder implementation nor an existing way to customize it. Feel free to jump in and correct me if I'm wrong but I believe @justinmc is right and this should be dealt with in #153577, there are a lot of problems with the current predictive back implementation to deal with them all separately so we should concentrate them there, where most are already listed.

Navigator has 2 Route: The predictive back also moves the root Route, resulting in a visible black canvas since there is nothing behind it; this is the default behavior natively as @justinmc recorded it.
Navigator has 2+ Route: Unfortunately, here too, only darkness is visible because the Route under the parent Route is likely hidden by Flutter.

Code sample
import 'package:flutter/material.dart';

void main() {
  runApp(const MainApp());
}

class MainApp extends StatelessWidget {
  const MainApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: ThemeData(
        brightness: Brightness.light,
        pageTransitionsTheme: const PageTransitionsTheme(
          builders: {
            TargetPlatform.android: PredictiveBackPageTransitionsBuilder(),
          },
        ),
      ),
      home: const Screen(counter: 1),
    );
  }
}

class Screen extends StatelessWidget {
  const Screen({
    super.key,
    required this.counter,
  });

  final int counter;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('Screen: $counter'),
      ),
      body: Center(
        child: ElevatedButton(
          onPressed: () {
            Navigator.of(context).push(
              MaterialPageRoute<void>(builder: (_) => Screen(counter: counter + 1)),
            );
          },
          child: Text('Go to Screen ${counter + 1}'),
        ),
      ),
    );
  }
}

source: gharchive/issue

repo: flutter/flutter

license_type: permissive

license_source: github-api


text:
On Selectable Region on Web, users are not able to double click on word to select it

Steps to reproduce

Set up a Flutter Web project:

Create a new Flutter Web project using flutter create.
Ensure that your environment is set up to run web builds (flutter build web or flutter run -d chrome).
Create a TextField in RTL mode:
In your Flutter app, make a selectable text widget.
Try to double click it. Text does not selected
Flutter Doctor output
Doctor output
Doctor summary (to see all details, run flutter doctor -v):
[!] Flutter (Channel [user-branch], 3.24.1, on macOS 14.7 23H124 darwin-arm64, locale en-IL)
    ! Flutter version 3.24.1 on channel [user-branch] at /Users/ag/flutter
      Currently on an unknown channel. Run `flutter channel` to switch to an official channel.
      If that doesn't fix the issue, reinstall Flutter by following instructions at https://flutter.dev/setup.
    ! Warning: `flutter` on your path resolves to /Users/ag/flutter/bin/flutter, which is not inside your current Flutter SDK checkout at
      /Users/ag/flutter. Consider adding /Users/ag/flutter/bin to the front of your path.
    ! Warning: `dart` on your path resolves to /Users/ag/flutter/bin/dart, which is not inside your current Flutter SDK checkout at
      /Users/ag/flutter. Consider adding /Users/agflutter/bin to the front of your path.
    ! Upstream repository unknown source is not a standard remote.
      Set environment variable "FLUTTER_GIT_URL" to unknown source to dismiss this error.
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0-rc4)
[✓] Xcode - develop for iOS and macOS (Xcode 16.0)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.2)
[✓] VS Code (version 1.94.2)
[✓] Connected device (3 available)
    ! Error: Browsing on the local area network for Aminadav iPhone. Ensure the device is unlocked and attached with a cable or associated with the same local
      area network as this Mac.
      The device must be opted into Developer Mode to connect wirelessly. (code -27)
[✓] Network resources

! Doctor found issues in 1 category

@Aminadav
I used this example, added a TextField with RTL text direction in it, ran it on web using latest stable, and was able to select the word with double clicking on it. Check the same to see if it works at your end or not.
If not, please provide a runnable code sample along with a short video that shows the reported behavior.

authors: Aminadav darshankawar


text:
fllutter create should initialize analytics_options.yaml with stricter settings

Use case
When creating a new flutter project with fluter create the generated analysis_options.yaml does only contain
flutter_lints
Proposal
It should at least set
analyzer:
  language:
    strict-casts: true
    strict-inference: true
    strict-raw-types: true

also some lints should be set to level errror see
https://github.com/dart-lang/sdk/issues/57098#issuecomment-2485661859

If these lints aren't present in flutter_lints and should be, we should probably file a feature request against that package rather than adding individual lints to the flutter create templates.

As these aren't lints but langue settings can they be defined in the Flutter_lint package?
Am 3. Dez. 2024, 19:58 +0100 schrieb Ben Konyi @.***>:

If these lints aren't present in flutter_lints and should be, we should probably file a feature request against that package rather than adding individual lints to the flutter create templates.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>

Yes, they could be (we do something similar with the unlisted package:dart_flutter_team_lints).

authors: bkonyi escamoteur


text:
'_InternalLinkedHashMap<dynamic, dynamic>' is not a subtype of type 'Map<String, dynamic>'

Steps to Reproduce
After upgrading flutter, I get this exception each time I try to manipulate a value resulting from firebase_database.
final map = snapshot.value as Map<String, dynamic>

It is not clear if I have to use the new cast function instead of as.
Flutter Doctor
[✓] Flutter (Channel master, v0.2.12-pre.33, on Mac OS X 10.13.3 17D47, locale en-FR)
    • Flutter version 0.2.12-pre.33 at /Users/lejard_h/flutter
    • Framework revision ea30c95dc9 (17 hours ago), 2018-04-13 17:02:14 -0700
    • Engine revision 76cb311d9c
    • Dart version 2.0.0-dev.47.0.flutter-f76dad0adc

[✓] Android toolchain - develop for Android devices (Android SDK 27.0.2)
    • Android SDK at /Users/lejard_h/Library/Android/sdk
    • Android NDK at /Users/lejard_h/Library/Android/sdk/ndk-bundle
    • Platform android-27, build-tools 27.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)
    • All Android licenses accepted.

[✓] iOS toolchain - develop for iOS devices (Xcode 9.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 9.2, Build version 9C40b
    • ios-deploy 1.9.2
    • CocoaPods version 1.3.1

[✓] Android Studio
    • Android Studio at /Applications/Android Studio 3.0 Preview.app/Contents
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)

[✓] Android Studio (version 2.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    • Dart plugin version 145.971.7
    • Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)

[✓] IntelliJ IDEA Ultimate Edition (version 2017.1.2)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    • Flutter plugin version 16.0
    • Dart plugin version 171.4249.16

[✓] IntelliJ IDEA Community Edition (version 2017.3.3)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 22.2.2
    • Dart plugin version 173.4301.22

[✓] VS Code (version 1.22.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Dart Code extension version 2.11.2

[✓] Connected devices (1 available)
    • iPhone 8 • CE938D6B-FEAF-4CA8-B07C-62594CD5B7C7 • ios • iOS 11.2 (simulator)

• No issues found!

any news about this ? is it mandatory to use cast function now ?

I use
new Map<String, dynamic>.from(snapshot.value);

I updated my firebase_auth dependency in the pubspec.yaml file to the latest one, and that worked for me.
dependencies:
flutter:
sdk: flutter
firebase_auth: ^0.5.11

@lejard-h is this still an issue with latest version?

I actually ran just today into this using jaguar_serializer
The generated code that throws the exception is:
  EventCategory fromMap(Map map) {
    if (map == null) return null;
    final obj = new EventCategory(
        name: map['name'] as String ?? getJserDefault('name'),
        displayName:
            map['displayName'] as String ?? getJserDefault('displayName'),
        icon: map['icon'] as String ?? getJserDefault('icon'),
        eventTypes: codeMap<EventType>(
                map['eventTypes'] as Map<String, dynamic>,     <- Exception happens here
                (val) => _eventTypeSerializer.fromMap(val as Map)) ??
            getJserDefault('eventTypes'));
    return obj;
  }

C:\Entwicklung\FlutterApps\Projects\JoinOrCreate\JoinOrCreate_Mobile> flutter doctor -v
[√] Flutter (Channel master, v0.5.5-pre.45, on Microsoft Windows [Version 10.0.17134.112], locale de-DE)
• Flutter version 0.5.5-pre.45 at C:\Entwicklung\Flutter
• Framework revision 592c5ba91a (17 hours ago), 2018-06-18 06:37:01 +0100
• Engine revision c3976b3c71
• Dart version 2.0.0-dev.61.0.flutter-c95617b19c
[√] Android toolchain - develop for Android devices (Android SDK 27.0.3)
• Android SDK at C:\Users\escam\AppData\Local\Android\sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-27, build-tools 27.0.3
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)
• All Android licenses accepted.
[√] Android Studio (version 3.1)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 24.2.1
• Dart plugin version 173.4700
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)
[√] VS Code, 32-bit edition (version 1.24.1)
• VS Code at C:\Program Files (x86)\Microsoft VS Code
• Flutter extension version 2.14.0
[√] Connected devices (1 available)
• Android SDK built for x86 • emulator-5554 • android-x86 • Android 7.1.1 (API 25) (emulator)
• No issues found!

@escamoteur that's working as intended.
as doesn't change the type, it's just an assertion.
You need to use map['eventType'].cast<String, dynamic>() or Map<String, dynamic>.from(map['eventType'])

For jaguar_serializer this was fixed right now
jaguar_serializer: 2.1.5
jaguar_serializer_cli. 2.1.14

I will test it soon, I will keep you up to date

I was having the same issue when calling json.encode(credentials)
This is Credentials Class:
import 'package:json_annotation/json_annotation.dart';
part 'credentials.g.dart';

@JsonSerializable()
class Credentials extends Object with _$CredentialsSerializerMixin {
  String login;
  String password;

  Credentials(this.login, this.password);

  factory Credentials.fromJson(Map<String, dynamic> json) => _$CredentialsFromJson(json);
}

And used like this:
import 'dart:async';
import 'dart:convert';
import '../../model/credentials.dart';
import '../../model/user.dart';
import '../base-service.dart';

class LoginService extends BaseService<User, Credentials> {

  LoginService() : super(false);

  Future<User> authenticate(Credentials credentials){
    return this.post("/user/login", credentials);
  }

  @override
  User buildResult(Map<String, dynamic> jsonMap) {
      return new User.fromJson(jsonMap);
  }

  @override
    String buildInput(Credentials input) {
      return json.encode(input);
    }
}

the method buildInput produce the exception.
Flutter Doctor
[√] Flutter (Channel beta, v0.5.1, on Microsoft Windows [Version 10.0.17134.112], locale es-AR)
• Flutter version 0.5.1 at C:\Users\danie\flutter
• Framework revision c7ea3ca377 (5 weeks ago), 2018-05-29 21:07:33 +0200
• Engine revision 1ed25ca7b7
• Dart version 2.0.0-dev.58.0.flutter-f981f09760
[√] Android toolchain - develop for Android devices (Android SDK 26.0.2)
• Android SDK at C:\Users\danie\AppData\Local\Android\sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-27, build-tools 26.0.2
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)
• All Android licenses accepted.
[√] Android Studio (version 2.3)
• Android Studio at C:\Program Files\Android\Android Studio
X Flutter plugin not installed; this adds Flutter specific functionality.
X Dart plugin not installed; this adds Dart specific functionality.
• Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)
[!] VS Code, 64-bit edition (version 1.25.0)
• VS Code at C:\Program Files\Microsoft VS Code
• Flutter extension not installed; install from
https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
[√] Connected devices (1 available)
• XT1572 • TA39101C3W • android-arm64 • Android 7.0 (API 24)
! Doctor found issues in 1 category.

@dardison are you using the latest version of json_serislizable?

no, I'm using version 0.4.0
This are my dev dependencies:
dev dependencies:

build_runner 0.8.9

dart_style ^1.0.0
async >=1.13.3 <3.0.0
build_config ^0.2.6
meta ^1.1.0
io ^0.3.0
shelf >=0.6.5 <0.8.0
mime ^0.9.3
code_builder >2.3.0 <4.0.0
watcher ^0.9.7
args >=1.4.0 <2.0.0
collection ^1.14.0
crypto >=0.9.2 <3.0.0
build_resolvers ^0.2.0
pool ^1.0.0
glob ^1.1.0
convert ^2.0.1
stack_trace ^1.9.0
cli_util ^0.1.2
path ^1.1.0
build >=0.12.4 <0.12.7
stream_transform ^0.0.9
graphs ^0.1.0
logging ^0.11.2
yaml ^2.1.0
http_multi_server ^2.0.0

json_serializable 0.4.0

cli_util ^0.1.0
source_gen ^0.7.5
path ^1.3.2
build >=0.9.0 <0.13.0
build_config ^0.2.1
json_annotation >=0.2.2 <0.2.3
analyzer >=0.29.10 <0.32.0

flutter_test 0.0.0

shelf_static 0.2.7
meta 1.1.5
web_socket_channel 1.0.7
matcher 0.12.2+1
boolean_selector 1.0.3
source_map_stack_trace 1.1.4
mime 0.9.6
quiver 0.29.0+1
watcher 0.9.7+7
package_config 1.0.3
collection 1.14.6
kernel 0.3.0-alpha.12
html 0.13.3
pool 1.3.4
glob 1.1.5
pub_semver 1.4.1
path 1.5.1
http_parser 3.1.2
vector_math 2.0.6
http_multi_server 2.0.4
analyzer 0.31.2-alpha.2
node_preamble 1.4.1
test 0.12.37
async 2.0.7
charcode 1.1.1
http 0.11.3+16
io 0.3.2+1
shelf_web_socket 0.2.2
multi_server_socket 1.0.1
stream_channel 1.6.6
term_glyph 1.0.0
flutter any
utf 0.9.0+4
shelf 0.7.3
source_span 1.4.0
js 0.6.1
string_scanner 1.0.2
source_maps 0.10.5
front_end 0.1.0-alpha.12
package_resolver 1.0.2
args 1.4.3
typed_data 1.1.5
crypto 2.0.3
csslib 0.14.4
stack_trace 1.9.2
convert 2.0.1
plugin 0.2.0+2
shelf_packages_handler 1.0.3
logging 0.11.3+1
yaml 2.1.13

Any reason why you are not using the latest version? There were Dart-2 related fixes.

I tried but have conflicts with other libraries, it doesn't seems to be an easy way of config a bunch of compatible library versions. latest version of json_serializable has conflicts I couldn't resolve.

I think there won't be a way around it. Probably better to post what error you get when using newer versions.

I did the upgraded you suggested but I have the same results, now my dev dependencies are:
dev dependencies:

build_runner 0.8.9

dart_style ^1.0.0
async >=1.13.3 <3.0.0
build_config ^0.2.6
meta ^1.1.0
io ^0.3.0
shelf >=0.6.5 <0.8.0
mime ^0.9.3
code_builder >2.3.0 <4.0.0
watcher ^0.9.7
args >=1.4.0 <2.0.0
collection ^1.14.0
crypto >=0.9.2 <3.0.0
build_resolvers ^0.2.0
pool ^1.0.0
glob ^1.1.0
convert ^2.0.1
stack_trace ^1.9.0
cli_util ^0.1.2
path ^1.1.0
build >=0.12.4 <0.12.7
stream_transform ^0.0.9
graphs ^0.1.0
logging ^0.11.2
yaml ^2.1.0
http_multi_server ^2.0.0

json_serializable 0.5.2

source_gen >=0.8.1 <0.9.0
path ^1.3.2
build >=0.9.0 <0.13.0
build_config ^0.2.6
meta ^1.1.0
json_annotation >=0.2.4 <0.2.5
analyzer >=0.29.10 <0.32.0

The problem is in the json.encode(credentials), and happens when the code generated by the json_serializable library was executed.
Any ideas?

@dardison the latest version of json_serializable is 0.5.8, which includes "Small fixes to support Dart 2 runtime semantics.". Updating Flutter will not help with this error because the problem is in that library.

Thanks @jonahwilliams for your answer.
I remove the code for json_serializable and tested.
unfortunatelly I received the same results:
I/flutter ( 3364): ══╡ EXCEPTION CAUGHT BY GESTURE ╞═══════════════════════════════════════════════════════════════════
I/flutter ( 3364): The following assertion was thrown while handling a gesture:
I/flutter ( 3364): type '_InternalLinkedHashMap<dynamic, dynamic>' is not a subtype of type 'Map<String, String>'
I/flutter ( 3364):
I/flutter ( 3364): Either the assertion indicates an error in the framework itself, or we should provide substantially
I/flutter ( 3364): more information in this error message to help you determine and fix the underlying cause.
I/flutter ( 3364): In either case, please report this assertion by filing a bug on GitHub:
I/flutter ( 3364):   https://github.com/flutter/flutter/issues/new

My Credentials Class now looks like this:
class Credentials  {
  String login;
  String password;

  Credentials(this.login, this.password);

  Map toJson() {
    return {"login" : login, "passoword" : password};
  }
}

This is my current environment:
[√] Flutter (Channel dev, v0.5.6, on Microsoft Windows [Version 10.0.17134.112], locale es-AR)
[√] Android toolchain - develop for Android devices (Android SDK 26.0.2)
[√] Android Studio (version 2.3)
X Flutter plugin not installed; this adds Flutter specific functionality.
X Dart plugin not installed; this adds Dart specific functionality.
[√] VS Code, 64-bit edition (version 1.25.0)
[√] Connected devices (1 available)
• No issues found!
and dependencies:
dependencies:

cupertino_icons 0.1.2
http 0.11.3+16

http_parser >=0.0.1 <4.0.0
async >=1.10.0 <3.0.0
path >=0.9.0 <2.0.0
collection ^1.5.0

intl 0.15.6

path >=0.9.0 <2.0.0

json_annotation 0.2.9
flutter 0.0.0

sky_engine any
vector_math 2.0.6
collection 1.14.6
typed_data 1.1.5
meta 1.1.5

dev dependencies:

build_runner 0.8.10

dart_style ^1.0.0
async >=1.13.3 <3.0.0
build_config ^0.3.0
meta ^1.1.0
io ^0.3.0
build_runner_core ^0.1.0
shelf >=0.6.5 <0.8.0
mime ^0.9.3
code_builder >2.3.0 <4.0.0
watcher ^0.9.7
args >=1.4.0 <2.0.0
collection ^1.14.0
crypto >=0.9.2 <3.0.0
build_resolvers ^0.2.0
pool ^1.0.0
glob ^1.1.0
convert ^2.0.1
stack_trace ^1.9.0
cli_util ^0.1.2
path ^1.1.0
build >=0.12.4 <0.12.7
stream_transform ^0.0.9
graphs ^0.1.0
logging ^0.11.2
yaml ^2.1.0
http_multi_server ^2.0.0

json_serializable 0.5.8

source_gen ^0.8.2
path ^1.3.2
build ^0.12.6
build_config >=0.2.6 <0.4.0
meta ^1.1.0
json_annotation >=0.2.9 <0.2.10
analyzer ^0.32.0

transitive dependencies:

analyzer 0.32.3

watcher >=0.9.6 <0.10.0
args >=0.12.1 <2.0.0
package_config >=0.1.5 <2.0.0
collection ^1.10.1
meta ^1.0.2
crypto >=1.1.1 <3.0.0
charcode ^1.1.0
html >=0.12.0 <1.14.0
kernel 0.3.3
glob ^1.0.3
convert ^2.0.0
plugin ^0.2.0
path >=0.9.0 <2.0.0
yaml ^2.1.2
source_span ^1.2.0
front_end 0.1.3

args 1.4.3
async 2.0.7

collection ^1.5.0

build 0.12.6

async >=1.13.3 <3.0.0
path ^1.1.0
meta ^1.1.0
crypto >=0.9.2 <3.0.0
logging ^0.11.2
glob ^1.1.0
analyzer >=0.27.1 <0.33.0

build_config 0.3.1

yaml ^2.1.11
json_annotation ^0.2.8
path ^1.4.0
build ^0.12.1
pubspec_parse ^0.1.0
meta ^1.1.0

build_resolvers 0.2.0+2

cli_util ^0.1.0
path ^1.1.0
build ^0.12.0
analyzer >=0.27.1 <0.33.0

build_runner_core 0.1.0

watcher ^0.9.7
async >=1.13.3 <3.0.0
collection ^1.14.0
build_config ^0.3.0
meta ^1.1.0
crypto >=0.9.2 <3.0.0
build_resolvers ^0.2.0
pool ^1.0.0
glob ^1.1.0
convert ^2.0.1
cli_util ^0.1.2
path ^1.1.0
build >=0.12.4 <0.12.7
graphs ^0.1.0
logging ^0.11.2
yaml ^2.1.0

built_collection 3.1.1

quiver >=0.21.0 <0.30.0
collection ^1.7.0

built_value 5.5.3

quiver >=0.21.0 <0.30.0
built_collection >=2.0.0 <4.0.0
fixnum ^0.10.0
collection ^1.0.0

charcode 1.1.1
cli_util 0.1.3

path >=1.0.0 <2.0.0

code_builder 3.1.1

matcher ^0.12.0
built_collection >=1.0.0 <4.0.0
built_value ^5.1.0
meta ^1.0.5

collection 1.14.6
convert 2.0.1

charcode ^1.1.0
typed_data ^1.1.0

crypto 2.0.5

convert >=1.0.0 <3.0.0
collection ^1.0.0
typed_data ^1.0.0

csslib 0.14.4

logging >=0.9.0 <0.12.0
source_span >=1.4.0 <2.0.0
args >=0.12.1 <2.0.0
path >=0.9.0 <2.0.0

dart_style 1.1.2

source_span ^1.4.0
args >=0.12.1 <2.0.0
path ^1.0.0
analyzer >0.31.2-alpha.0 <0.33.0

fixnum 0.10.7
front_end 0.1.3

convert ^2.0.1
package_config ^1.0.1
path ^1.3.9
meta ^1.1.1
crypto ^2.0.2
charcode ^1.1.1
yaml ^2.1.12
source_span ^1.2.3
kernel 0.3.3

glob 1.1.5

string_scanner >=0.1.0 <2.0.0
async >=1.2.0 <3.0.0
path ^1.3.0
collection ^1.1.0

graphs 0.1.2
html 0.13.3+1

source_span >=1.0.0 <2.0.0
csslib >=0.13.2 <0.15.0
utf >=0.9.0 <0.10.0

http_multi_server 2.0.5

async >=1.2.0 <3.0.0

http_parser 3.1.2

charcode ^1.1.0
source_span ^1.0.0
string_scanner >=0.0.0 <2.0.0
collection >=0.9.1 <2.0.0
typed_data ^1.1.0

io 0.3.2+1

charcode ^1.0.0
string_scanner >=0.1.5 <2.0.0
path ^1.5.1
meta ^1.0.2

kernel 0.3.3

logging ^0.11.2
package_config ^1.0.0
args >=0.13.4 <2.0.0
path ^1.3.9

logging 0.11.3+1
matcher 0.12.2

stack_trace ^1.2.0

meta 1.1.5
mime 0.9.6+1
package_config 1.0.3

charcode ^1.1.0
path ^1.0.0

path 1.6.1
plugin 0.2.0+2
pool 1.3.5

stack_trace >=0.9.2 <2.0.0
async >=1.4.0 <3.0.0

pub_semver 1.4.1

collection >=0.9.0 <2.0.0

pubspec_parse 0.1.2

pub_semver ^1.3.2
yaml ^2.1.12
json_annotation ^0.2.8

quiver 0.29.0+1

matcher >=0.10.0 <0.13.0
meta >=1.0.0 <2.0.0

shelf 0.7.3+1

stack_trace ^1.0.0
http_parser ^3.1.0
async >=1.10.0 <3.0.0
stream_channel ^1.0.0
path ^1.0.0
collection ^1.5.0

sky_engine 0.0.99
source_gen 0.8.3

dart_style >=0.1.7 <2.0.0
async ^2.0.7
path ^1.3.2
build >=0.10.0 <0.13.0
meta ^1.1.0
source_span ^1.4.0
analyzer >=0.31.0 <0.33.0

source_span 1.4.0

charcode ^1.0.0
path >=1.2.0 <2.0.0

stack_trace 1.9.2

path ^1.2.0

stream_channel 1.6.7+1

async >=1.11.0 <3.0.0

stream_transform 0.0.14
string_scanner 1.0.2

charcode ^1.1.0
source_span ^1.4.0

typed_data 1.1.5
utf 0.9.0+4
vector_math 2.0.6
watcher 0.9.7+8

async >=1.10.0 <3.0.0
path >=0.9.0 <2.0.0

yaml 2.1.14

charcode ^1.1.0
source_span >=1.0.0 <2.0.0
string_scanner >=0.1.4 <2.0.0
collection >=1.1.0 <2.0.0

Unfortunately if you use List or Map without a type parameter that means the same as List<dynamic> and Map<dynamic, dynamic>.
Try:
  Map<String, String> toJson() {
    return <String, String>{"login" : login, "passoword" : password};
  }

Same issue with:
class Credentials  {
  String login;
  String password;

  Credentials(this.login, this.password);

  Map<String, String> toJson() {
    return <String, String>{"login" : login, "passoword" : password};
  }
}

I/flutter ( 3890): ══╡ EXCEPTION CAUGHT BY GESTURE ╞═══════════════════════════════════════════════════════════════════
I/flutter ( 3890): The following assertion was thrown while handling a gesture:
I/flutter ( 3890): type '_InternalLinkedHashMap<dynamic, dynamic>' is not a subtype of type 'Map<String, String>'
I/flutter ( 3890):

That error looks like it came from somewhere else in your code, could you post a few lines around where the error is occuring?

Ok,
This BaseService HTTP post class:
import 'package:http/http.dart' as http;
import 'dart:convert';
import 'dart:async';
import '../globals.dart' as globals;

abstract class BaseService<R,I> {
  bool secured;

  BaseService(this.secured);

  Future<R> post(String serviceUrl, I input) {
    String url=globals.serverURL + globals.baseService + serviceUrl;
    Map head=this.buildHeader();
    String strBody = this.buildInput(input);

    return http
        .post(url, body: strBody, headers: head)
        .then((http.Response response) {
      final String res = response.body;
      final int statusCode = response.statusCode;

      if (statusCode !=200) {
        String message = jsonDecode(res)["errorMessage"];
        throw new Exception(message);
      }
      Map mapResult=jsonDecode(res);
      return this.buildResult(mapResult);
    });
  }

  String buildInput(I input);

And here is child class LoginService:
import 'dart:async';
import 'dart:convert';
import '../../model/credentials.dart';
import '../../model/user.dart';
import '../base-service.dart';

class LoginService extends BaseService<User, Credentials> {

  LoginService() : super(false);

  Future<User> authenticate(Credentials credentials){
    return this.post("/user/login", credentials);
  }

  @override
  User buildResult(Map<String, dynamic> jsonMap) {
      return new User.fromJson(jsonMap);
  }

  @override
    String buildInput(Credentials input) {
      const jsonCodec = JsonCodec();
      return jsonCodec.encode(input); <-- problem is here after call Credentials.toJson
    }
}

@dardison does it work if you call input.toJson() yourself?

Got the similar issue with Firebase database.
/media/cui/software/flutter/bin/flutter --no-color doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, v0.5.1, on Linux, locale en_CA.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK 28.0.0-rc2)
[✓] Android Studio (version 3.1)
[!] IntelliJ IDEA Ultimate Edition (version 2017.3)
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
[!] VS Code (version 1.22.2)
[✓] Connected devices (1 available)
! Doctor found issues in 2 categories.
Process finished with exit code 0
The error is a little bit different though:
I/flutter ( 4816): Failed invoking the getRequests function. Exception: type '_InternalLinkedHashMap<String, dynamic>' is not a subtype of type 'String'
The code is:
  factory RequestPost.fromJSON(Map<String, dynamic> data) {
    return new RequestPost(
      customerName: data['customerName'],
      fromLocation: data['fromLocation'],
      toLocation: data['toLocation'],
      fromAddress: data['fromAddress'],
      toAddress: data['toAddress'],
      notes: data['notes'],
      userId: data['userId'],
      requestId: data['requestId'],
    );
  }

@benqethan that just sounds like you're getting a String instead of a Map<String,dynamic> from Firebase.

@dardison could you fix your problem?

@lejard-h is this still an issue for you?

@zoechi I fixed the problem. The error message is not so clear. I did get the map from Firebase. The exception happened when converting a nested json fromLocation to RequestPost.fromLocation which is defined as String.

I has remvoe dynamic in method arguments， it is works, As so I have not konw dynamic's good points

Hello, everyone, I am trying to write one generic
POST request method for web API call
Future requestMethod() async {
var url = "https://testurl";
var body = json.encode({"programid":"1211"});
Map headers = {
  'Content-type' : 'application/json',
  'Accept': 'application/json',
};

var response =await http.post(url, body: body, headers: headers);
final responseJson = json.decode(response.body);
print(responseJson);
return response;

}

@Pradipkoravi I'd suggest to ask on StackOverflow or https://gitter.im/flutter/flutter

Model.formJson(json.decode(snapshot.value))

I used this
if(json["key"]!= null){       this.active_guests = json["key"].cast<String, int>();     }

Hello, everyone, I am trying to write one generic
POST request method for web API call
 Future<dynamic> requestMethod() async {
    var url = "https://testurl";
    var body = json.encode({"programid":"1211"});

    Map headers = {
      'Content-type' : 'application/json',
      'Accept': 'application/json',
    };

    var response =await http.post(url, body: body, headers: headers);
    final responseJson = json.decode(response.body);
    print(responseJson);
    return response;
  }

can you help me it's getting an error
type '_InternalLinkedHashMap<dynamic, dynamic>' is not a subtype of type 'Map<String, String>'

It seems like flutter doesn't support jsonEncoding of multiple maps one inside another.
I'm having the same problem too, and it happens when multiples maps are inside one another.
Anyone on this ? @Hixie @zoechi
It's a real blocking bug.

@nicolasvac
Please consider asking support questions in one of the other channels listed at http://flutter.io/support .

type '_InternalLinkedHashMap<dynamic, dynamic>' is not a subtype of type 'Map<String, dynamic>' in type cast

None of these works.
Print statement shows a map coming through.
Just another day fighting Dart tooth and nail to read some ^#&$^&# json. 😆
      contentRef(schemaKey)
          .child(entryId)
          .once()
          .then((snap) => Entry.fromJson(snap.value.cast<String, dynamic>()));

      contentRef(schemaKey)
          .child(entryId)
          .once()
          .then((snap) => Entry.fromJson(Map.from(snap.value)));

      contentRef(schemaKey).child(entryId).once().then(
          (snap) => Entry.fromJson(Map<String, dynamic>.from(snap.value)));

@lukepighetti this doesn't look like the error comes from the code you posted.
Perhaps some missing context. Nothing in your code seems to require Map<String, dynamic>
This might work, but difficult to tell because of missing context.
contentRef(schemaKey)
          .child(entryId)
          .once()
          .then((snap) => Entry.fromJson(Map<String,dynamic>.from(snap.value)));

After poking around I found a reference to having to switch all of json_serializable toJson arguments to Map<dynamic, dynamic>
  factory Entry.fromJson(Map json) => _$EntryFromJson(json);

This is what you looking for
Map<String, dynamic> myMap = new Map<String, dynamic>.from(/*Your Source*/ );

@lukepighetti Perhaps you are looking for #17417 which is about JSON

My issue and solution is related to using json_serializable to serialize data coming from firebase_database which is coming in as Map<dynamic, dynamic>. Posted the solution for others who run into this issue.

If it's a list:
new List<dynamic>.from(snapshot.value)

My workaround is
final cleanMap = jsonDecode(jsonEncode(snapshot))

It's probably not the most performant solution but at least works.

My workaround is
final cleanMap = jsonDecode(jsonEncode(snapshot))

It's probably not the most performant solution but at least works.

This is the only method that works for me.

My workaround is
final cleanMap = jsonDecode(jsonEncode(snapshot))

It's probably not the most performant solution but at least works.

This is the only method that works for me.

me too

@Ikxyz @bhurlbert I'm sorry my comments were not helpful to you, perhaps you should post your own solutions to this annoying issue instead of downvoting suggestions from people who are actively trying to help.

Put the brakes on. I didn't down vote anything and the hostile comment is unwelcome.
B-rad

From: Luke Pighetti notifications@github.com
Sent: Tuesday, October 8, 2019 8:16:24 AM
To: flutter/flutter flutter@noreply.github.com
Cc: Brad Hurlbert brad.hurlbert@hotmail.com; Mention mention@noreply.github.com
Subject: Re: [flutter/flutter] '_InternalLinkedHashMap<dynamic, dynamic>' is not a subtype of type 'Map<String, dynamic>' (#16589)
@Ikxyzhttps://github.com/Ikxyz @bhurlberthttps://github.com/bhurlbert I'm sorry my comments were not helpful to you, perhaps you should post your own solutions to this annoying issue instead of downvoting suggestions from people who are actively trying to help.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/flutter/flutter/issues/16589?email_source=notifications&email_token=ABVHIN6TE2N7UCMHQTMDOITQNSP4RA5CNFSM4E2URPB2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAUQZOQ#issuecomment-539561146, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ABVHIN2OYGTPUQFMIMKQMFDQNSP4RANCNFSM4E2URPBQ.

Looks like you got my poorly thought out and quickly deleted message in your email. Apologies.

Annotation @JsonSerializable(anyMap: true) on my model classes helped me.

Annotation @JsonSerializable(anyMap: true) on my model classes helped me.

Did not work for me,
only https://github.com/flutter/flutter/issues/16589#issuecomment-510109449 worked for me

My workaround is
final cleanMap = jsonDecode(jsonEncode(snapshot))

It's probably not the most performant solution but at least works.

you saved me man! so grateful! (and such a horrible fix lol)

Annotation @JsonSerializable(anyMap: true) on my model classes helped me.

after adding this, don't forget to
flutter pub run build_runner build --delete-conflicting-outputs

@JsonSerializable(anyMap: true)

This does work. You have to do this for all models in the deserialization process, and you also have to change your usage in your factories to not have types. i.e.
factory Student.fromJson(Map json) => _$StudentFromJson(json);

I solved:
Map<String, dynamic>.from(json['json']

My workaround is
final cleanMap = jsonDecode(jsonEncode(snapshot))

It's probably not the most performant solution but at least works.

Omg, can someone explain why only this weird line works?

This issue is closed and no one on the Flutter team is monitoring it.  If you need help writing your app, try posting on Stack Overflow or some other help forum.
If you are seeing a bug in dart, please file with them so they can take a look.  https://github.com/dart-lang/sdk/issues
Locking as stale.

authors: 1g0rrr DigaoParceiro Ikxyz Pradipkoravi ScottPierce benqethan bhurlbert boylenssen bradh43 brilliant-ember cad0p coolnalu dardison escamoteur gabdsg ihrankouski jmagman jonahwilliams juicechu lejard-h lichentao lukepighetti marscj namndev nicolasvac tewshi ykphuah zoechi


text:
Slider within a TabBarView  onChangeEnd function fires at drag start.

Steps to Reproduce
If you drag the slider the onChangeEnd event will fire at start of dragging and other random times.
import 'package:flutter/material.dart';

void main() => runApp(new MyApp());

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return new MaterialApp(
      title: 'Flutter Demo',
      home: new MyHomePage(title: 'Flutter Test Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  MyHomePage({Key key, this.title}) : super(key: key);

  final String title;

  @override
  _MyHomePageState createState() => new _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  int _myValue = 60;

  @override
  Widget build(BuildContext context) {
    return DefaultTabController(
        length: 3,
        child: new Scaffold(
          appBar: new AppBar(
            title: new Text(widget.title),
            bottom: TabBar(
              tabs: [
                Tab(icon: Icon(Icons.directions_car)),
                Tab(icon: Icon(Icons.directions_transit)),
                Tab(icon: Icon(Icons.directions_bike)),
              ],
            ),
          ),
          body: new TabBarView(children: <Widget>[
            new Center(
              child: new Column(
                mainAxisAlignment: MainAxisAlignment.center,
                children: <Widget>[
                  new Slider(
                    value: _myValue.toDouble(),
                    min: 1.0,
                    max: 100.0,
                    divisions: 10,
                    label: '$_myValue',
                    onChanged: (double newValue) {
                      setState(() {
                        _myValue = newValue.round();
                      });
                    },
                    onChangeEnd: (double newValue) {
                      print('Ended change on $newValue');
                    },
                  ),
                ],
              ),
            ),
            new Icon(Icons.directions_transit),
            new Icon(Icons.directions_bike),
          ]),
          // This trailing comma makes auto-formatting nicer for build methods.
        ));
  }
}

[√] Flutter (Channel beta, v0.5.1, on Microsoft Windows [Version 10.0.17134.228], locale en-US)
    • Flutter version 0.5.1 at C:\src\flutter
    • Framework revision c7ea3ca377 (3 months ago), 2018-05-29 21:07:33 +0200
    • Engine revision 1ed25ca7b7
    • Dart version 2.0.0-dev.58.0.flutter-f981f09760

[√] Android toolchain - develop for Android devices (Android SDK 28.0.2)
    • Android SDK at C:\Users\victorsigma\AppData\Local\Android\sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.2
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)
    • All Android licenses accepted.

[√] Android Studio (version 3.1)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin version 27.1.1
    • Dart plugin version 173.4700
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)

[√] Connected devices (2 available)
    • Pixel XL                  • HT6AB0202794  • android-arm64 • Android 9 (API 28)
    • Android SDK built for x86 • emulator-5554 • android-x86   • Android 9 (API 28) (emulator)

I can confirm.
Seems to be a conflict with guestures with the TabBarView.
          body: new TabBarView(
              physics: NeverScrollableScrollPhysics(),

fixed it for me.

Issue still exist,  onChangeEnd event will fire at start of dragging
flutter doctor -v
[✓] Flutter (Channel dev, v1.18.0, on Mac OS X 10.15.4 19E266, locale en-GB)
    • Flutter version 1.18.0 at /Users/taha/Code/flutter_dev
    • Framework revision 8f7327f83a (31 hours ago), 2020-04-06 22:11:01 -0400
    • Engine revision 49891e0653
    • Dart version 2.8.0 (build 2.8.0-dev.20.0 1210d27678)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
    • Android SDK at /Users/taha/Code/sdk
    • Platform android-29, build-tools 29.0.3
    • ANDROID_HOME = /Users/taha/Code/sdk
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      1.8.0_212-release-1586-b4-5784211)
    • All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 11.4)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.4, Build version 11E146
    • CocoaPods version 1.9.1
[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 3.6)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 45.0.1
    • Dart plugin version 192.7761
    • Java version OpenJDK Runtime Environment (build
      1.8.0_212-release-1586-b4-5784211)
[✓] VS Code (version 1.43.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.9.1
[✓] Connected device (4 available)
    • SM M305F   • 32003c30dc19668f • android-arm64  • Android 10 (API 29)
    • macOS      • macOS            • darwin-x64     • Mac OS X 10.15.4 19E266
    • Chrome     • chrome           • web-javascript • Google Chrome
      80.0.3987.149
    • Web Server • web-server       • web-javascript • Flutter Tools
• No issues found!

Got the same problem. Anyone has solution on this?

Issue replicable on latest master. onChangeEnd is triggered on drag start as well as after drag stop.
I/flutter (23635): Ended change on 1.0
I/flutter (23635): Ended change on 40.6
I/flutter (23635): Ended change on 40.6
I/flutter (23635): Ended change on 50.5
I/flutter (23635): Ended change on 50.5
I/flutter (23635): Ended change on 60.4
I/flutter (23635): Ended change on 60.4
I/flutter (23635): Ended change on 70.3

flutter doctor -v
[✓] Flutter (Channel master, 1.26.0-2.0.pre.137, on Mac OS X 10.15.4 19E2269
    darwin-x64, locale en-IN)
    • Flutter version 1.26.0-2.0.pre.137 at
      /Users/dhs/documents/Fluttersdk/flutter
    • Framework revision 8f5d0371af (4 days ago), 2020-12-26 11:07:36 +0330
    • Engine revision f5364860ab
    • Dart version 2.12.0 (build 2.12.0-179.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.0)
    • Android SDK at /Users/dhs/Library/Android/sdk
    • Platform android-30, build-tools 30.0.0
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[!] Xcode - develop for iOS and macOS (Xcode 12.0.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.0.1, Build version 12A7300
    ! CocoaPods 1.9.3 out of date (1.10.0 is recommended).
        CocoaPods is used to retrieve the iOS and macOS platform side's plugin
        code that responds to your plugin usage on the Dart side.
        Without CocoaPods, plugins will not work on iOS or macOS.
        For more info, see https://flutter.dev/platform-plugins
      To upgrade see
      https://guides.cocoapods.org/using/getting-started.html#installation for
      instructions.

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6915495)

[✓] VS Code (version 1.51.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.16.0

[✓] Connected device (4 available)
    • SM A260G (mobile)                   • 5200763ebcfa861f
      • android-arm    • Android 8.1.0 (API 27)
    • iPhone SE (2nd generation) (mobile) • 6C85835D-FBFD-4AB3-8DE8-B4FAD35E5367
      • ios            • com.apple.CoreSimulator.SimRuntime.iOS-14-0 (simulator)
    • macOS (desktop)                     • macos
      • darwin-x64     • Mac OS X 10.15.4 19E2269 darwin-x64
    • Chrome (web)                        • chrome
      • web-javascript • Google Chrome 87.0.4280.88

! Doctor found issues in 1 category.

Can someone tell us if there is any workaround for this issue? It is from more than two year that this issue exists and it is very frustrating that a basic component like Slider has this bug.
If in a project you need to fire something at the onChangedEnd for example asking data from the API it results in a API overload.
A similar problem exist with the ListView(), in this case the onChangedEnd fire when you start dragging and when you end (two times per user action).
import 'package:flutter/material.dart';

void main() => runApp(MyApp());

/// This is the main application widget.
class MyApp extends StatelessWidget {
  static const String _title = 'Flutter Code Sample';

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: _title,
      home: DefaultTabController(
        length: 2,
        child: Scaffold(
          appBar: AppBar(
            title: new Text('Slider Bug'),
            bottom: TabBar(
              tabs: [
                Tab(icon: Icon(Icons.directions_car)),
                Tab(icon: Icon(Icons.directions_bike)),
              ],
            ),
          ),
          body: Builder(
            builder: (context) => TabBarView(children: <Widget>[
              Center(
                  child: RaisedButton(
                child: Text('Open Slider page'),
                onPressed: () => Navigator.of(context).push(
                  MaterialPageRoute(
                    builder: (context) => MyStatefulWidget(),
                  ),
                ),
              )),
              new Icon(Icons.directions_transit),
            ]),
          ),
        ),
      ),
    );
  }
}

class MyStatefulWidget extends StatefulWidget {
  MyStatefulWidget({Key key}) : super(key: key);

  @override
  _MyStatefulWidgetState createState() => _MyStatefulWidgetState();
}

class _MyStatefulWidgetState extends State<MyStatefulWidget> {
  double _currentSliderValue = 20;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: SafeArea(
        child: ListView(
          children: [
            Slider(
              value: _currentSliderValue,
              min: 0,
              max: 100,
              divisions: 5,
              label: _currentSliderValue.round().toString(),
              onChanged: (double value) {
                setState(() {
                  _currentSliderValue = value;
                });
              },
              onChangeEnd: (double value) {
                print('onChangedEnd: $value');
              },
            ),
          ],
        ),
      ),
    );
  }
}

@TahaTesser I believe this was fixed, see https://github.com/flutter/flutter/issues/28115

Closing per the last comment, please follow up there. Thanks!

authors: TahaTesser darshankawar enricobenedos nt4f04uNd zenkog zero-is-one zoechi


text:
iOS with cloud_firestore does not build (Xcode 10, ios 12.1, High Sierra)

Steps to Reproduce
i am using cloud_firestore: ^0.8.2+3  with multi_image_picker: ^2.3.29.
when i try to flutter run I get the following exception.
Logs
command
flutter run

exception
ProcessException: ProcessException: Process "/usr/bin/xcrun" exited abnormally:
An error was encountered processing the command (domain=IXUserPresentableErrorDomain, code=1):
This app could not be installed at this time.
Failed to load Info.plist from bundle at path /Users/ixdev/Library/Developer/CoreSimulator/Devices/D2C3C9A1-DAFB-4188-866F-3FCAC6E2996A/data/Library/Caches/com.apple.mobile.installd.staging/temp.jWjME0/extracted/Payload/Runner.app
Failed to load Info.plist from bundle at path /Users/ixdev/Library/Developer/CoreSimulator/Devices/D2C3C9A1-DAFB-4188-866F-3FCAC6E2996A/data/Library/Caches/com.apple.mobile.installd.staging/temp.jWjME0/extracted/Payload/Runner.app
Underlying error (domain=MIInstallerErrorDomain, code=35):
	Failed to load Info.plist from bundle at path /Users/ixdev/Library/Developer/CoreSimulator/Devices/D2C3C9A1-DAFB-4188-866F-3FCAC6E2996A/data/Library/Caches/com.apple.mobile.installd.staging/temp.jWjME0/extracted/Payload/Runner.app
  Command: /usr/bin/xcrun simctl install D2C3C9A1-DAFB-4188-866F-3FCAC6E2996A /Users/ixdev/code/Examples/multi_image_picker/example/build/ios/iphonesimulator/Runner.app

#0      runCheckedAsync (package:flutter_tools/src/base/process.dart:251:5)
<asynchronous suspension>
#1      SimControl.install (package:flutter_tools/src/ios/simulators.dart:125:16)
#2      IOSSimulator._setupUpdatedApplicationBundle (package:flutter_tools/src/ios/simulators.dart:396:31)
<asynchronous suspension>
#3      IOSSimulator.startApp (package:flutter_tools/src/ios/simulators.dart:308:15)
<asynchronous suspension>
#4      FlutterDevice.runHot (package:flutter_tools/src/resident_runner.dart:289:54)
#5      _asyncThenWrapperHelper.<anonymous closure> (dart:async/runtime/libasync_patch.dart:77:64)
#6      _rootRunUnary (dart:async/zone.dart:1132:38)
#7      _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#8      _FutureListener.handleValue (dart:async/future_impl.dart:129:18)
#9      Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:642:45)
#10     Future._propagateToListeners (dart:async/future_impl.dart:671:32)
#11     Future._complete (dart:async/future_impl.dart:476:7)
#12     _SyncCompleter.complete (dart:async/future_impl.dart:51:12)
#13     _AsyncAwaitCompleter.complete (dart:async/runtime/libasync_patch.dart:28:18)
#14     _completeOnAsyncReturn (dart:async/runtime/libasync_patch.dart:295:13)
#15     getApplicationPackageForPlatform (package:flutter_tools/src/application_package.dart)
#16     _asyncThenWrapperHelper.<anonymous closure> (dart:async/runtime/libasync_patch.dart:77:64)
#17     _rootRunUnary (dart:async/zone.dart:1132:38)
#18     _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#19     _FutureListener.handleValue (dart:async/future_impl.dart:129:18)
#20     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:642:45)
#21     Future._propagateToListeners (dart:async/future_impl.dart:671:32)
#22     Future._complete (dart:async/future_impl.dart:476:7)
#23     _SyncCompleter.complete (dart:async/future_impl.dart:51:12)
#24     _AsyncAwaitCompleter.complete (dart:async/runtime/libasync_patch.dart:28:18)
#25     _completeOnAsyncReturn (dart:async/runtime/libasync_patch.dart:295:13)
#26     FlutterProject.fromDirectory (package:flutter_tools/src/project.dart)
#27     _asyncThenWrapperHelper.<anonymous closure> (dart:async/runtime/libasync_patch.dart:77:64)
#28     _rootRunUnary (dart:async/zone.dart:1132:38)
#29     _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#30     _FutureListener.handleValue (dart:async/future_impl.dart:129:18)
#31     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:642:45)
#32     Future._propagateToListeners (dart:async/future_impl.dart:671:32)
#33     Future._complete (dart:async/future_impl.dart:476:7)
#34     _SyncCompleter.complete (dart:async/future_impl.dart:51:12)
#35     _AsyncAwaitCompleter.complete (dart:async/runtime/libasync_patch.dart:28:18)
#36     _completeOnAsyncReturn (dart:async/runtime/libasync_patch.dart:295:13)
#37     FlutterProject._readManifest (package:flutter_tools/src/project.dart)
#38     _asyncThenWrapperHelper.<anonymous closure> (dart:async/runtime/libasync_patch.dart:77:64)
#39     _rootRunUnary (dart:async/zone.dart:1132:38)
#40     _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#41     _FutureListener.handleValue (dart:async/future_impl.dart:129:18)
#42     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:642:45)
#43     Future._propagateToListeners (dart:async/future_impl.dart:671:32)
#44     Future._complete (dart:async/future_impl.dart:476:7)
#45     _SyncCompleter.complete (dart:async/future_impl.dart:51:12)
#46     _rootRunUnary (dart:async/zone.dart:1132:38)
#47     _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#48     _FutureListener.handleValue (dart:async/future_impl.dart:129:18)
#49     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:642:45)
#50     Future._propagateToListeners (dart:async/future_impl.dart:671:32)
#51     Future._complete (dart:async/future_impl.dart:476:7)
#52     _SyncCompleter.complete (dart:async/future_impl.dart:51:12)
#53     _AsyncAwaitCompleter.complete.<anonymous closure> (dart:async/runtime/libasync_patch.dart:33:20)
#54     _rootRun (dart:async/zone.dart:1124:13)
#55     _CustomZone.run (dart:async/zone.dart:1021:19)
#56     _CustomZone.bindCallback.<anonymous closure> (dart:async/zone.dart:947:23)
#57     _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#58     _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#59     _runPendingImmediateCallback (dart:isolate/runtime/libisolate_patch.dart:115:13)
#60     _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:172:5)

flutter doctor
[32m[✓][39m Flutter (Channel stable, v1.0.0, on Mac OS X 10.13.6 17G65, locale en-IN)
    [32m•[39m Flutter version 1.0.0 at /Users/ixdev/development/flutter
    [32m•[39m Framework revision 5391447fae (6 weeks ago), 2018-11-29 19:41:26 -0800
    [32m•[39m Engine revision 7375a0f414
    [32m•[39m Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)

[31m[✗][39m Android toolchain - develop for Android devices
    [31m✗[39m Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.io/setup/#android-setup for detailed instructions).
      If Android SDK has been installed to a custom location, set $ANDROID_HOME to that location.
      You may also want to add it to your PATH environment variable.

[32m[✓][39m iOS toolchain - develop for iOS devices (Xcode 10.1)
    [32m•[39m Xcode at /Applications/Xcode.app/Contents/Developer
    [32m•[39m Xcode 10.1, Build version 10B61
    [32m•[39m ios-deploy 1.9.4
    [32m•[39m CocoaPods version 1.5.3

[33m[!][39m Android Studio (not installed)
    [32m•[39m Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.io/setup/#android-setup for detailed instructions).

[32m[✓][39m Connected device (1 available)
    [32m•[39m iPhone XS Max • D2C3C9A1-DAFB-4188-866F-3FCAC6E2996A • ios • iOS 12.1 (simulator)

[33m![39m Doctor found issues in 2 categories.

`

I had the same issue with the project crashing from vsCode with error 'failed to load info.plist' This was because the info.plist was not added to the Runner target within Xcode.

authors: boaerosuke jawand