mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-08-25 20:49:40 +00:00
fix UI depend on the new design
This commit is contained in:
@ -26,16 +26,11 @@ class BookingSystemPage extends StatelessWidget {
|
|||||||
..add(GetPastBookingsEvent()),
|
..add(GetPastBookingsEvent()),
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
child: DefaultScaffold(
|
|
||||||
appBar: BookingAppBar(),
|
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: EdgeInsets.symmetric(horizontal: 10),
|
padding: EdgeInsets.symmetric(horizontal: 10),
|
||||||
child: Column(
|
child: Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
SizedBox(
|
|
||||||
height: 20,
|
|
||||||
),
|
|
||||||
Expanded(
|
Expanded(
|
||||||
flex: 2,
|
flex: 2,
|
||||||
child: CurrentBalanceWidget(
|
child: CurrentBalanceWidget(
|
||||||
@ -61,7 +56,6 @@ class BookingSystemPage extends StatelessWidget {
|
|||||||
)
|
)
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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,
|
||||||
|
@ -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(
|
||||||
|
Reference in New Issue
Block a user