Skip to content

[shared_preferences] fix stringlist bug - #7268

Merged
auto-submit[bot] merged 3 commits into
flutter:mainfrom
tarrinneal:spr-StringList-fix
Aug 1, 2024
Merged

[shared_preferences] fix stringlist bug#7268
auto-submit[bot] merged 3 commits into
flutter:mainfrom
tarrinneal:spr-StringList-fix

Conversation

@tarrinneal

@tarrinnealtarrinneal commented Aug 1, 2024

Copy link
Copy Markdown
Contributor

I tested this a few different ways and there was never any savings by not casting when the list is already List<String>.

fixesflutter/flutter#152607

Comment threadpackages/shared_preferences/shared_preferences/CHANGELOG.md Outdated

@stuartmorgan-gstuartmorgan-g left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tarrinnealtarrinneal added the autosubmit Merge PR when tree becomes green via auto submit App label Aug 1, 2024
@auto-submit
auto-submitBot merged commit 897f329 into flutter:mainAug 1, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Aug 2, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Aug 2, 2024
auto-submitBot pushed a commit to flutter/flutter that referenced this pull request Aug 2, 2024
flutter/packages@27896d1...cc9ff47
2024-08-02 rexios@rexios.dev [tool] Add note about clang version used in CI to tool readme (flutter/packages#7273)
2024-08-02 ditman@gmail.com [ci] Re-enable google_maps_flutter_web integration tests. (flutter/packages#7269)
2024-08-01 ditman@gmail.com [web] Update package:web to ">=0.5.1 <2.0.0" (flutter/packages#7202)
2024-08-01 tobias@leafnode.se [go_router] Documentation for StatefulShellRoute (flutter/packages#6308)
2024-08-01 stuartmorgan@google.com [google_maps_flutter] Switch Android examples to TLHC (flutter/packages#7282)
2024-08-01 engine-flutter-autoroll@skia.org Manual roll Flutter from f817e51 to e2e4398 (5 revisions) (flutter/packages#7276)
2024-08-01 stuartmorgan@google.com [various] Clean up C++ formatting (flutter/packages#7272)
2024-08-01 tarrinneal@gmail.com [shared_preferences] fix stringlist bug (flutter/packages#7268)
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
Please CC flutter-ecosystem@google.com,rmistry@google.com on the revert to ensure that a human
is aware of the problem.
To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose
To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
TytaniumDev pushed a commit to TytaniumDev/flutter that referenced this pull request Aug 7, 2024
flutter/packages@27896d1...cc9ff47
2024-08-02 rexios@rexios.dev [tool] Add note about clang version used in CI to tool readme (flutter/packages#7273)
2024-08-02 ditman@gmail.com [ci] Re-enable google_maps_flutter_web integration tests. (flutter/packages#7269)
2024-08-01 ditman@gmail.com [web] Update package:web to ">=0.5.1 <2.0.0" (flutter/packages#7202)
2024-08-01 tobias@leafnode.se [go_router] Documentation for StatefulShellRoute (flutter/packages#6308)
2024-08-01 stuartmorgan@google.com [google_maps_flutter] Switch Android examples to TLHC (flutter/packages#7282)
2024-08-01 engine-flutter-autoroll@skia.org Manual roll Flutter from f817e51 to e2e4398 (5 revisions) (flutter/packages#7276)
2024-08-01 stuartmorgan@google.com [various] Clean up C++ formatting (flutter/packages#7272)
2024-08-01 tarrinneal@gmail.com [shared_preferences] fix stringlist bug (flutter/packages#7268)
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
Please CC flutter-ecosystem@google.com,rmistry@google.com on the revert to ensure that a human
is aware of the problem.
To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose
To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Buchimi pushed a commit to Buchimi/flutter that referenced this pull request Sep 2, 2024
flutter/packages@27896d1...cc9ff47
2024-08-02 rexios@rexios.dev [tool] Add note about clang version used in CI to tool readme (flutter/packages#7273)
2024-08-02 ditman@gmail.com [ci] Re-enable google_maps_flutter_web integration tests. (flutter/packages#7269)
2024-08-01 ditman@gmail.com [web] Update package:web to ">=0.5.1 <2.0.0" (flutter/packages#7202)
2024-08-01 tobias@leafnode.se [go_router] Documentation for StatefulShellRoute (flutter/packages#6308)
2024-08-01 stuartmorgan@google.com [google_maps_flutter] Switch Android examples to TLHC (flutter/packages#7282)
2024-08-01 engine-flutter-autoroll@skia.org Manual roll Flutter from f817e51 to e2e4398 (5 revisions) (flutter/packages#7276)
2024-08-01 stuartmorgan@google.com [various] Clean up C++ formatting (flutter/packages#7272)
2024-08-01 tarrinneal@gmail.com [shared_preferences] fix stringlist bug (flutter/packages#7268)
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
Please CC flutter-ecosystem@google.com,rmistry@google.com on the revert to ensure that a human
is aware of the problem.
To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose
To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
creatorpiyush pushed a commit to creatorpiyush/packages that referenced this pull request Jun 10, 2026
I tested this a few different ways and there was never any savings by not casting when the list is already `List<String>`.
fixesflutter/flutter#152607
bisor0627 pushed a commit to bisor0627/packages that referenced this pull request Jun 19, 2026
I tested this a few different ways and there was never any savings by not casting when the list is already `List<String>`.
fixesflutter/flutter#152607
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmitMerge PR when tree becomes green via auto submit Appp: shared_preferences

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[shared_preferences] cast exception with get/setStringList: type 'List<Object?>' is not a subtype of type 'List?'

2 participants

@tarrinneal@stuartmorgan-g