Center readme

This commit is contained in:
Balazs Toldi 2022-05-15 22:38:22 +02:00
parent 3a1acc7794
commit 96b41f8fcd
Signed by: Bazsalanszky
GPG key ID: 6C7D440036F99D58

View file

@ -142,17 +142,19 @@ class _RepoHome extends State<RepoHome> {
var file = snapshot.data!;
final content = utf8.decode(base64.decode(file.content!));
return SizedBox(
width: (media.width > 600)
? media.width * 0.6
: media.width * 0.9,
return Center(
child: SizedBox(
width: (media.width > 600)
? media.width * 0.6
: media.width * 0.9,
height: media.height - padding.top - padding.bottom -kToolbarHeight -kBottomNavigationBarHeight-30,
child: Column(
children: [
Expanded(child: Markdown(selectable: true, data: content)),
],
));
height: media.height - padding.top - padding.bottom -kToolbarHeight -kBottomNavigationBarHeight-30,
child: Column(
children: [
Expanded(child: Markdown(selectable: true, data: content)),
],
)),
);
} else {
return const Center(
child: CircularProgressIndicator(),