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) { if (response.statusCode >= 200 && response.statusCode < 300) {
allRequestsAndCount = AllRequestsAndCount.fromJson(json.decode(response.body)["data"]); allRequestsAndCount = AllRequestsAndCount.fromJson(json.decode(response.body)["data"]);
notifyListeners(); notifyListeners();
} else {
allRequestsAndCount =null;
} }
isAllLoading = false; isAllLoading = false;
notifyListeners(); notifyListeners();

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

Loading…
Cancel
Save