@@ -10,69 +10,44 @@ class SpaceFilterButtons extends StatelessWidget {
10
10
11
11
@override
12
12
Widget build (BuildContext context) {
13
- final theme = Theme .of (context);
14
13
return SliverList (
15
14
delegate: SliverChildListDelegate (
16
15
[
17
16
const SizedBox (height: 16.0 ),
18
17
Padding (
19
- padding: const EdgeInsets .symmetric (
20
- horizontal: 8.0 ,
21
- vertical: 4.0 ,
22
- ),
23
- child: ElevatedButton (
24
- style: ElevatedButton .styleFrom (
25
- backgroundColor: theme.colorScheme.primary,
26
- padding: const EdgeInsets .all (0 ),
27
- ),
28
- onPressed: () => SpaceCodeUtil .joinWithSpaceCodeDialog (context),
29
- child: Row (
30
- spacing: 16.0 ,
31
- mainAxisAlignment: MainAxisAlignment .center,
32
- children: [
33
- Icon (
34
- Icons .join_right_outlined,
35
- color: theme.colorScheme.onPrimary,
18
+ padding: const EdgeInsets .all (4.0 ),
19
+ child: Center (
20
+ child: SizedBox (
21
+ width: 100.0 ,
22
+ child: FloatingActionButton .extended (
23
+ onPressed: () =>
24
+ SpaceCodeUtil .joinWithSpaceCodeDialog (context),
25
+ icon: const Icon (Icons .join_right_outlined),
26
+ label: Text (
27
+ L10n .of (context).join,
28
+ overflow: TextOverflow .fade,
36
29
),
37
- Text (
38
- L10n .of (context).joinByCode,
39
- style: theme.textTheme.bodyMedium? .copyWith (
40
- color: theme.colorScheme.onPrimary,
41
- ),
42
- ),
43
- ],
30
+ ),
44
31
),
45
32
),
46
33
),
47
34
Padding (
48
- padding: const EdgeInsets .symmetric (
49
- horizontal: 8.0 ,
50
- vertical: 2.0 ,
51
- ),
52
- child: ElevatedButton (
53
- style: ElevatedButton .styleFrom (
54
- backgroundColor: theme.colorScheme.primary,
55
- padding: const EdgeInsets .all (0 ),
56
- ),
57
- onPressed: () => context.go ('/rooms/newspace' ),
58
- child: Row (
59
- spacing: 16.0 ,
60
- mainAxisAlignment: MainAxisAlignment .center,
61
- children: [
62
- Icon (
63
- Icons .add,
64
- color: theme.colorScheme.onPrimary,
65
- ),
66
- Text (
67
- L10n .of (context).createASpace,
68
- style: theme.textTheme.bodyMedium? .copyWith (
69
- color: theme.colorScheme.onPrimary,
70
- ),
35
+ padding: const EdgeInsets .all (4.0 ),
36
+ child: Center (
37
+ child: SizedBox (
38
+ width: 100.0 ,
39
+ child: FloatingActionButton .extended (
40
+ onPressed: () => context.go ('/rooms/newspace' ),
41
+ icon: const Icon (Icons .add),
42
+ label: Text (
43
+ L10n .of (context).space,
44
+ overflow: TextOverflow .fade,
71
45
),
72
- ] ,
46
+ ) ,
73
47
),
74
48
),
75
49
),
50
+ const SizedBox (height: 16.0 ),
76
51
],
77
52
),
78
53
);
0 commit comments