@@ -54,50 +54,50 @@ class CommunityScreen extends HookConsumerWidget {
5454 padding: const EdgeInsets .symmetric (
5555 horizontal: 16.0 , vertical: 16.0 ),
5656 child: ElevatedButton (
57- style: FormUtils .buttonStyle,
58- onPressed: () {
59- Navigator .push (
60- context,
61- PageRouteBuilder (
62- transitionDuration:
63- const Duration (milliseconds: 500 ),
64- pageBuilder:
65- (context, animation, secondaryAnimation) =>
66- SlideTransition (
67- position: Tween <Offset >(
68- begin: const Offset (1.0 , 0.0 ),
69- end: Offset .zero,
70- ).animate (animation),
71- child: const PendingRequestsScreen (),
72- ),
73- ),
74- );
75- },
76- child: Align (
77- alignment: Alignment .center,
78- child: Row (
79- mainAxisSize: MainAxisSize .min,
80- children: [
81- Badge .count (
82- count:
83- pendingRequestsState.pendingRequests.length,
84- textColor: Colors .black,
85- backgroundColor: Colors .white,
86- child: const Icon (
87- Icons .people,
88- color: Colors .white,
57+ style: FormUtils .buttonStyle,
58+ onPressed: () {
59+ Navigator .push (
60+ context,
61+ PageRouteBuilder (
62+ transitionDuration:
63+ const Duration (milliseconds: 500 ),
64+ pageBuilder:
65+ (context, animation, secondaryAnimation) =>
66+ SlideTransition (
67+ position: Tween <Offset >(
68+ begin: const Offset (1.0 , 0.0 ),
69+ end: Offset .zero,
70+ ).animate (animation),
71+ child: const PendingRequestsScreen (),
8972 ),
9073 ),
91- const SizedBox (width: 8 ),
92- Text (
93- AppLocalizations .of (context)!
94- .see_pending_requests,
95- style: FormUtils .darkTextFormFieldStyle,
96- ),
97- ],
98- ),
99- ),
100- ),
74+ );
75+ },
76+ child: Align (
77+ alignment: Alignment .center,
78+ child: Badge .count (
79+ count: pendingRequestsState
80+ .pendingRequests.length,
81+ textColor: Colors .black,
82+ backgroundColor: Colors .white,
83+ child: Padding (
84+ padding: const EdgeInsets .fromLTRB (
85+ 0 , 0 , 16 , 0 ),
86+ child: Row (
87+ mainAxisSize: MainAxisSize .min,
88+ children: [
89+ const Icon (
90+ Icons .people,
91+ color: Colors .white,
92+ ),
93+ const SizedBox (width: 8 ),
94+ Text (
95+ AppLocalizations .of (context)!
96+ .see_pending_requests,
97+ style: FormUtils
98+ .darkTextFormFieldStyle,
99+ ),
100+ ]))))),
101101 )
102102 : Container ();
103103 },
0 commit comments