From 307827be3c664eb29dd9050424bbba3ba4c389c3 Mon Sep 17 00:00:00 2001 From: fufesou <13586388+fufesou@users.noreply.github.com> Date: Sun, 23 Jun 2024 11:26:15 +0800 Subject: [PATCH] fix: mobile actions hide and mobile theme (#8447) Signed-off-by: fufesou --- flutter/lib/desktop/pages/remote_page.dart | 6 ++---- flutter/lib/mobile/pages/settings_page.dart | 4 ++-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/flutter/lib/desktop/pages/remote_page.dart b/flutter/lib/desktop/pages/remote_page.dart index ba5ef3bb1..8427645e2 100644 --- a/flutter/lib/desktop/pages/remote_page.dart +++ b/flutter/lib/desktop/pages/remote_page.dart @@ -328,10 +328,8 @@ class _RemotePageState extends State .mobileActionsOverlayVisible.isFalse, child: Overlay(initialEntries: [ makeMobileActionsOverlayEntry( - () => _ffi - .dialogManager - .mobileActionsOverlayVisible - .value = false, + () => _ffi.dialogManager + .setMobileActionsOverlayVisible(false), ffi: _ffi, ) ]), diff --git a/flutter/lib/mobile/pages/settings_page.dart b/flutter/lib/mobile/pages/settings_page.dart index d1e2ff55a..909ca0285 100644 --- a/flutter/lib/mobile/pages/settings_page.dart +++ b/flutter/lib/mobile/pages/settings_page.dart @@ -569,8 +569,8 @@ class _SettingsState extends State with WidgetsBindingObserver { SettingsTile( title: Text(translate( Theme.of(context).brightness == Brightness.light - ? 'Dark Theme' - : 'Light Theme')), + ? 'Light Theme' + : 'Dark Theme')), leading: Icon(Theme.of(context).brightness == Brightness.light ? Icons.dark_mode : Icons.light_mode),