feat: remove window_size plugin.

This commit is contained in:
2021-09-30 18:31:42 +08:00
parent 2b896159d0
commit 07d510cfa6
25 changed files with 29 additions and 1294 deletions
+2
View File
@@ -14,6 +14,8 @@ const longDuration = const Duration(milliseconds: 500);
const minWindowSize = const Size(800, 600);
const defaultWindowSize = const Size(1120, 720);
const double defaultBorderRadius = 8;
const double defaultButtonHeight = 36;
+1 -1
View File
@@ -1,4 +1,4 @@
class SPKeys {
static final String brightnessMode = 'BRIGHTNESS_MODE';
static final String userLanguage = 'USER_LANGUAGE';
}
}
@@ -6,6 +6,11 @@ extension SharedPreferencesExtenstion on SharedPreferences {
return this.setInt(key, value);
}
Future<bool> updateDouble(String key, double value) {
if (this.getDouble(key) == value) return Future.value(false);
return this.setDouble(key, value);
}
Future<bool> updateString(String key, String value) {
if (this.getString(key) == value) return Future.value(false);
return this.setString(key, value);
+2 -1
View File
@@ -1,3 +1,4 @@
import 'package:dde_gesture_manager/constants/constants.dart';
import 'package:dde_gesture_manager/constants/sp_keys.dart';
import 'package:dde_gesture_manager/constants/supported_locales.dart';
import 'package:dde_gesture_manager/extensions.dart';
@@ -71,7 +72,7 @@ class MyApp extends StatelessWidget {
return Container();
}),
secondChild: HomePage(),
duration: Duration(milliseconds: 500),
duration: longDuration,
),
);
},
+2 -2
View File
@@ -38,12 +38,12 @@ class LocalManager extends StatelessWidget {
Flexible(
child: Center(
child: Text(
"本地方案管理",
LocaleKeys.local_manager_title,
textAlign: TextAlign.center,
style: TextStyle(
fontWeight: FontWeight.bold,
),
),
).tr(),
),
),
DButton(
+2 -2
View File
@@ -44,12 +44,12 @@ class Market extends StatelessWidget {
Flexible(
child: Center(
child: Text(
"方案市场",
LocaleKeys.market_title,
textAlign: TextAlign.center,
style: TextStyle(
fontWeight: FontWeight.bold,
),
),
).tr(),
),
),
Container(width: defaultButtonHeight),