Skip to content

Comments

fix: break secure storage const paradox#48

Merged
TechAdeptRDD merged 1 commit intomainfrom
codex/fix-secure-storage-const-paradox
Feb 21, 2026
Merged

fix: break secure storage const paradox#48
TechAdeptRDD merged 1 commit intomainfrom
codex/fix-secure-storage-const-paradox

Conversation

@TechAdeptRDD
Copy link
Owner

@TechAdeptRDD TechAdeptRDD commented Feb 21, 2026

Motivation

  • The linter encouraged const on secure storage option declarations but using const triggers invalid_constant because flutter_secure_storage option classes/enums are not compile-time constants.
  • Remove const so the options are runtime-initialized while preserving immutability with final to avoid the lint/runtime paradox.

Description

  • Changed static const AndroidOptions _androidOptions = ... to static final AndroidOptions _androidOptions = ....
  • Replaced static final IOSOptions _iosOptions = const IOSOptions(...) with static final IOSOptions _iosOptions = IOSOptions(...).
  • Removed const from the FlutterSecureStorage instantiation so the options are passed directly as aOptions: _androidOptions and iOptions: _iosOptions.

@TechAdeptRDD TechAdeptRDD added bug Something isn't working build fix and removed codex labels Feb 21, 2026
Repository owner deleted a comment from chatgpt-codex-connector bot Feb 21, 2026
@TechAdeptRDD TechAdeptRDD merged commit 694890a into main Feb 21, 2026
5 of 6 checks passed
@TechAdeptRDD TechAdeptRDD deleted the codex/fix-secure-storage-const-paradox branch February 21, 2026 05:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working build fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant