Skip to content

Commit

Permalink
Remove MediaQuery usage in keyboardAppearance
Browse files Browse the repository at this point in the history
  • Loading branch information
Ellet committed Dec 2, 2023
1 parent 530969b commit 07dbef8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion lib/src/models/config/raw_editor/configurations.dart
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,6 @@ class QuillRawEditorConfigurations extends Equatable {
///
/// widget.configurations.keyboardAppearance ??
/// CupertinoTheme.maybeBrightnessOf(context) ??
/// MediaQuery.maybePlatformBrightnessOf(context) ??
/// Theme.of(context).brightness
///
/// ```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import 'package:flutter/foundation.dart' show kIsWeb;
import 'package:flutter/material.dart' show Theme;
import 'package:flutter/scheduler.dart' show SchedulerBinding;
import 'package:flutter/services.dart';
import 'package:flutter/widgets.dart' show MediaQuery;

import '../../models/documents/document.dart';
import '../../utils/delta.dart';
Expand Down Expand Up @@ -64,7 +63,6 @@ mixin RawEditorStateTextInputClientMixin on EditorState
enableSuggestions: !widget.configurations.isReadOnly,
keyboardAppearance: widget.configurations.keyboardAppearance ??
CupertinoTheme.maybeBrightnessOf(context) ??
MediaQuery.maybePlatformBrightnessOf(context) ??
Theme.of(context).brightness,
textCapitalization: widget.configurations.textCapitalization,
allowedMimeTypes:
Expand Down

0 comments on commit 07dbef8

Please sign in to comment.