Skip to content

Commit 1a325d6

Browse files
committed
feat:增加md对应的组件内容,增加floatingactionbutton
1 parent 32b2d91 commit 1a325d6

File tree

3 files changed

+51
-25
lines changed

3 files changed

+51
-25
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
## **文档完善中**
1+
## **FloatingActionButton**

lib/widget/navigator/floatingactionbutton/demo.dart

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ class Index extends StatefulWidget {
66
}
77

88
class _IndexState extends State<Index> {
9+
int count = 0;
910
@override
1011
void initState() {
1112
super.initState();
@@ -16,9 +17,34 @@ class _IndexState extends State<Index> {
1617
return Scaffold(
1718
appBar: AppBar(
1819
title: Text('FloatingActionButton'),
20+
automaticallyImplyLeading: false,
1921
),
2022
body: Center(
21-
child: Text('更新中'),
23+
child: Column(
24+
mainAxisAlignment: MainAxisAlignment.center,
25+
children: <Widget>[
26+
Text(
27+
'Click FloatingActionButton to add Count',
28+
style: TextStyle(fontSize: 16),
29+
),
30+
Text(
31+
'count: $count',
32+
style: TextStyle(fontSize: 24),
33+
)
34+
],
35+
),
36+
),
37+
floatingActionButton: FloatingActionButton(
38+
backgroundColor: Colors.red,
39+
child: Icon(
40+
Icons.notifications_active,
41+
color: Colors.white,
42+
),
43+
onPressed: () {
44+
setState(() {
45+
count++;
46+
});
47+
},
2248
),
2349
);
2450
}

readme.md

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Flutter UI
5858
├─utils 项目工具类
5959
└─widget 项目组件库
6060
├─animate
61-
│ ├─animatedbuilder 【✔️ v1.0】
61+
│ ├─animatedbuilder 【✔️ v1.0】
6262
│ ├─animatedcontainer
6363
│ ├─animatedcrossfade
6464
│ ├─animateddefaulttextstyle
@@ -89,8 +89,8 @@ Flutter UI
8989
│ ├─assetbundle
9090
│ ├─buttonbar
9191
│ ├─chip
92-
│ ├─container 【✔️ v1.0】
93-
│ ├─divider 【✔️ v1.0】
92+
│ ├─container 【✔️ v1.0】
93+
│ ├─divider 【✔️ v1.0】
9494
│ ├─flatbutton 【✔️ v1.0】
9595
│ ├─icon 【✔️ v1.0】
9696
│ ├─iconbutton
@@ -105,16 +105,16 @@ Flutter UI
105105
├─form
106106
│ ├─checkbox 【✔️ v1.0】
107107
│ ├─checkboxlisttile 【✔️ v1.0】
108-
│ ├─slider 【✔️ v1.0】
109-
│ ├─switch 【✔️ v1.0】
110-
│ ├─switchListTile 【✔️ v1.0】
111-
│ ├─daypicker 【✔️ v1.0】
112-
│ ├─radio 【✔️ v1.0】
113-
│ ├─radioListTile 【✔️ v1.0】
108+
│ ├─slider 【✔️ v1.0】
109+
│ ├─switch 【✔️ v1.0】
110+
│ ├─switchListTile 【✔️ v1.0】
111+
│ ├─daypicker 【✔️ v1.0】
112+
│ ├─radio 【✔️ v1.0】
113+
│ ├─radioListTile 【✔️ v1.0】
114114
│ ├─form
115115
│ ├─formfield
116116
│ ├─rawkeyboard
117-
│ ├─textfield 【✔️ v1.0】
117+
│ ├─textfield 【✔️ v1.0】
118118
│ └─textinput
119119
├─gestures
120120
│ ├─absorbpointer
@@ -125,9 +125,9 @@ Flutter UI
125125
│ └─longpressdraggable 【✔️ v1.0】
126126
├─navigator
127127
│ ├─appbar 【✔️ v1.0】
128-
│ ├─bottomnavigationbar
128+
│ ├─bottomnavigationbar 【✔️ v1.0】
129129
│ ├─drawer 【✔️ v1.0】
130-
│ ├─floatingactionbutton
130+
│ ├─floatingactionbutton 【✔️ v1.0】
131131
│ ├─materialapp
132132
│ ├─navigator
133133
│ ├─popupmenubutton
@@ -136,31 +136,31 @@ Flutter UI
136136
│ ├─tabbarview
137137
│ └─widgetsapp
138138
├─regular
139-
│ ├─align 【✔️ v1.0】
140-
│ ├─aspectratio 【✔️ v1.0】
139+
│ ├─align 【✔️ v1.0】
140+
│ ├─aspectratio 【✔️ v1.0】
141141
│ ├─center 【✔️ v1.0】
142142
│ ├─column 【✔️ v1.0】
143143
│ ├─constrainedbox 【✔️ v1.0】
144-
│ ├─container 【✔️ v1.0】
145-
│ ├─fittedbox 【✔️ v1.0】
144+
│ ├─container 【✔️ v1.0】
145+
│ ├─fittedbox 【✔️ v1.0】
146146
│ ├─flow 【✔️ v1.0】
147-
│ ├─layoutbuilder 【✔️ v1.0】
147+
│ ├─layoutbuilder 【✔️ v1.0】
148148
│ ├─listbody 【✔️ v1.0】
149149
│ ├─listview 【✔️ v1.0】
150-
│ ├─padding 【✔️ v1.0】
151-
│ ├─row 【✔️ v1.0】
152-
│ ├─stack 【✔️ v1.0】
153-
│ ├─table 【✔️ v1.0】
150+
│ ├─padding 【✔️ v1.0】
151+
│ ├─row 【✔️ v1.0】
152+
│ ├─stack 【✔️ v1.0】
153+
│ ├─table 【✔️ v1.0】
154154
│ └─wrap 【✔️ v1.0】
155155
├─scrollview
156156
│ ├─customscrollview 【✔️ v1.0】
157157
│ ├─gridview 【✔️ v1.0】
158158
│ ├─listview 【✔️ v1.0】
159159
│ ├─nestedscrollview 【✔️ v1.0】
160160
│ ├─scrollable 【✔️ v1.0】
161-
│ ├─scrollbar 【✔️ v1.0】
161+
│ ├─scrollbar 【✔️ v1.0】
162162
│ ├─scrollcontroller 【✔️ v1.0】
163-
│ └─singlechildscrollview 【✔️ v1.0】
163+
│ └─singlechildscrollview 【✔️ v1.0】
164164
└─vision
165165
├─backdropfilter
166166
├─clipoval

0 commit comments

Comments
 (0)