@@ -111,16 +111,10 @@ class _ButtonExampleState extends State<ButtonExample> {
111
111
Column (
112
112
children: groupButtons (ZetaWidgetBorder .rounded),
113
113
),
114
- Text ('Floating Action Buttons' ,
115
- style: ZetaTextStyles .displayMedium),
116
- Text ('Tap buttons to change current FAB: ' ,
117
- style: ZetaTextStyles .bodyMedium),
118
- Wrap (
119
- children:
120
- fabs.divide (SizedBox .square (dimension: 10 )).toList ()),
121
- ]
122
- .divide (const SizedBox .square (dimension: ZetaSpacing .m))
123
- .toList (),
114
+ Text ('Floating Action Buttons' , style: ZetaTextStyles .displayMedium),
115
+ Text ('Tap buttons to change current FAB: ' , style: ZetaTextStyles .bodyMedium),
116
+ Wrap (children: fabs.divide (SizedBox .square (dimension: 10 )).toList ()),
117
+ ].divide (const SizedBox .square (dimension: ZetaSpacing .m)).toList (),
124
118
),
125
119
),
126
120
Expanded (child: const SizedBox ()),
@@ -178,63 +172,62 @@ class _ButtonExampleState extends State<ButtonExample> {
178
172
179
173
List <Widget > groupButtons (ZetaWidgetBorder ) {
180
174
return [
181
- ZetaButtonGroup (
182
- isLarge: true ,
183
- rounded: true ,
184
- buttons: [
185
- GroupButton (
175
+ ZetaButtonGroup (isLarge: true , rounded: true , buttons: [
176
+ ZetaGroupButton (
177
+ onPressed: () {},
186
178
label: "Label" ,
187
179
),
188
- GroupButton (
180
+ ZetaGroupButton (
181
+ onPressed: () {},
189
182
label: "Label" ,
190
183
),
191
184
]),
192
- ZetaButtonGroup (
193
- isLarge: true ,
194
- rounded: true ,
195
- buttons: [
196
- GroupButton (
185
+ ZetaButtonGroup (isLarge: true , rounded: true , buttons: [
186
+ ZetaGroupButton (
187
+ onPressed: () {},
197
188
label: "Label" ,
198
189
),
199
- GroupButton .dropdown (
190
+ ZetaGroupButton .dropdown (
200
191
onPressed: () {},
201
192
label: "Label" ,
193
+ dropdown: SizedBox (height: 100 , width: 100 ),
202
194
),
203
195
]),
204
196
ZetaButtonGroup (
205
- isLarge: true ,
206
- rounded: true ,
197
+ isLarge: true ,
198
+ rounded: true ,
207
199
buttons: [
208
- GroupButton .icon (
200
+ ZetaGroupButton .icon (
209
201
icon: ZetaIcons .star_round,
202
+ onPressed: () {},
210
203
label: "Label" ,
211
204
),
212
- GroupButton .dropdown (
205
+ ZetaGroupButton .dropdown (
213
206
onPressed: () {},
214
207
label: "Label" ,
208
+ dropdown: SizedBox (height: 100 , width: 100 ),
215
209
),
216
- GroupButton .icon (
217
-
210
+ ZetaGroupButton .icon (
218
211
icon: ZetaIcons .star_round,
219
212
label: "Label" ,
220
213
),
221
214
],
222
215
),
223
216
ZetaButtonGroup (
224
217
isLarge: true ,
225
- rounded: true ,
218
+ rounded: true ,
226
219
buttons: [
227
- GroupButton .icon (
220
+ ZetaGroupButton .icon (
228
221
icon: ZetaIcons .star_round,
229
222
label: "Label" ,
230
223
onPressed: () {},
231
224
),
232
- GroupButton .icon (
225
+ ZetaGroupButton .icon (
233
226
icon: ZetaIcons .star_round,
234
227
label: "Label" ,
235
228
onPressed: () {},
236
229
),
237
- GroupButton .icon (
230
+ ZetaGroupButton .icon (
238
231
icon: ZetaIcons .star_round,
239
232
label: "Label" ,
240
233
onPressed: () {},
0 commit comments