Skip to content

Commit

Permalink
Fix #670
Browse files Browse the repository at this point in the history
  • Loading branch information
shiosyakeyakini-info committed Nov 10, 2024
1 parent 8685732 commit f4660f4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lib/repository/general_settings_repository.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ class GeneralSettingsRepository extends ChangeNotifier {

Future<void> update(GeneralSettings settings) async {
_settings = settings;
notifyListeners();
final prefs = await SharedPreferences.getInstance();
await prefs.setString("general_settings", jsonEncode(settings.toJson()));
notifyListeners();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ class GeneralSettingsPage extends HookConsumerWidget {
enableLongTextElipsed.value,
tabPosition.value,
emojiType.value,
textScaleFactor.value,
// 変更ボタンを押すまで反映しない
// textScaleFactor.value,
defaultFontName.value,
serifFontName.value,
monospaceFontName.value,
Expand Down
10 changes: 5 additions & 5 deletions macos/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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`)
Expand Down Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit f4660f4

Please sign in to comment.