From f4660f45f020c5bae86475885273193d32f1a09e Mon Sep 17 00:00:00 2001 From: sorairo Date: Sun, 10 Nov 2024 16:18:34 +0900 Subject: [PATCH] Fix #670 --- lib/repository/general_settings_repository.dart | 2 +- .../general_settings_page/general_settings_page.dart | 3 ++- macos/Podfile.lock | 10 +++++----- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/lib/repository/general_settings_repository.dart b/lib/repository/general_settings_repository.dart index 3edd9c163..a8e67b378 100644 --- a/lib/repository/general_settings_repository.dart +++ b/lib/repository/general_settings_repository.dart @@ -25,8 +25,8 @@ class GeneralSettingsRepository extends ChangeNotifier { Future update(GeneralSettings settings) async { _settings = settings; - notifyListeners(); final prefs = await SharedPreferences.getInstance(); await prefs.setString("general_settings", jsonEncode(settings.toJson())); + notifyListeners(); } } diff --git a/lib/view/settings_page/general_settings_page/general_settings_page.dart b/lib/view/settings_page/general_settings_page/general_settings_page.dart index a0dd4b9c1..0acb89650 100644 --- a/lib/view/settings_page/general_settings_page/general_settings_page.dart +++ b/lib/view/settings_page/general_settings_page/general_settings_page.dart @@ -68,7 +68,8 @@ class GeneralSettingsPage extends HookConsumerWidget { enableLongTextElipsed.value, tabPosition.value, emojiType.value, - textScaleFactor.value, + // 変更ボタンを押すまで反映しない + // textScaleFactor.value, defaultFontName.value, serifFontName.value, monospaceFontName.value, diff --git a/macos/Podfile.lock b/macos/Podfile.lock index 930eb2ad0..589257cc3 100644 --- a/macos/Podfile.lock +++ b/macos/Podfile.lock @@ -20,7 +20,7 @@ PODS: - path_provider_foundation (0.0.1): - Flutter - FlutterMacOS - - screen_retriever (0.0.1): + - screen_retriever_macos (0.0.1): - FlutterMacOS - share_plus (0.0.1): - FlutterMacOS @@ -51,7 +51,7 @@ DEPENDENCIES: - media_kit_video (from `Flutter/ephemeral/.symlinks/plugins/media_kit_video/macos`) - package_info_plus (from `Flutter/ephemeral/.symlinks/plugins/package_info_plus/macos`) - path_provider_foundation (from `Flutter/ephemeral/.symlinks/plugins/path_provider_foundation/darwin`) - - screen_retriever (from `Flutter/ephemeral/.symlinks/plugins/screen_retriever/macos`) + - screen_retriever_macos (from `Flutter/ephemeral/.symlinks/plugins/screen_retriever_macos/macos`) - share_plus (from `Flutter/ephemeral/.symlinks/plugins/share_plus/macos`) - shared_preferences_foundation (from `Flutter/ephemeral/.symlinks/plugins/shared_preferences_foundation/darwin`) - sqflite_darwin (from `Flutter/ephemeral/.symlinks/plugins/sqflite_darwin/darwin`) @@ -81,8 +81,8 @@ EXTERNAL SOURCES: :path: Flutter/ephemeral/.symlinks/plugins/package_info_plus/macos path_provider_foundation: :path: Flutter/ephemeral/.symlinks/plugins/path_provider_foundation/darwin - screen_retriever: - :path: Flutter/ephemeral/.symlinks/plugins/screen_retriever/macos + screen_retriever_macos: + :path: Flutter/ephemeral/.symlinks/plugins/screen_retriever_macos/macos share_plus: :path: Flutter/ephemeral/.symlinks/plugins/share_plus/macos shared_preferences_foundation: @@ -109,7 +109,7 @@ SPEC CHECKSUMS: media_kit_video: c75b07f14d59706c775778e4dd47dd027de8d1e5 package_info_plus: f5790acc797bf17c3e959e9d6cf162cc68ff7523 path_provider_foundation: 2b6b4c569c0fb62ec74538f866245ac84301af46 - screen_retriever: 59634572a57080243dd1bf715e55b6c54f241a38 + screen_retriever_macos: 776e0fa5d42c6163d2bf772d22478df4b302b161 share_plus: 36537c04ce0c3e3f5bd297ce4318b6d5ee5fd6cf shared_preferences_foundation: fcdcbc04712aee1108ac7fda236f363274528f78 sqflite_darwin: a553b1fd6fe66f53bbb0fe5b4f5bab93f08d7a13