From e8e99e49f93d3fd4dd44b3d6b42a02285bcff649 Mon Sep 17 00:00:00 2001 From: Shouichi Kamiya Date: Sat, 22 Feb 2020 07:16:04 +0900 Subject: [PATCH] Fix TextEditingController doc to call super.initState first (#51089) --- packages/flutter/lib/src/widgets/editable_text.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/flutter/lib/src/widgets/editable_text.dart b/packages/flutter/lib/src/widgets/editable_text.dart index 880527daf57..4847b4bb268 100644 --- a/packages/flutter/lib/src/widgets/editable_text.dart +++ b/packages/flutter/lib/src/widgets/editable_text.dart @@ -79,6 +79,7 @@ const int _kObscureShowLatestCharCursorTicks = 3; /// final _controller = TextEditingController(); /// /// void initState() { +/// super.initState(); /// _controller.addListener(() { /// final text = _controller.text.toLowerCase(); /// _controller.value = _controller.value.copyWith( @@ -87,7 +88,6 @@ const int _kObscureShowLatestCharCursorTicks = 3; /// composing: TextRange.empty, /// ); /// }); -/// super.initState(); /// } /// /// void dispose() {