forked from Henry-Hiles/nexus
initial flutter android build
This commit is contained in:
parent
4c69831c54
commit
91516c2f20
5 changed files with 96 additions and 16 deletions
|
|
@ -59,15 +59,17 @@ void showError(Object error, [StackTrace? stackTrace]) {
|
|||
void main() async {
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
|
||||
await windowManager.ensureInitialized();
|
||||
await windowManager.waitUntilReadyToShow(
|
||||
WindowOptions(titleBarStyle: TitleBarStyle.hidden),
|
||||
);
|
||||
if (Platform.isLinux || Platform.isMacOS || Platform.isWindows) {
|
||||
await windowManager.ensureInitialized();
|
||||
await windowManager.waitUntilReadyToShow(
|
||||
WindowOptions(titleBarStyle: TitleBarStyle.hidden),
|
||||
);
|
||||
|
||||
if (Platform.isLinux) {
|
||||
setWindowMinSize(const Size.square(500));
|
||||
} else {
|
||||
await windowManager.setMinimumSize(Size.square(500));
|
||||
if (Platform.isLinux) {
|
||||
setWindowMinSize(const Size.square(500));
|
||||
} else {
|
||||
await windowManager.setMinimumSize(Size.square(500));
|
||||
}
|
||||
}
|
||||
|
||||
FlutterError.onError = (FlutterErrorDetails details) =>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue