mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-06-24 22:30:32 -04:00
work
This commit is contained in:
parent
f06657d700
commit
8907ce04ac
72 changed files with 539 additions and 224 deletions
|
@ -4,7 +4,6 @@ import 'package:flutter/foundation.dart';
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import 'package:flutter_translate/flutter_translate.dart';
|
||||
import 'package:window_manager/window_manager.dart';
|
||||
|
||||
import 'log/log.dart';
|
||||
import 'veilid_support/veilid_support.dart';
|
||||
|
@ -12,6 +11,8 @@ import 'theming/theming.dart';
|
|||
import 'app.dart';
|
||||
import 'dart:io';
|
||||
|
||||
import '../tools/desktop_control.dart';
|
||||
|
||||
void main() async {
|
||||
// Disable all debugprints in release mode
|
||||
if (kReleaseMode) {
|
||||
|
@ -32,21 +33,7 @@ void main() async {
|
|||
var initTheme = themeService.initial;
|
||||
|
||||
// Manage window on desktop platforms
|
||||
if (Platform.isWindows || Platform.isLinux || Platform.isMacOS) {
|
||||
await windowManager.ensureInitialized();
|
||||
|
||||
const windowOptions = WindowOptions(
|
||||
size: Size(768, 1024),
|
||||
center: true,
|
||||
backgroundColor: Colors.transparent,
|
||||
skipTaskbar: false,
|
||||
titleBarStyle: TitleBarStyle.hidden,
|
||||
);
|
||||
windowManager.waitUntilReadyToShow(windowOptions, () async {
|
||||
await windowManager.show();
|
||||
await windowManager.focus();
|
||||
});
|
||||
}
|
||||
await setupDesktopWindow();
|
||||
|
||||
// Make localization delegate
|
||||
var delegate = await LocalizationDelegate.create(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue