mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-04-24 06:37:14 -04:00
feat: increase the default windows size
This commit is contained in:
parent
92af6103b0
commit
3c2d65a025
1 changed files with 7 additions and 2 deletions
|
@ -8,10 +8,15 @@ import 'package:appflowy/startup/startup.dart';
|
|||
class WindowSizeManager {
|
||||
static const double minWindowHeight = 640.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;
|
||||
|
||||
// Default windows size
|
||||
static const double defaultWindowHeight = 960.0;
|
||||
static const double defaultWindowWidth = 1280.0;
|
||||
|
||||
static const double maxScaleFactor = 2.0;
|
||||
static const double minScaleFactor = 0.5;
|
||||
|
||||
|
@ -36,8 +41,8 @@ class WindowSizeManager {
|
|||
Future<Size> getSize() async {
|
||||
final defaultWindowSize = jsonEncode(
|
||||
{
|
||||
WindowSizeManager.height: minWindowHeight,
|
||||
WindowSizeManager.width: minWindowWidth,
|
||||
WindowSizeManager.height: defaultWindowHeight,
|
||||
WindowSizeManager.width: defaultWindowWidth,
|
||||
},
|
||||
);
|
||||
final windowSize = await getIt<KeyValueStorage>().get(KVKeys.windowSize);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue