Skip to content

Commit 19b1c84

Browse files
committed
chore: set the minimum windows size to 640
1 parent e5f30b0 commit 19b1c84

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

frontend/appflowy_flutter/lib/startup/tasks/app_window_size_manager.dart

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import 'package:appflowy/startup/startup.dart';
77

88
class WindowSizeManager {
99
static const double minWindowHeight = 640.0;
10-
static const double minWindowWidth = 960.0;
10+
static const double minWindowWidth = 640.0;
1111
// Preventing failed assertion due to Texture Descriptor Validation
1212
static const double maxWindowHeight = 8192.0;
1313
static const double maxWindowWidth = 8192.0;
@@ -35,7 +35,10 @@ class WindowSizeManager {
3535

3636
Future<Size> getSize() async {
3737
final defaultWindowSize = jsonEncode(
38-
{WindowSizeManager.height: minWindowHeight, WindowSizeManager.width: minWindowWidth},
38+
{
39+
WindowSizeManager.height: minWindowHeight,
40+
WindowSizeManager.width: minWindowWidth,
41+
},
3942
);
4043
final windowSize = await getIt<KeyValueStorage>().get(KVKeys.windowSize);
4144
final size = json.decode(

0 commit comments

Comments
 (0)