Skip to content

Commit fe311aa

Browse files
committed
docs(footer): add footer example
1 parent 68463dd commit fe311aa

File tree

3 files changed

+26
-2
lines changed

3 files changed

+26
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ To use this plugin, add `flutter_weui` as a [dependency in your pubspec.yaml fil
1717
- [`Article`](https://github.com/flutter-studio/flutter-weui/blob/master/example/lib/article_example.dart)
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)
20-
- [`Footer`]()
20+
- [`Footer`](https://github.com/flutter-studio/flutter-weui/blob/master/example/lib/footer_example.dart)
2121
- [`LoadMore`]()
2222
- [`MediaBox`]()
2323
- [`Panel`]()

README_zh-CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
- [`Article`](https://github.com/flutter-studio/flutter-weui/blob/master/example/lib/article_example.dart)
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)
20-
- [`Footer`]()
20+
- [`Footer`](https://github.com/flutter-studio/flutter-weui/blob/master/example/lib/footer_example.dart)
2121
- [`LoadMore`]()
2222
- [`MediaBox`]()
2323
- [`Panel`]()

example/lib/footer_example.dart

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import 'package:flutter/material.dart';
2+
import 'package:flutter_weui/flutter_weui.dart';
3+
4+
class FooterExample extends StatelessWidget {
5+
@override
6+
Widget build(BuildContext context) {
7+
return Scaffold(
8+
appBar: AppBar(
9+
title: Text("Footer"),
10+
),
11+
body: Container(
12+
padding: const EdgeInsets.only(bottom: 15),
13+
child: Column(
14+
mainAxisAlignment: MainAxisAlignment.end,
15+
children: <Widget>[
16+
Footer(
17+
text: "南京某某智能科技有限公司",
18+
links: [Link(text: "友情链接",onPressed: (){}), Link(text: "公司邮箱",onPressed: (){})],
19+
)
20+
],
21+
)),
22+
);
23+
}
24+
}

0 commit comments

Comments
 (0)