Skip to content

Commit

Permalink
change error layout style
Browse files Browse the repository at this point in the history
  • Loading branch information
kidozh committed Jan 4, 2022
1 parent 4e4901f commit 4774000
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/widget/ErrorCard.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,13 @@ class ErrorCard extends StatelessWidget{

@override
Widget build(BuildContext context) {
return Padding(padding: EdgeInsets.symmetric(vertical: 64, horizontal: 16),
return Padding(padding: EdgeInsets.symmetric(vertical: 32.0, horizontal: 8.0),
child: Container(
alignment: Alignment.center,
child: Column(
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisAlignment: MainAxisAlignment.center,
mainAxisSize: MainAxisSize.min,
children: [
Icon(Icons.error_outline,color: Theme.of(context).errorColor,size: 64,),
SizedBox(height: 6.0,),
Expand All @@ -30,7 +33,7 @@ class ErrorCard extends StatelessWidget{

],
),
SizedBox(height: 6.0,),
SizedBox(height: 16.0,),
if(onRefreshCallback!=null)
PlatformElevatedButton(
child: Text(S.of(context).retry),
Expand Down

0 comments on commit 4774000

Please sign in to comment.