feat: remove window_size plugin.
This commit is contained in:
@@ -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,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
@@ -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,
|
||||
),
|
||||
);
|
||||
},
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user