Skip to content

Commit

Permalink
fix: add padding to dependency message
Browse files Browse the repository at this point in the history
Without padding it reaches right to the sides of
the app window and looks bad.
  • Loading branch information
Merrit committed Oct 2, 2024
1 parent 6313e29 commit 76b4e1b
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions lib/loading/loading_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,22 @@ class LoadingPage extends StatelessWidget {
builder: (context, state) {
switch (state) {
case LoadingError():
return Card(
child: Container(
padding: const EdgeInsets.all(20.0),
child: MarkdownBody(
data: state.errorMsg,
onTapLink: (text, href, title) {
if (href == null) {
log.e('Broken link: $href');
return;
}
return Padding(
padding: const EdgeInsets.all(16.0),
child: Card(
child: Container(
padding: const EdgeInsets.all(20.0),
child: MarkdownBody(
data: state.errorMsg,
onTapLink: (text, href, title) {
if (href == null) {
log.e('Broken link: $href');
return;
}

AppCubit.instance.launchURL(href);
},
AppCubit.instance.launchURL(href);
},
),
),
),
);
Expand Down

0 comments on commit 76b4e1b

Please sign in to comment.