Skip to content

Commit 76b4e1b

Browse files
committed
fix: add padding to dependency message
Without padding it reaches right to the sides of the app window and looks bad.
1 parent 6313e29 commit 76b4e1b

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

lib/loading/loading_page.dart

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,22 @@ class LoadingPage extends StatelessWidget {
3030
builder: (context, state) {
3131
switch (state) {
3232
case LoadingError():
33-
return Card(
34-
child: Container(
35-
padding: const EdgeInsets.all(20.0),
36-
child: MarkdownBody(
37-
data: state.errorMsg,
38-
onTapLink: (text, href, title) {
39-
if (href == null) {
40-
log.e('Broken link: $href');
41-
return;
42-
}
33+
return Padding(
34+
padding: const EdgeInsets.all(16.0),
35+
child: Card(
36+
child: Container(
37+
padding: const EdgeInsets.all(20.0),
38+
child: MarkdownBody(
39+
data: state.errorMsg,
40+
onTapLink: (text, href, title) {
41+
if (href == null) {
42+
log.e('Broken link: $href');
43+
return;
44+
}
4345

44-
AppCubit.instance.launchURL(href);
45-
},
46+
AppCubit.instance.launchURL(href);
47+
},
48+
),
4649
),
4750
),
4851
);

0 commit comments

Comments
 (0)