|
1 | 1 | import 'package:flutter/material.dart'; |
2 | 2 | import 'package:flutter_weui/flutter_weui.dart'; |
3 | | -class DialogExample extends StatelessWidget { |
| 3 | +class PickerExample extends StatelessWidget { |
4 | 4 | @override |
5 | 5 | Widget build(BuildContext context) { |
6 | 6 | return Scaffold( |
7 | | - appBar: AppBar(title: Text("Dialog"),), |
| 7 | + appBar: AppBar(title: Text("Picker"),), |
8 | 8 | body: Center( |
9 | 9 | child: Column( |
10 | 10 | children: <Widget>[ |
11 | 11 | FlatButton(onPressed: (){ |
12 | | - WDialog.show(context,title: "Title",content: "Context",actions: [ |
13 | | - DialogActions(text: "取消"), |
14 | | - DialogActions(text: "确定") |
15 | | - ]); |
16 | | - }, child: Text("Dialog_Android")), |
17 | | - FlatButton(onPressed: (){ |
18 | | - WDialog.show(context,title: "Title",content: "Context",actions: [ |
19 | | - DialogActions(text: "取消"), |
20 | | - DialogActions(text: "确定") |
21 | | - ],platform: TargetPlatform.iOS); |
22 | | - }, child: Text("Dialog_Ios")) |
| 12 | + Picker.show(context,data: ["item1","item2","item2","item4"]); |
| 13 | + }, child: Text("Picker")) |
23 | 14 | ], |
24 | 15 | ), |
25 | 16 | ), |
|
0 commit comments