New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Runtime error #22
Comments
@detzioni I tested it on web and Oneplus Android 11 and everything seems to be working fine. I am on Flutter stable channel. Could you please post stacktrace and output of |
Thank you for your quick response. As requested, here is the output of [flutter doctor -v][✓] Flutter (Channel master, 2.4.0-5.0.pre.122, on macOS 11.5 20G71 darwin-x64, [✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0) [✓] Xcode - develop for iOS and macOS [✓] Chrome - develop for the web [✓] Android Studio (version 4.2) [✓] VS Code (version 1.58.2) [✓] Connected device (5 available) • No issues found! |
Changing the channel from master to stable, running the [flutter clean] and [flutter pub get], the [flutter doctor -v] output is:[✓] Flutter (Channel stable, 2.2.3, on macOS 11.5 20G71 darwin-x64, locale en-US) [✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0) [✓] Xcode - develop for iOS and macOS [✓] Chrome - develop for the web [✓] Android Studio (version 4.2) [✓] VS Code (version 1.58.2) [✓] Connected device (5 available) • No issues found!Now when running the [flutter run] connecting to Android device, I am getting the same error |
@detzioni This is weird. I thought it could have happened because of the Flutter master branch. Maybe something changed! But that doesn't seem to be the case here. I'll look into this once I get some time but I do not own a Samsung phone so I need to verify if this is a device specific issue or not. Could you please check following and update me here?
Can you also provide complete stack trace as well? As this library doesn't anything platform related and doesn't use sensitive classes of the SDK, If it is working on 1 platform, it should work on others as well. |
Yes, I totally agree with you. This is weird. I got the same problem in the application that I am trying to migrate to null-safety, so I decided to just run your example to see what happen. As you requested I run it on multiple devices and simulators and all of them fail with the same error. See the outputs below: Flutter doctor -v[✓] Flutter (Channel stable, 2.2.3, on macOS 11.5.1 20G80 darwin-x64, locale en-US) [✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0) [✓] Xcode - develop for iOS and macOS [✓] Chrome - develop for the web [✓] Android Studio (version 4.2) [✓] VS Code (version 1.58.2) [✓] Connected device (6 available) • No issues found! Running on iOS simulator iPhone 12 Pro Max══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════ The relevant error-causing widget was: When the exception was thrown, this was the stack: ════════════════════════════════════════════════════════════════════════════════════════════════════ Flutter run key commands. 💪 Running with sound null safety 💪 An Observatory debugger and profiler on iPhone 12 Pro Max is available at: http://127.0.0.1:50819/WP_5Fj4SokY=/ Running on Android simulator Pixel 4 XLFlutter run key commands. 💪 Running with sound null safety 💪 An Observatory debugger and profiler on sdk gphone x86 arm is available at: http://127.0.0.1:51343/AkeGgg0sDTQ=/ ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════ The relevant error-causing widget was: When the exception was thrown, this was the stack: ════════════════════════════════════════════════════════════════════════════════════════════════════ Running on Chrome browser💪 Running with sound null safety 💪 🔥 To hot restart changes while running, press "r" or "R". The relevant error-causing widget was: When the exception was thrown, this was the stack: ════════════════════════════════════════════════════════════════════════════════════════════════════ Running on macOSI am getting the same error I got initially (Initial picture) |
I tried one more thing, which does not make any sense but for some reason solve the problem. I don't understand why, but not going to argue with flutter. |
@detzioni That's totally weird. I was confused too because it was working for me but not you! Anyways, seems that it is working for you now. Let me know if you anything! Thanks. |
Trying to run the example application on an Android phone, I am getting the following error:
"package:flutter/src/ material/theme_data.dart': Failed assertion: line 346 pos 12: colorScheme?.brightness == null || brightness I| colorScheme!.brightness = brightness': is not true. See also: https://flutter.dev/docs /testing/errorS == null
To Reproduce
Just download the package from github, and run [flutter create .] follow by [flutter run]
Screenshots
Smartphone (please complete the following information):
The text was updated successfully, but these errors were encountered: