Skip to content

Commit 81ca6c9

Browse files
author
yangshangzhi
committed
add list
1 parent 2abbce2 commit 81ca6c9

File tree

5 files changed

+34
-11
lines changed

5 files changed

+34
-11
lines changed

lib/components/widgetComp.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ class IndexState extends State<Index> {
166166
child: Row(children: [
167167
Icon(
168168
Icons.home,
169-
color: Color(model.theme.blackColor),
169+
color: Color(model.theme.greyColor),
170170
),
171171
Text(" "),
172172
Text('官网'),
@@ -177,7 +177,7 @@ class IndexState extends State<Index> {
177177
child: Row(children: [
178178
Icon(
179179
Icons.all_inclusive,
180-
color: Color(model.theme.blackColor),
180+
color: Color(model.theme.greyColor),
181181
),
182182
Text(" "),
183183
Text("Markdown"),
@@ -188,7 +188,7 @@ class IndexState extends State<Index> {
188188
child: Row(children: [
189189
Icon(
190190
Icons.code,
191-
color: Color(model.theme.blackColor),
191+
color: Color(model.theme.greyColor),
192192
),
193193
Text(" "),
194194
Text(this.title),

lib/widget/scrollview/index.dart

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
11
import 'package:efox_flutter/store/objects/widget_info.dart';
2-
import 'gridview/index.dart' as GridView;
2+
import 'gridview/index.dart' as gridview;
3+
import 'listview/index.dart' as listview;
34

45
const nameSpaces = '/scrollview_';
56

67
List widgets = [
78
ItemInfo(
8-
widget: GridView.Index(),
9-
code: 59673,
10-
title: GridView.Index.title,
9+
widget: gridview.Index(),
10+
code: 59632, // view_module
11+
title: gridview.Index.title,
12+
),
13+
ItemInfo(
14+
widget: listview.Index(),
15+
code: 59631, // view_list
16+
title: listview.Index.title,
1117
)
1218
];
1319

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import 'package:flutter/material.dart';
2+
3+
class Index extends StatefulWidget {
4+
@override
5+
State createState() => _IndexState();
6+
}
7+
8+
class _IndexState extends State<Index> {
9+
@override
10+
Widget build(BuildContext context) {
11+
return Container(
12+
child: Text('test'),
13+
);
14+
}
15+
}

lib/widget/scrollview/listview/demo_

Whitespace-only changes.

lib/widget/scrollview/listview/index.dart

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import 'package:flutter/material.dart';
22
import 'package:efox_flutter/components/widgetComp.dart' as WidgetComp;
3+
import 'demo.dart' as Demo;
34

45
class Index extends StatefulWidget {
5-
static String title = 'GridView';
6-
static String mdUrl = 'docs/widget/scrollview/gridview/index.md';
7-
static String codeUrl = 'docs/widget/scrollview/gridview/code.md';
8-
static String originCodeUrl = 'https://flutter.io/docs/cookbook/lists/grid-lists';
6+
static String title = 'ListView';
7+
static String mdUrl = 'docs/widget/scrollview/listview/index.md';
8+
static String codeUrl = 'docs/widget/scrollview/listview/code.md';
9+
static String originCodeUrl = 'https://docs.flutter.io/flutter/widgets/ListView-class.html';
910

1011
@override
1112
_IndexState createState() => new _IndexState();
@@ -20,6 +21,7 @@ class _IndexState extends State<Index> {
2021
originCodeUrl: Index.originCodeUrl,
2122
mdUrl: Index.mdUrl,
2223
demoChild: [
24+
Demo.Index(),
2325
]
2426
);
2527
}

0 commit comments

Comments
 (0)