Skip to content

Commit 10b0df9

Browse files
Update vertical_list_nested_horizontal_list.dart
1 parent ccceb14 commit 10b0df9

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

projects/flutter-demo/lib/all_samples/list/vertical_list_nested_horizontal_list.dart

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,21 @@ class ListViewNested extends StatelessWidget {
2121
@override
2222
Widget build(BuildContext context) {
2323
return new Scaffold(
24-
appBar: new AppBar(
24+
appBar: new AppBar(
25+
leading: new IconButton(
26+
icon: new Icon(Icons.keyboard_arrow_left),
27+
onPressed: () {
28+
// 返回上一个页面
29+
Navigator.of(context).pop();
30+
}),
2531
title: new Text(
2632
'垂直listview嵌套水平的listview Demo',
27-
style: new TextStyle(fontSize: 15.0),
33+
style: new TextStyle(fontSize: 17.0),
2834
),
2935
),
36+
37+
38+
),
3039
// body: buildListView(),
3140
body: buildListView2(),
3241
);

0 commit comments

Comments
 (0)