From d7d1fccb42424c11e6a716558ac63fd633c9f3a4 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Thu, 18 Aug 2022 10:31:13 +0200 Subject: responsive --- lib/widgets/agenda_week_item.dart | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'lib/widgets/agenda_week_item.dart') diff --git a/lib/widgets/agenda_week_item.dart b/lib/widgets/agenda_week_item.dart index 20d237b..10ccba7 100644 --- a/lib/widgets/agenda_week_item.dart +++ b/lib/widgets/agenda_week_item.dart @@ -287,6 +287,15 @@ class _ExerciseEntryState extends State { 20; // padding double widthOfShiftType = remaining; + Widget shiftData = Container( + child: Text( + '| ' + shiftTypeName, + ), + width: widthOfShiftType); + if (widthOfShiftType < 50) { + shiftData = Padding(padding: const EdgeInsets.all(0)); + } + return Padding( padding: const EdgeInsets.only(bottom: 8, left: 10, right: 10), child: Container( @@ -350,12 +359,7 @@ class _ExerciseEntryState extends State { width: widthOfDates, ), ), - Container( - child: Text( - '| ' + shiftTypeName, - ), - width: widthOfShiftType, - ), + shiftData, Container( child: Align( child: startShiftWidget, -- cgit v1.2.3-70-g09d2