From 96b41f8fcd3b2822f2d2ec0aa3e10247f1a0804c Mon Sep 17 00:00:00 2001 From: Balazs Toldi Date: Sun, 15 May 2022 22:38:22 +0200 Subject: [PATCH] Center readme --- lib/widget/repo_overview.dart | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/lib/widget/repo_overview.dart b/lib/widget/repo_overview.dart index c971063..dced1b7 100644 --- a/lib/widget/repo_overview.dart +++ b/lib/widget/repo_overview.dart @@ -142,17 +142,19 @@ class _RepoHome extends State { 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(),