Skip to content

Commit 3272557

Browse files
authored
WallpaperPage: extract widgets from build method (#275)
1 parent 41e6c6f commit 3272557

File tree

2 files changed

+187
-164
lines changed

2 files changed

+187
-164
lines changed

lib/view/pages/wallpaper/color_shading_option_row.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,20 @@ class ColorShadingOptionRow extends StatelessWidget {
1212
this.actionDescription,
1313
required this.value,
1414
required this.onDropDownChanged,
15+
this.width,
1516
}) : super(key: key);
1617

1718
final String actionLabel;
1819
final String? actionDescription;
1920
final ColorShadingType value;
2021
final Function(ColorShadingType) onDropDownChanged;
22+
final double? width;
2123

2224
@override
2325
Widget build(BuildContext context) {
2426
final model = context.read<WallpaperModel>();
2527
return YaruRow(
28+
width: width,
2629
enabled: true,
2730
trailingWidget: Text(actionLabel),
2831
description: actionDescription,

0 commit comments

Comments
 (0)