//flutter import 'package:flutter/material.dart'; void main() { return runApp(TestPage()); } //リスト4.24 class TestPage extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( title: 'ListView', home: Scaffold( appBar: AppBar(title: Text('ListView')), body: Column( children: [ Expanded( child: ListView( keyboardDismissBehavior: ScrollViewKeyboardDismissBehavior.onDrag, children: List.generate(100, (i) => Text('Item$i')), ) ), TextFormField( decoration: const InputDecoration(labelText: '入力'), ) ], ) ) ); } }