INNER CODE UNIT · Dart

_KeyboardTestPageState

charliewwdev/douyin · flutter_app_cn/lib/keyboard_test_page.dart:26

class _KeyboardTestPageState extends State<KeyboardTestPage> {
  final List<String> _messages = [];

  final FocusNode _focusNode = FocusNode();
  final ScrollController _scrollController = new ScrollController();

  @override
  void didChangeDependencies() {
    super.didChangeDependencies();
    FocusScope.of(context).requestFocus(_focusNode);
  }

  @override
  Widget build(BuildContext context) {
    return new Scaffold(
      appBar: AppBar(
          title: new Text('Keyboard events test'),
          leading: new IconButton(

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…