You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit introduces several refactoring changes to modernize the codebase by adopting new Dart 3 language features and simplifying widget implementations.
Key changes include:
- Replaced `navigator.pop()` with the more concise `context.pop()` from `go_router` across multiple UI files (`campfire.dart`, `move.dart`, `in_game_menu.dart`, `craft.dart`, `shared.dart`).
- Adopted constructor tear-offs and enum-like extensions for static members (e.g., `ItemStack.empty` becomes `.empty`, `Axis.vertical` becomes `.vertical`).
- Simplified widget constructors by using `.new` where possible (e.g., `const Offset.new(...)`).
- Removed redundant `elevation` property from `ChoiceChip` as it is no longer supported.
- Refactored `ItemDetails` widget in `backpack.dart` to use `Card.filled` for a cleaner implementation and improved visual consistency with the app's theme.
0 commit comments