Minor changes to readme size
This commit is contained in:
parent
182588e7ae
commit
ae9b173742
1 changed files with 14 additions and 12 deletions
|
@ -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>[
|
||||
|
|
Loading…
Reference in a new issue