Skip to content

Commit e07258f

Browse files
committed
refactor: Use .new constructor for ItemStackCellTheme
Updated the instantiation of `ItemStackCellTheme` to use the concise `.new` constructor syntax.
1 parent c7fd530 commit e07258f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ui/game/craft/craft.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ class _CraftingSheetState extends State<CraftingSheet> {
302302
: () {
303303
gotoFirstMatchedSlot(item);
304304
},
305-
child: ItemStackCell(item, theme: ItemStackCellTheme(opacity: accepted ? 1.0 : R.disabledAlpha)),
305+
child: ItemStackCell(item, theme: .new(opacity: accepted ? 1.0 : R.disabledAlpha)),
306306
);
307307
}
308308

0 commit comments

Comments
 (0)