Skip to content

Commit af877e6

Browse files
committed
docs(loadmore): add loadmore example
1 parent fe311aa commit af877e6

File tree

3 files changed

+25
-2
lines changed

3 files changed

+25
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ To use this plugin, add `flutter_weui` as a [dependency in your pubspec.yaml fil
1818
- [`Cell`](https://github.com/flutter-studio/flutter-weui/blob/master/example/lib/cell_example.dart)
1919
- [`Dialog`](https://github.com/flutter-studio/flutter-weui/blob/master/example/lib/dialog_example.dart)
2020
- [`Footer`](https://github.com/flutter-studio/flutter-weui/blob/master/example/lib/footer_example.dart)
21-
- [`LoadMore`]()
21+
- [`LoadMore`](https://github.com/flutter-studio/flutter-weui/blob/master/example/lib/load_more_example.dart)
2222
- [`MediaBox`]()
2323
- [`Panel`]()
2424
- [`Picker`]()

README_zh-CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
- [`Cell`](https://github.com/flutter-studio/flutter-weui/blob/master/example/lib/cell_example.dart)
1919
- [`Dialog`](https://github.com/flutter-studio/flutter-weui/blob/master/example/lib/dialog_example.dart)
2020
- [`Footer`](https://github.com/flutter-studio/flutter-weui/blob/master/example/lib/footer_example.dart)
21-
- [`LoadMore`]()
21+
- [`LoadMore`](https://github.com/flutter-studio/flutter-weui/blob/master/example/lib/load_more_example.dart)
2222
- [`MediaBox`]()
2323
- [`Panel`]()
2424
- [`Picker`]()

example/lib/load_more_example.dart

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import 'package:flutter/material.dart';
2+
import 'package:flutter_weui/flutter_weui.dart';
3+
class LoadMoreExample extends StatelessWidget {
4+
@override
5+
Widget build(BuildContext context) {
6+
return Scaffold(
7+
appBar: AppBar(title: Text("LoadMore"),),
8+
body: Cells(
9+
children: <Widget>[
10+
LoadMore(
11+
type: LoadType.loading,
12+
),
13+
LoadMore(
14+
type: LoadType.noData,
15+
),
16+
LoadMore(
17+
type: LoadType.dot,
18+
),
19+
],
20+
),
21+
);
22+
}
23+
}

0 commit comments

Comments
 (0)