fix UI depend on the new design

This commit is contained in:
Rafeek-Khoudare
2025-07-23 14:08:57 +03:00
parent 15b6d642ff
commit 6f0e83b95b
3 changed files with 29 additions and 38 deletions

View File

@ -26,41 +26,35 @@ class BookingSystemPage extends StatelessWidget {
..add(GetPastBookingsEvent()), ..add(GetPastBookingsEvent()),
) )
], ],
child: DefaultScaffold( child: Padding(
appBar: BookingAppBar(), padding: EdgeInsets.symmetric(horizontal: 10),
child: Padding( child: Column(
padding: EdgeInsets.symmetric(horizontal: 10), crossAxisAlignment: CrossAxisAlignment.start,
child: Column( children: [
crossAxisAlignment: CrossAxisAlignment.start, Expanded(
children: [ flex: 2,
SizedBox( child: CurrentBalanceWidget(
height: 20, userBalance: HomeCubit.user!.points == null
? '0'
: HomeCubit.user!.points.toString(),
), ),
Expanded( ),
flex: 2, SizedBox(
child: CurrentBalanceWidget( height: 20,
userBalance: HomeCubit.user!.points == null ),
? '0' Expanded(
: HomeCubit.user!.points.toString(), flex: 8,
), child: Column(
children: [
UpcomingBookingsWidget(),
SizedBox(
height: 10,
),
PastBookingsWidget(),
],
), ),
SizedBox( )
height: 20, ],
),
Expanded(
flex: 8,
child: Column(
children: [
UpcomingBookingsWidget(),
SizedBox(
height: 10,
),
PastBookingsWidget(),
],
),
)
],
),
), ),
)); ));
} }

View File

@ -10,10 +10,7 @@ class BookingAppBar extends StatelessWidget implements PreferredSizeWidget {
return AppBar( return AppBar(
backgroundColor: Colors.transparent, backgroundColor: Colors.transparent,
centerTitle: true, centerTitle: true,
leading: IconButton( leading: Text(
onPressed: () => Navigator.pop(context),
icon: Icon(Icons.arrow_back_ios_new)),
title: Text(
'Booking', 'Booking',
style: TextStyle( style: TextStyle(
color: ColorsManager.blueColor1, color: ColorsManager.blueColor1,

View File

@ -39,7 +39,7 @@ class PastBookingsWidget extends StatelessWidget {
); );
} else if (state is PastBookingLoadedState) { } else if (state is PastBookingLoadedState) {
return SizedBox( return SizedBox(
height: deviceHeight(context) * 0.3, height: deviceHeight(context) * 0.22,
child: state.pastBookings.isEmpty child: state.pastBookings.isEmpty
? Text('You Dont Have past Bookings') ? Text('You Dont Have past Bookings')
: ListView.separated( : ListView.separated(