We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66f4293 commit afc264aCopy full SHA for afc264a
example/lib/button_example.dart
@@ -0,0 +1,26 @@
1
+import 'package:flutter/material.dart';
2
+import 'package:flutter_weui/flutter_weui.dart';
3
+
4
+class ButtonExample extends StatelessWidget {
5
+ @override
6
+ Widget build(BuildContext context) {
7
+ return Scaffold(
8
+ appBar: AppBar(
9
+ title: Text("Button"),
10
+ ),
11
+ body: Padding(
12
+ padding: const EdgeInsets.all(5),
13
+ child: ListView(
14
+ children: <Widget>[
15
+ Button(),
16
+ Button(type: ButtonType.btnWarn),
17
+ Button(type: ButtonType.btnPrimary),
18
+ Button(loading: true),
19
+ Button(disabled: true),
20
+ Button(text: "按钮"),
21
+ ],
22
23
24
+ );
25
+ }
26
+}
0 commit comments