Commit 7806b3a
committed
refactor: Use cascade notation and simplify constructors
Refactored the code in `lib/ui/game/shared.dart` to adopt a more concise style.
- Replaced explicit class name references with cascade notation for static members (e.g., `ItemStack.empty` to `.empty`).
- Simplified widget constructor calls by using `.new()` where applicable (e.g., `ItemStackCellTheme`).
- Used cascade notation for enum values (e.g., `TextAlign.end` to `.end` and `MainAxisAlignment.spaceEvenly` to `.spaceEvenly`).1 parent e07258f commit 7806b3a
File tree
1 file changed
+5
-5
lines changed- lib/ui/game
1 file changed
+5
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
601 | 601 | | |
602 | 602 | | |
603 | 603 | | |
604 | | - | |
| 604 | + | |
605 | 605 | | |
606 | 606 | | |
607 | 607 | | |
608 | 608 | | |
609 | | - | |
| 609 | + | |
610 | 610 | | |
611 | 611 | | |
612 | 612 | | |
| |||
865 | 865 | | |
866 | 866 | | |
867 | 867 | | |
868 | | - | |
| 868 | + | |
869 | 869 | | |
870 | 870 | | |
871 | 871 | | |
| |||
944 | 944 | | |
945 | 945 | | |
946 | 946 | | |
947 | | - | |
| 947 | + | |
948 | 948 | | |
949 | | - | |
| 949 | + | |
950 | 950 | | |
951 | 951 | | |
952 | 952 | | |
| |||
0 commit comments