File tree Expand file tree Collapse file tree 3 files changed +4
-10
lines changed
Expand file tree Collapse file tree 3 files changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -314,10 +314,7 @@ class _ForumPageState extends State<ForumPage> with SingleTickerProviderStateMix
314314 );
315315 } else if (! state.havePermission) {
316316 if (state.permissionDeniedMessage != null ) {
317- return ErrorCard (
318- message: context.t.general.noPermission,
319- child: munchElement (context, state.permissionDeniedMessage! ),
320- );
317+ return ErrorCard (child: munchElement (context, state.permissionDeniedMessage! ));
321318 } else {
322319 return Center (child: Text (context.t.general.noPermission));
323320 }
Original file line number Diff line number Diff line change @@ -299,10 +299,7 @@ class _ThreadPageState extends State<ThreadPage> with SingleTickerProviderStateM
299299 );
300300 } else if (! state.havePermission) {
301301 if (state.permissionDeniedMessage != null ) {
302- return ErrorCard (
303- message: context.t.general.noPermission,
304- child: munchElement (context, state.permissionDeniedMessage! ),
305- );
302+ return ErrorCard (child: munchElement (context, state.permissionDeniedMessage! ));
306303 } else {
307304 return Center (child: Text (context.t.general.noPermission));
308305 }
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ class ErrorCard extends StatelessWidget {
2828 child: Card (
2929 margin: EdgeInsets .zero,
3030 child: Padding (
31- padding: edgeInsetsL12T12R12B12 ,
31+ padding: edgeInsetsL24T24R24B24 ,
3232 child: Column (
3333 mainAxisSize: MainAxisSize .min,
3434 children: [
@@ -42,7 +42,7 @@ class ErrorCard extends StatelessWidget {
4242 style: Theme .of (context).textTheme.bodyMedium? .copyWith (color: Theme .of (context).colorScheme.outline),
4343 ),
4444 Center (child: child),
45- ].insertBetween (sizedBoxW24H24 ),
45+ ].insertBetween (sizedBoxW12H12 ),
4646 ),
4747 ),
4848 ),
You can’t perform that action at this time.
0 commit comments