Manav 2 年之前
父节点
当前提交
b653838ffa
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/ui/settings/inherited_settings_state.dart

+ 1 - 1
lib/ui/settings/inherited_settings_state.dart

@@ -67,7 +67,7 @@ class InheritedSettingsState extends InheritedWidget {
       context.dependOnInheritedWidgetOfExactType<InheritedSettingsState>()!;
       context.dependOnInheritedWidgetOfExactType<InheritedSettingsState>()!;
 
 
   static InheritedSettingsState? maybeOf(BuildContext context) =>
   static InheritedSettingsState? maybeOf(BuildContext context) =>
-      context.dependOnInheritedWidgetOfExactType<InheritedSettingsState>()!;
+      context.dependOnInheritedWidgetOfExactType<InheritedSettingsState>();
 
 
   @override
   @override
   bool updateShouldNotify(covariant InheritedSettingsState oldWidget) {
   bool updateShouldNotify(covariant InheritedSettingsState oldWidget) {