Add maximize support and some other stuff
This commit is contained in:
parent
0d80c93bc7
commit
baf26d0ec9
4 changed files with 50 additions and 15 deletions
|
|
@ -1,3 +1,5 @@
|
|||
import "dart:io";
|
||||
|
||||
import "package:flutter/foundation.dart";
|
||||
import "package:flutter_riverpod/flutter_riverpod.dart";
|
||||
import "package:nexus/controllers/client_controller.dart";
|
||||
|
|
@ -58,11 +60,15 @@ void main() async {
|
|||
WindowOptions(titleBarStyle: TitleBarStyle.hidden),
|
||||
);
|
||||
|
||||
if (Platform.isLinux) {
|
||||
setWindowMinSize(const Size.square(500));
|
||||
} else {
|
||||
await windowManager.setMinimumSize(Size.square(500));
|
||||
}
|
||||
|
||||
FlutterError.onError = (FlutterErrorDetails details) =>
|
||||
showError(details.exception.toString(), details.stack);
|
||||
|
||||
setWindowMinSize(const Size.square(500));
|
||||
|
||||
runApp(
|
||||
ProviderScope(
|
||||
observers: [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue