From 11e3301c1ecde90cfaea81c79b310cb47bc4b8ea Mon Sep 17 00:00:00 2001 From: Nicolas Gruber Date: Thu, 19 Jan 2023 14:55:29 +0100 Subject: [PATCH] =?UTF-8?q?SingleChildScrollView=20eingebaut=20um=20auf=20?= =?UTF-8?q?der=20detailpage=20das=20scrollen=20zu=20erm=C3=B6glichen.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/DetailPage.dart | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/lib/DetailPage.dart b/lib/DetailPage.dart index 5f5b7e2..11b775d 100644 --- a/lib/DetailPage.dart +++ b/lib/DetailPage.dart @@ -18,6 +18,35 @@ class DetailPage extends StatelessWidget { appBar: AppBar( title: Text(title), ), + body: SingleChildScrollView( + child: Column( + children: [ + Container( + padding: const EdgeInsets.all(8.0), + child: image, + ), + Container( + padding: const EdgeInsets.all(8.0), + child: Text( + title, + style: const TextStyle( + fontSize: 24, + ), + ), + ), + Container( + padding: const EdgeInsets.all(8.0), + child: Text( + description, + style: const TextStyle( + fontSize: 18, + ), + ), + ), + ], + ), + ), + /* body: Column( children: [ Container( @@ -43,7 +72,7 @@ class DetailPage extends StatelessWidget { ), ), ], - ), + ),*/ ); } }