Backup before removing hiddify references
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import 'package:accessibility_tools/accessibility_tools.dart';
|
||||
import 'package:dynamic_color/dynamic_color.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_localizations/flutter_localizations.dart';
|
||||
@@ -18,7 +17,6 @@ import 'package:hiddify/features/system_tray/widget/system_tray_wrapper.dart';
|
||||
import 'package:hiddify/features/window/widget/window_wrapper.dart';
|
||||
import 'package:hiddify/utils/utils.dart';
|
||||
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
||||
import 'package:upgrader/upgrader.dart';
|
||||
|
||||
bool _debugAccessibility = false;
|
||||
|
||||
@@ -40,33 +38,26 @@ class App extends HookConsumerWidget with PresLogger {
|
||||
TrayWrapper(
|
||||
ShortcutWrapper(
|
||||
ConnectionWrapper(
|
||||
DynamicColorBuilder(
|
||||
builder: (ColorScheme? lightColorScheme, ColorScheme? darkColorScheme) {
|
||||
return MaterialApp.router(
|
||||
routerConfig: router,
|
||||
locale: locale.flutterLocale,
|
||||
supportedLocales: AppLocaleUtils.supportedLocales,
|
||||
localizationsDelegates: GlobalMaterialLocalizations.delegates,
|
||||
debugShowCheckedModeBanner: false,
|
||||
themeMode: themeMode.flutterThemeMode,
|
||||
theme: theme.lightTheme(lightColorScheme),
|
||||
darkTheme: theme.darkTheme(darkColorScheme),
|
||||
title: Constants.appName,
|
||||
builder: (context, child) {
|
||||
child = UpgradeAlert(
|
||||
upgrader: upgrader,
|
||||
navigatorKey: router.routerDelegate.navigatorKey,
|
||||
child: child ?? const SizedBox(),
|
||||
);
|
||||
if (kDebugMode && _debugAccessibility) {
|
||||
return AccessibilityTools(
|
||||
checkFontOverflows: true,
|
||||
child: child,
|
||||
);
|
||||
}
|
||||
return child;
|
||||
},
|
||||
);
|
||||
MaterialApp.router(
|
||||
routerConfig: router,
|
||||
locale: locale.flutterLocale,
|
||||
supportedLocales: AppLocaleUtils.supportedLocales,
|
||||
localizationsDelegates: GlobalMaterialLocalizations.delegates,
|
||||
debugShowCheckedModeBanner: false,
|
||||
themeMode: themeMode.flutterThemeMode,
|
||||
theme: theme.lightTheme(null),
|
||||
darkTheme: theme.darkTheme(null),
|
||||
title: Constants.appName,
|
||||
builder: (context, child) {
|
||||
// UMBRIX: Отключили UpgradeAlert - используем свой сервер обновлений
|
||||
child = child ?? const SizedBox();
|
||||
if (kDebugMode && _debugAccessibility) {
|
||||
return AccessibilityTools(
|
||||
checkFontOverflows: true,
|
||||
child: child,
|
||||
);
|
||||
}
|
||||
return child;
|
||||
},
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user