improvements

main_design2.0
Sikander Saleem 2 years ago
parent 5eb1ab2755
commit d813c29802

@ -68,6 +68,8 @@ class AllRequestsProvider extends ChangeNotifier {
if (response.statusCode >= 200 && response.statusCode < 300) {
allRequestsAndCount = AllRequestsAndCount.fromJson(json.decode(response.body)["data"]);
notifyListeners();
} else {
allRequestsAndCount =null;
}
isAllLoading = false;
notifyListeners();

@ -34,18 +34,18 @@ class _CalendarPageState extends State<CalendarPage> with SingleTickerProviderSt
crossAxisAlignment: CrossAxisAlignment.start,
children: [
// todo @sikander, hiding My shift view, later when they add data, then will us it.
SizedBox(
width: double.infinity,
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
context.translation.myShift.heading5(context),
8.height,
context.translation.sunToThurs.bodyText(context),
"09:00 to 18:00".bodyText(context).custom(color: context.isDark ? AppColor.neutral10 : AppColor.neutral50),
],
).toShadowContainer(context),
).paddingOnly(start: 16, end: 16),
// SizedBox(
// width: double.infinity,
// child: Column(
// crossAxisAlignment: CrossAxisAlignment.start,
// children: [
// context.translation.myShift.heading5(context),
// 8.height,
// context.translation.sunToThurs.bodyText(context),
// "09:00 to 18:00".bodyText(context).custom(color: context.isDark ? AppColor.neutral10 : AppColor.neutral50),
// ],
// ).toShadowContainer(context),
// ).paddingOnly(start: 16, end: 16),
16.height,
Container(
margin: const EdgeInsets.only(left: 16, right: 16),

Loading…
Cancel
Save