1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
| class FormPage extends StatefulWidget {
String title;
FormPage({Key? key, required this.title}) : super(key: key);
@override
// ignore: no_logic_in_create_state
State<FormPage> createState() => _FormPageState(title: title);
}
class _FormPageState extends State<FormPage> {
String title;
_FormPageState({required this.title});
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text(widget.title),
),
body: ListView(
children: const [
ListTile(
title: Text('表单内容'),
)
],
),
);
;
}
}
|