Repository navigation
type 'String' is not a subtype of type 'bool' #53160
Description
Activity
Hi @SobhieSaad
can you please provide yourflutter doctor -vandflutter run --verbose? Also, to better address the issue, would be helpful
if you could post a minimal code sample to reproduce the problem
Thank you- addedin triagePresently being triaged by the triage teamPresently being triaged by the triage teamwaiting for responseThe Flutter team cannot make further progress on this issue until the original reporter respondsThe Flutter team cannot make further progress on this issue until the original reporter responds
on Mar 24, 2020 Sure, here it is, and thank you for your support:
[√] Flutter (Channel stable, v1.12.13+hotfix.8, on Microsoft Windows [Version 10.0.17763.1098], locale en-US)
[!] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
X Android license status unknown.
Try re-installing or updating your Android SDK Manager.
See https://developer.android.com/studio/#downloads or visit https://flutter.dev/setup/#android-setup for detailed instructions.
[√] Android Studio (version 3.6)
[√] VS Code (version 1.43.0)
[√] Connected device (1 available)! Doctor found issues in 1 category.
- removedwaiting for responseThe Flutter team cannot make further progress on this issue until the original reporter respondsThe Flutter team cannot make further progress on this issue until the original reporter responds
on Mar 24, 2020 Hi @SobhieSaad
can you please provide yourflutter run --verbose?
Also, to better address the issue, would be helpful if you could post a minimal code sample to reproduce the problem because above sample has missing code and isn't minimal sample code to better address the issue
Thank you- addedwaiting for responseThe Flutter team cannot make further progress on this issue until the original reporter respondsThe Flutter team cannot make further progress on this issue until the original reporter responds
on Mar 24, 2020 @TahaTesser
Thank you, it's solved the problem was , I'm saving a text in shared preferences while it must be a bool.- removedwaiting for responseThe Flutter team cannot make further progress on this issue until the original reporter respondsThe Flutter team cannot make further progress on this issue until the original reporter responds
on Mar 24, 2020 this is not flutter issue. this can be closed @TahaTesser
Hi @SobhieSaad
given your last message I feel safe to close this issue,
if you disagree please write in the comments and I will reopen it.
Thank youThis thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.- locked as resolved and limited conversation to collaborators
on Aug 22, 2021
he relevant error-causing widget was:
Result file:/lib/ui/pages/home.dart:91:13
When the exception was thrown, this was the stack:
#0 SharedPreferences.getBool (package:shared_preferences/shared_preferences.dart:65:31)
#1 SharedPreferenceHelper.getBooleanFromSP (package:/helpers/shared_preference_helper.dart:30:55)
#2 Result.build (package:/ui/widgets/result_colored_circle_avatar.dart:23:49)
#3 StatelessElement.build (package:flutter/src/widgets/framework.dart:4291:28)
#4 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4223:15)
...
`Widget dialogContent(BuildContext context) {
return Container(
margin: EdgeInsets.only(left: 0.0, right: 0.0),
child: Stack(
children: [
Column(
mainAxisAlignment: MainAxisAlignment.spaceAround ,
`