Unverified Commit e8e99e49 authored by Shouichi Kamiya's avatar Shouichi Kamiya Committed by GitHub

Fix TextEditingController doc to call super.initState first (#51089)

parent bb74a328
...@@ -79,6 +79,7 @@ const int _kObscureShowLatestCharCursorTicks = 3; ...@@ -79,6 +79,7 @@ const int _kObscureShowLatestCharCursorTicks = 3;
/// final _controller = TextEditingController(); /// final _controller = TextEditingController();
/// ///
/// void initState() { /// void initState() {
/// super.initState();
/// _controller.addListener(() { /// _controller.addListener(() {
/// final text = _controller.text.toLowerCase(); /// final text = _controller.text.toLowerCase();
/// _controller.value = _controller.value.copyWith( /// _controller.value = _controller.value.copyWith(
...@@ -87,7 +88,6 @@ const int _kObscureShowLatestCharCursorTicks = 3; ...@@ -87,7 +88,6 @@ const int _kObscureShowLatestCharCursorTicks = 3;
/// composing: TextRange.empty, /// composing: TextRange.empty,
/// ); /// );
/// }); /// });
/// super.initState();
/// } /// }
/// ///
/// void dispose() { /// void dispose() {
......
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