Fix typo in settings_controller.dart (#91866)

Also make the spelling ThemeMode consistent
This commit is contained in:
saltedpotatos 2021-10-18 15:10:33 -07:00 committed by GitHub
parent 686a1c27b5
commit ef634b39a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,10 +34,10 @@ class SettingsController with ChangeNotifier {
Future<void> updateThemeMode(ThemeMode? newThemeMode) async {
if (newThemeMode == null) return;
// Dot not perform any work if new and old ThemeMode are identical
// Do not perform any work if new and old ThemeMode are identical
if (newThemeMode == _themeMode) return;
// Otherwise, store the new theme mode in memory
// Otherwise, store the new ThemeMode in memory
_themeMode = newThemeMode;
// Important! Inform listeners a change has occurred.