Skip to content

Commit

Permalink
Merge pull request #26 from SadeeshaPerera/feature/t-1-bus-tracking-f…
Browse files Browse the repository at this point in the history
…eature

fix: Overflow issues
  • Loading branch information
SadeeshaPerera authored Oct 10, 2024
2 parents ca6ea33 + cb3cd76 commit b78eba0
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class _ConfirmBookingPageState extends State<ConfirmBookingPage> {
SizedBox(height: 20),
Container(
padding:
EdgeInsets.symmetric(horizontal: 16.0, vertical: 12.0),
EdgeInsets.symmetric(horizontal: 10.0, vertical: 12.0),
decoration: BoxDecoration(
border: Border.all(
color: Colors.grey.withOpacity(0.5), width: 2),
Expand Down
4 changes: 2 additions & 2 deletions lib/t-2-bus-booking-feature/pages/seat_selection_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ class _SeatSelectionPageState extends State<SeatSelectionPage> {
padding: const EdgeInsets.symmetric(horizontal: 16.0),
child: Container(
padding: const EdgeInsets.symmetric(
horizontal: 20.0, vertical: 14.0),
horizontal: 10.0, vertical: 14.0),
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(20),
Expand Down Expand Up @@ -208,7 +208,7 @@ class _SeatSelectionPageState extends State<SeatSelectionPage> {
Padding(
padding: const EdgeInsets.symmetric(horizontal: 16.0),
child: Container(
padding: const EdgeInsets.all(10.0),
padding: const EdgeInsets.fromLTRB(5, 20, 5, 30),
decoration: BoxDecoration(
border: Border.all(color: Colors.grey),
borderRadius: BorderRadius.circular(20),
Expand Down
18 changes: 11 additions & 7 deletions lib/t-2-bus-booking-feature/pages/view_ticket_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -131,13 +131,13 @@ class ViewTicketPage extends StatelessWidget {
Text(
'$busNumber',
style: TextStyle(
fontSize: 16, fontWeight: FontWeight.bold),
fontSize: 13, fontWeight: FontWeight.bold),
),
SizedBox(width: 95),
Text(
DateFormat('EEE, dd MMM yyyy').format(selectedDate),
style: TextStyle(
fontSize: 18,
fontSize: 13,
color: Colors.black54,
fontWeight: FontWeight.bold),
),
Expand Down Expand Up @@ -183,7 +183,7 @@ class ViewTicketPage extends StatelessWidget {
),
SizedBox(width: 5),
Container(
width: 45,
width: 15,
child: Divider(
color: Colors.black.withOpacity(0.3),
thickness: 1),
Expand All @@ -198,7 +198,7 @@ class ViewTicketPage extends StatelessWidget {
),
SizedBox(width: 5),
Container(
width: 45,
width: 15,
child: Divider(
color: Colors.black.withOpacity(0.3),
thickness: 1),
Expand Down Expand Up @@ -321,16 +321,20 @@ class ViewTicketPage extends StatelessWidget {
Text(
DateFormat('EEE, dd MMM yyyy, hh:mm a')
.format(createdAt),
style: TextStyle(fontSize: 15),
style: TextStyle(fontSize: 12),
),
],
),




// QR Code using QRServer API
Image.network(
'https://api.qrserver.com/v1/create-qr-code/?size=150x150&data=$bookingId',
width: 120,
height: 120,
width: 50,
height: 50,

),
],
),
Expand Down

0 comments on commit b78eba0

Please sign in to comment.