fix: mobile actions hide and mobile theme (#8447)

Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
fufesou 2024-06-23 11:26:15 +08:00 committed by GitHub
parent 40cb59336f
commit 307827be3c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 6 deletions

View File

@ -328,10 +328,8 @@ class _RemotePageState extends State<RemotePage>
.mobileActionsOverlayVisible.isFalse, .mobileActionsOverlayVisible.isFalse,
child: Overlay(initialEntries: [ child: Overlay(initialEntries: [
makeMobileActionsOverlayEntry( makeMobileActionsOverlayEntry(
() => _ffi () => _ffi.dialogManager
.dialogManager .setMobileActionsOverlayVisible(false),
.mobileActionsOverlayVisible
.value = false,
ffi: _ffi, ffi: _ffi,
) )
]), ]),

View File

@ -569,8 +569,8 @@ class _SettingsState extends State<SettingsPage> with WidgetsBindingObserver {
SettingsTile( SettingsTile(
title: Text(translate( title: Text(translate(
Theme.of(context).brightness == Brightness.light Theme.of(context).brightness == Brightness.light
? 'Dark Theme' ? 'Light Theme'
: 'Light Theme')), : 'Dark Theme')),
leading: Icon(Theme.of(context).brightness == Brightness.light leading: Icon(Theme.of(context).brightness == Brightness.light
? Icons.dark_mode ? Icons.dark_mode
: Icons.light_mode), : Icons.light_mode),