Skip to content

Commit 5962894

Browse files
authored
Fix warnings in Power and WallpaperPage (#168)
1 parent 6d60f60 commit 5962894

File tree

2 files changed

+7
-12
lines changed

2 files changed

+7
-12
lines changed

lib/view/pages/power/power_page.dart

+7-10
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,13 @@ class PowerPage extends StatelessWidget {
1212

1313
@override
1414
Widget build(BuildContext context) {
15-
return SizedBox(
16-
width: 500, // TODO: Could be enforced by SettingsSection?
17-
child: Column(
18-
children: <Widget>[
19-
BatterySection.create(context),
20-
PowerProfileSection.create(context),
21-
PowerSettingsSection.create(context),
22-
SuspendSection.create(context),
23-
],
24-
),
15+
return Column(
16+
children: <Widget>[
17+
BatterySection.create(context),
18+
PowerProfileSection.create(context),
19+
PowerSettingsSection.create(context),
20+
SuspendSection.create(context),
21+
],
2522
);
2623
}
2724
}

lib/view/pages/wallpaper/wallpaper_model.dart

-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ class WallpaperModel extends SafeChangeNotifier {
1111
static const _pictureUriKey = 'picture-uri';
1212
static const _preinstalledWallpapersDir = '/usr/share/backgrounds';
1313
static const _colorShadingTypeKey = 'color-shading-type';
14-
static const _pictureOpacityKey = 'picture-opacity';
15-
static const _pictureOptionsKey = 'picture-options';
1614
static const _primaryColorKey = 'primary-color';
1715
static const _secondaryColorKey = 'secondary-color';
1816

0 commit comments

Comments
 (0)