Minor changes to readme size

This commit is contained in:
Bazsalanszky 2022-05-15 19:38:15 +02:00
parent 182588e7ae
commit ae9b173742
Signed by: Bazsalanszky
GPG key ID: B40814F4EFE23F96

View file

@ -120,12 +120,12 @@ class _RepoHome extends State<RepoHome> {
@override
Widget build(BuildContext context) {
final media = MediaQuery.of(context).size;
final padding = MediaQuery.of(context).viewPadding;
return Column(children: [
Text(
/*Text(
widget.repo.fullName!,
style: Theme.of(context).textTheme.headline3,
),
),*/
FutureBuilder<RepoFile>(
future: readmeRequest,
builder: (context, snapshot) {
@ -142,14 +142,16 @@ class _RepoHome extends State<RepoHome> {
var file = snapshot.data!;
final content = utf8.decode(base64.decode(file.content!));
return SingleChildScrollView(
child: Center(
child: SizedBox(
width: (media.width > 600)
? media.width * 0.6
: media.width * 0.9,
height: media.height * 0.7,
child: Markdown(selectable: true, data: content)),
return 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)),
],
));
} else {
return const Center(
@ -308,7 +310,7 @@ class _RepoIssues extends State<RepoIssues> {
appBar: PreferredSize(
preferredSize: const Size.fromHeight(kToolbarHeight),
child: Container(
color: Colors.lightGreen, ,
color: Colors.lightGreen,
child: SafeArea(
child: Column(
children: <Widget>[