From 9b63bba853cde726beb1345a316603695e34ee69 Mon Sep 17 00:00:00 2001 From: Juan Gilsanz Polo Date: Mon, 17 Oct 2022 18:32:39 +0200 Subject: [PATCH] Improved log details modal bottom sheet --- lib/screens/logs/log_details_modal.dart | 35 +++++++++++++------------ 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/lib/screens/logs/log_details_modal.dart b/lib/screens/logs/log_details_modal.dart index c7acdb1..51a79a9 100644 --- a/lib/screens/logs/log_details_modal.dart +++ b/lib/screens/logs/log_details_modal.dart @@ -42,26 +42,27 @@ class LogDetailsModal extends StatelessWidget { ), child: Column( children: [ - const Padding( - padding: EdgeInsets.only( - top: 24, - bottom: 20, - ), - child: Icon( - Icons.list_rounded, - size: 26, - ), - ), - Text( - AppLocalizations.of(context)!.logDetails, - style: const TextStyle( - fontSize: 24 - ), - ), Expanded( child: ListView( controller: scrollController, children: [ + const Padding( + padding: EdgeInsets.only( + top: 28, + bottom: 20, + ), + child: Icon( + Icons.list_rounded, + size: 26, + ), + ), + Text( + AppLocalizations.of(context)!.logDetails, + textAlign: TextAlign.center, + style: const TextStyle( + fontSize: 24 + ), + ), Padding( padding: const EdgeInsets.all(20), child: Text( @@ -179,7 +180,7 @@ class LogDetailsModal extends StatelessWidget { subtitle: log.clientInfo!.name ), ], - ) + ), ), Padding( padding: const EdgeInsets.all(20),