diff --git a/lib/services/repositories/bookings_repository.dart b/lib/services/repositories/bookings_repository.dart index 1e19dc5..2efca26 100644 --- a/lib/services/repositories/bookings_repository.dart +++ b/lib/services/repositories/bookings_repository.dart @@ -82,8 +82,8 @@ class BookingsRepository { endpoint: ApiEndpoint.bookings(BookingEndpoint.SHOWS, id: showId), cancelToken: _cancelToken, converter: (responseBody) { - return responseBody['booked_seats'].map((JSON seat) { - return SeatModel.fromJson(seat); + return responseBody['booked_seats'].map((dynamic seat) { + return SeatModel.fromJson(seat as JSON); }).toList() as List; }, ); diff --git a/lib/views/widgets/user_bookings/booking_details_dialog.dart b/lib/views/widgets/user_bookings/booking_details_dialog.dart index bcf572b..4892602 100644 --- a/lib/views/widgets/user_bookings/booking_details_dialog.dart +++ b/lib/views/widgets/user_bookings/booking_details_dialog.dart @@ -1,3 +1,5 @@ +import 'dart:ui'; + import 'package:flutter/material.dart'; //Helpers @@ -48,12 +50,6 @@ class BookingDetailsDialog extends StatelessWidget { Expanded( child: Material( color: Constants.scaffoldColor, - shape: const RoundedRectangleBorder( - borderRadius: BorderRadius.only( - bottomRight: Radius.circular(20), - bottomLeft: Radius.circular(20), - ), - ), child: Padding( padding: const EdgeInsets.fromLTRB(15, 12, 15, 0), child: Column( @@ -120,8 +116,8 @@ class BookingDetailsDialog extends StatelessWidget { decoration: const BoxDecoration( color: Constants.primaryColor, borderRadius: BorderRadius.only( - bottomLeft: Radius.circular(10), - bottomRight: Radius.circular(10), + bottomLeft: Radius.circular(20), + bottomRight: Radius.circular(20), ), ), child: const Icon(