feat: set window size

This commit is contained in:
Yannick Mauray 2024-06-27 20:35:52 +02:00
parent 7e7abe28ea
commit 921a29935e
No known key found for this signature in database
GPG Key ID: C5C52B9E46D9F148
1 changed files with 1 additions and 0 deletions

View File

@ -74,6 +74,7 @@ Future<void> getIcons() async {
void main() async {
WidgetsFlutterBinding.ensureInitialized();
// Don't forget to also change the size in linux/my_application.cc:50
// Don't forget to also change the size in macos/Runner/MainFlutterWindow.swift:7
if (Platform.isMacOS) {
setWindowMinSize(const Size(692 + 2, 580 + 30));
setWindowMaxSize(const Size(692 + 2, 580 + 30));