Center readme
This commit is contained in:
parent
3a1acc7794
commit
96b41f8fcd
1 changed files with 12 additions and 10 deletions
|
@ -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(),
|
||||
|
|
Loading…
Reference in a new issue