From 5962894ac436fab80540d53b6695a59087d9ea06 Mon Sep 17 00:00:00 2001 From: Frederik Feichtmeier Date: Sun, 14 Nov 2021 06:12:46 +0100 Subject: [PATCH] Fix warnings in Power and WallpaperPage (#168) --- lib/view/pages/power/power_page.dart | 17 +++++++---------- lib/view/pages/wallpaper/wallpaper_model.dart | 2 -- 2 files changed, 7 insertions(+), 12 deletions(-) diff --git a/lib/view/pages/power/power_page.dart b/lib/view/pages/power/power_page.dart index 59a7837e..4f2bd209 100644 --- a/lib/view/pages/power/power_page.dart +++ b/lib/view/pages/power/power_page.dart @@ -12,16 +12,13 @@ class PowerPage extends StatelessWidget { @override Widget build(BuildContext context) { - return SizedBox( - width: 500, // TODO: Could be enforced by SettingsSection? - child: Column( - children: [ - BatterySection.create(context), - PowerProfileSection.create(context), - PowerSettingsSection.create(context), - SuspendSection.create(context), - ], - ), + return Column( + children: [ + BatterySection.create(context), + PowerProfileSection.create(context), + PowerSettingsSection.create(context), + SuspendSection.create(context), + ], ); } } diff --git a/lib/view/pages/wallpaper/wallpaper_model.dart b/lib/view/pages/wallpaper/wallpaper_model.dart index 8a43135a..56903c40 100644 --- a/lib/view/pages/wallpaper/wallpaper_model.dart +++ b/lib/view/pages/wallpaper/wallpaper_model.dart @@ -11,8 +11,6 @@ class WallpaperModel extends SafeChangeNotifier { static const _pictureUriKey = 'picture-uri'; static const _preinstalledWallpapersDir = '/usr/share/backgrounds'; static const _colorShadingTypeKey = 'color-shading-type'; - static const _pictureOpacityKey = 'picture-opacity'; - static const _pictureOptionsKey = 'picture-options'; static const _primaryColorKey = 'primary-color'; static const _secondaryColorKey = 'secondary-color';