mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Fix TextEditingController doc to call super.initState first (#51089)
This commit is contained in:
parent
bb74a328b5
commit
e8e99e49f9
@ -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() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user