Unverified Commit a5820011 authored by jslavitz's avatar jslavitz Committed by GitHub

Adds media query check in editable_text (#27955)

* media query check
parent b557f3a3
...@@ -14,6 +14,7 @@ import 'package:flutter/gestures.dart' show DragStartBehavior; ...@@ -14,6 +14,7 @@ import 'package:flutter/gestures.dart' show DragStartBehavior;
import 'automatic_keep_alive.dart'; import 'automatic_keep_alive.dart';
import 'basic.dart'; import 'basic.dart';
import 'binding.dart'; import 'binding.dart';
import 'debug.dart';
import 'focus_manager.dart'; import 'focus_manager.dart';
import 'focus_scope.dart'; import 'focus_scope.dart';
import 'framework.dart'; import 'framework.dart';
...@@ -1185,6 +1186,7 @@ class EditableTextState extends State<EditableText> with AutomaticKeepAliveClien ...@@ -1185,6 +1186,7 @@ class EditableTextState extends State<EditableText> with AutomaticKeepAliveClien
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
assert(debugCheckHasMediaQuery(context));
FocusScope.of(context).reparentIfNeeded(widget.focusNode); FocusScope.of(context).reparentIfNeeded(widget.focusNode);
super.build(context); // See AutomaticKeepAliveClientMixin. super.build(context); // See AutomaticKeepAliveClientMixin.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment