Skip to content

Comments

fixed ThemeData error line 340#98

Open
FrankYouze wants to merge 1 commit intoaltafc22:masterfrom
FrankYouze:main
Open

fixed ThemeData error line 340#98
FrankYouze wants to merge 1 commit intoaltafc22:masterfrom
FrankYouze:main

Conversation

@FrankYouze
Copy link

Description
This PR addresses an issue caused by Flutter 3.29, where DialogTheme.of(context) now returns DialogThemeData instead of DialogTheme. This results in a type mismatch error when assigning the value.

Changes Made:
Updated DialogTheme dialogTheme = DialogTheme.of(context);
→ Replaced with final dialogTheme = DialogTheme.of(context); to match the updated return type.

Why This Fix?
Ensures compatibility with Flutter 3.29+

Prevents compilation errors due to type mismatches

Testing & Verification:
Verified the fix in Flutter 3.29

Ensured no breaking changes for earlier versions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant