mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-05-03 06:44:52 -04:00
lint work
This commit is contained in:
parent
9e4008214d
commit
6e8725f569
43 changed files with 257 additions and 332 deletions
|
@ -1,22 +1,21 @@
|
|||
import 'dart:async';
|
||||
import 'dart:io';
|
||||
|
||||
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 'log/log.dart';
|
||||
import 'veilid_support/veilid_support.dart';
|
||||
import 'theming/theming.dart';
|
||||
import 'app.dart';
|
||||
import 'dart:io';
|
||||
|
||||
import '../tools/desktop_control.dart';
|
||||
import 'app.dart';
|
||||
import 'log/log.dart';
|
||||
import 'theming/theming.dart';
|
||||
import 'veilid_support/veilid_support.dart';
|
||||
|
||||
void main() async {
|
||||
// Disable all debugprints in release mode
|
||||
if (kReleaseMode) {
|
||||
debugPrint = (String? message, {int? wrapWidth}) {};
|
||||
debugPrint = (message, {wrapWidth}) {};
|
||||
}
|
||||
|
||||
// Print our PID for debugging
|
||||
|
@ -30,13 +29,13 @@ void main() async {
|
|||
// Prepare theme
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
final themeService = await ThemeService.instance;
|
||||
var initTheme = themeService.initial;
|
||||
final initTheme = themeService.initial;
|
||||
|
||||
// Manage window on desktop platforms
|
||||
await setupDesktopWindow();
|
||||
|
||||
// Make localization delegate
|
||||
var delegate = await LocalizationDelegate.create(
|
||||
final delegate = await LocalizationDelegate.create(
|
||||
fallbackLocale: 'en_US', supportedLocales: ['en_US']);
|
||||
|
||||
// Start up Veilid and Veilid processor in the background
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue