optimization: desktop UI (#747)
This commit is contained in:
@@ -9,6 +9,11 @@ class AndroidSettingsPage extends StatefulWidget {
|
||||
|
||||
@override
|
||||
State<AndroidSettingsPage> createState() => _AndroidSettingsPageState();
|
||||
|
||||
static const route = AppRouteNoArg(
|
||||
page: AndroidSettingsPage.new,
|
||||
path: '/settings/android',
|
||||
);
|
||||
}
|
||||
|
||||
const _homeWidgetPrefPrefix = 'widget_';
|
||||
@@ -24,8 +29,7 @@ class _AndroidSettingsPageState extends State<AndroidSettingsPage> {
|
||||
// _buildFgService(),
|
||||
_buildBgRun(),
|
||||
_buildAndroidWidgetSharedPreference(),
|
||||
if (BioAuth.isPlatformSupported)
|
||||
PlatformPublicSettings.buildBioAuth(),
|
||||
if (BioAuth.isPlatformSupported) PlatformPublicSettings.buildBioAuth(),
|
||||
].map((e) => CardX(child: e)).toList(),
|
||||
),
|
||||
);
|
||||
|
||||
@@ -6,14 +6,19 @@ import 'package:server_box/data/res/store.dart';
|
||||
import 'package:server_box/view/page/setting/platform/platform_pub.dart';
|
||||
import 'package:watch_connectivity/watch_connectivity.dart';
|
||||
|
||||
class IOSSettingsPage extends StatefulWidget {
|
||||
const IOSSettingsPage({super.key});
|
||||
class IosSettingsPage extends StatefulWidget {
|
||||
const IosSettingsPage({super.key});
|
||||
|
||||
@override
|
||||
State<IOSSettingsPage> createState() => _IOSSettingsPageState();
|
||||
State<IosSettingsPage> createState() => _IosSettingsPageState();
|
||||
|
||||
static const route = AppRouteNoArg(
|
||||
page: IosSettingsPage.new,
|
||||
path: '/settings/ios',
|
||||
);
|
||||
}
|
||||
|
||||
class _IOSSettingsPageState extends State<IOSSettingsPage> {
|
||||
class _IosSettingsPageState extends State<IosSettingsPage> {
|
||||
final _pushToken = ValueNotifier<String?>(null);
|
||||
|
||||
final wc = WatchConnectivity();
|
||||
|
||||
Reference in New Issue
Block a user