|
|
|
|
@ -58,15 +58,15 @@ class _MonthlyFragmentState extends State<MonthlyFragment> {
|
|
|
|
|
lastDate: _lastDate,
|
|
|
|
|
initialDatePickerMode: DatePickerMode.year,
|
|
|
|
|
);
|
|
|
|
|
await snapshot.getCalenderRequests(from: DateTime(result.year, result.month), to: DateTime.now());
|
|
|
|
|
if (result != null) {
|
|
|
|
|
await snapshot.getCalenderRequests(from: DateTime(result.year, result.month), to: DateTime.now());
|
|
|
|
|
_initialDate = result;
|
|
|
|
|
setState(() {});
|
|
|
|
|
}
|
|
|
|
|
}),
|
|
|
|
|
dowBuilder: (context, dateTime) {
|
|
|
|
|
final day = DateFormat("EE", context.isAr ? "ar" : "en").format(dateTime).toUpperCase();
|
|
|
|
|
return Align(alignment: Alignment.center, child: day.bodyText(context).custom(color: context.isDark? AppColor.neutral10 : AppColor.neutral50));
|
|
|
|
|
return Align(alignment: Alignment.center, child: day.bodyText(context).custom(color: context.isDark ? AppColor.neutral10 : AppColor.neutral50));
|
|
|
|
|
},
|
|
|
|
|
defaultBuilder: (context, dateTime, _) {
|
|
|
|
|
final day = DateFormat("d").format(dateTime);
|
|
|
|
|
|