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(),