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

This commit is contained in:
Shouichi Kamiya 2020-02-22 07:16:04 +09:00 committed by GitHub
parent bb74a328b5
commit e8e99e49f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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() {