chore: set the minimum windows size to 640

This commit is contained in:
Lucas.Xu 2024-11-25 18:19:08 +08:00
parent e5f30b000c
commit 19b1c84ea3

View file

@ -7,7 +7,7 @@ import 'package:appflowy/startup/startup.dart';
class WindowSizeManager {
static const double minWindowHeight = 640.0;
static const double minWindowWidth = 960.0;
static const double minWindowWidth = 640.0;
// Preventing failed assertion due to Texture Descriptor Validation
static const double maxWindowHeight = 8192.0;
static const double maxWindowWidth = 8192.0;
@ -35,7 +35,10 @@ class WindowSizeManager {
Future<Size> getSize() async {
final defaultWindowSize = jsonEncode(
{WindowSizeManager.height: minWindowHeight, WindowSizeManager.width: minWindowWidth},
{
WindowSizeManager.height: minWindowHeight,
WindowSizeManager.width: minWindowWidth,
},
);
final windowSize = await getIt<KeyValueStorage>().get(KVKeys.windowSize);
final size = json.decode(