Skip to content

Commit 99b3cfd

Browse files
committed
docs(slider): add slider example
1 parent 5ec85b5 commit 99b3cfd

File tree

3 files changed

+23
-2
lines changed

3 files changed

+23
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ To use this plugin, add `flutter_weui` as a [dependency in your pubspec.yaml fil
2222
- [`MediaBox`](https://github.com/flutter-studio/flutter-weui/blob/master/example/lib/media_box_example.dart)
2323
- [`Panel`](https://github.com/flutter-studio/flutter-weui/blob/master/example/lib/panel_example.dart)
2424
- [`Picker`](https://github.com/flutter-studio/flutter-weui/blob/master/example/lib/picker_example.dart)
25-
- [`Slider`]()
25+
- [`Slider`](https://github.com/flutter-studio/flutter-weui/blob/master/example/lib/slider_example.dart)
2626
- [`Switch`]()
2727
- [`Toast`]()
2828
- [`TouchableHighlight`]()

README_zh-CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
- [`MediaBox`](https://github.com/flutter-studio/flutter-weui/blob/master/example/lib/media_box_example.dart)
2323
- [`Panel`](https://github.com/flutter-studio/flutter-weui/blob/master/example/lib/panel_example.dart)
2424
- [`Picker`](https://github.com/flutter-studio/flutter-weui/blob/master/example/lib/picker_example.dart)
25-
- [`Slider`]()
25+
- [`Slider`](https://github.com/flutter-studio/flutter-weui/blob/master/example/lib/slider_example.dart)
2626
- [`Switch`]()
2727
- [`Toast`]()
2828
- [`TouchableHighlight`]()

example/lib/slider_example.dart

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

0 commit comments

Comments
 (0)