-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathButtonAbout.dart
74 lines (71 loc) · 2.25 KB
/
ButtonAbout.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
import 'package:flutter/material.dart';
import 'package:flutter_starter_notes/component/CommonTitle.dart';
class ButtonAbout extends StatelessWidget {
ButtonAbout({Key key, this.title});
final String title;
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text(title),
),
body: SingleChildScrollView(
child: Column(
children: <Widget>[
CommonTitle('RaisedButton'),
Container(
padding:
EdgeInsets.only(left: 10, right: 10, top: 10, bottom: 10),
child: RaisedButton(
child: Text("按钮"),
onPressed: () => {},
),
),
CommonTitle('FlatButton'),
Container(
padding:
EdgeInsets.only(left: 10, right: 10, top: 10, bottom: 10),
child: FlatButton(
child: Text("按钮"),
onPressed: () => {},
),
),
CommonTitle('OutlineButton'),
Container(
padding:
EdgeInsets.only(left: 10, right: 10, top: 10, bottom: 10),
child: OutlineButton(
child: Text("按钮"),
onPressed: () => {},
),
),
CommonTitle('IconButton'),
Container(
padding:
EdgeInsets.only(left: 10, right: 10, top: 10, bottom: 10),
child: IconButton(
icon: Icon(Icons.thumb_up),
onPressed: () => {},
),
),
CommonTitle('自定义按钮外观'),
Container(
padding:
EdgeInsets.only(left: 10, right: 10, top: 10, bottom: 10),
child: FlatButton(
color: Colors.blue,
highlightColor: Colors.blue[700],
colorBrightness: Brightness.dark,
splashColor: Colors.grey,
child: Text("Submit"),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(50.0)),
onPressed: () => {},
),
),
],
),
),
);
}
}