Skip to content

Commit

Permalink
[live indicator] improve design & fix scroll #68
Browse files Browse the repository at this point in the history
  • Loading branch information
BrightDV committed Mar 5, 2023
1 parent 484caf2 commit 94d0e6f
Showing 1 changed file with 14 additions and 21 deletions.
35 changes: 14 additions & 21 deletions lib/helpers/live_session_status_indicator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -90,24 +90,19 @@ class EventTrackerItem extends StatelessWidget {
event.session5.endTime.isAfter(date))) {
haveRunningSession = true;
}
return Container(
color: Colors.transparent,
child: GestureDetector(
child: Padding(
padding: const EdgeInsets.only(
right: 5,
left: 5,
),
return Padding(
padding: const EdgeInsets.only(bottom: 1),
child: Material(
elevation: 10.0,
color: Colors.transparent,
child: GestureDetector(
child: Container(
height: 135,
decoration: BoxDecoration(
borderRadius: const BorderRadius.only(
topLeft: Radius.zero,
topRight: Radius.zero,
bottomLeft: Radius.circular(15),
bottomRight: Radius.circular(15),
height: 146,
decoration: const BoxDecoration(
borderRadius: BorderRadius.all(
Radius.circular(5),
),
color: useDarkMode ? const Color(0xff1d1d28) : Colors.white,
color: Color(0xff1d1d28),
),
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
Expand Down Expand Up @@ -175,12 +170,10 @@ class EventTrackerItem extends StatelessWidget {
),
SizedBox(
width: double.infinity,
height: 45,
child: ClipRRect(
borderRadius: const BorderRadius.only(
topLeft: Radius.zero,
topRight: Radius.zero,
bottomLeft: Radius.circular(15),
bottomRight: Radius.circular(15),
borderRadius: const BorderRadius.all(
Radius.circular(5),
),
child: ElevatedButton(
onPressed: () => Navigator.push(
Expand Down

0 comments on commit 94d0e6f

Please sign in to comment.