mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-04-24 06:37:14 -04:00
chore: set the minimum windows size to 640
This commit is contained in:
parent
e5f30b000c
commit
19b1c84ea3
1 changed files with 5 additions and 2 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue