Skip to content
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

[BUG] Decoding using flutter_theme throws cast error #157

Closed
pauli2406 opened this issue Dec 4, 2021 · 4 comments · Fixed by #158
Closed

[BUG] Decoding using flutter_theme throws cast error #157

pauli2406 opened this issue Dec 4, 2021 · 4 comments · Fixed by #158
Assignees
Labels
bug Something isn't working

Comments

@pauli2406
Copy link

Platform

MacOS / Flutter 2.5.3

Steps To Reproduce

  1. Clone the example flutter project and start it in debug mode
  2. Enable catching uncaught exceptions in VS Code

Expected Behavior

The theme should be decoded without throwing an exception.

Actual behaviour
The application waits when decoding the theme and throws an Cast Error exception:
"Null check operator used on a null value"

Screenshots
image

image

Additional Context

Add any other context about the problem here.

@pauli2406 pauli2406 added the bug Something isn't working label Dec 4, 2021
@zeshuaro
Copy link
Owner

zeshuaro commented Dec 4, 2021

@pauli2406 Thanks for reporting this issue. I've updated the example app and the issue should be fixed. Feel free to reopen this issue if not.

@zeshuaro
Copy link
Owner

This has been fixed on json_theme version 3.2.0. Flutter Theme has also been updated to use the latest version.

@pauli2406
Copy link
Author

@zeshuaro Thanks for looking into it! Do I need to recreate my json theme file or should it work oob?

@zeshuaro
Copy link
Owner

I don't think you'll need to recreate your json theme file. If you use the latest version of json_theme then it should work without throwing the exception.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants