|
|
|
@ -31,7 +31,7 @@ class _WeeklyCalendarFragmentState extends State<WeeklyCalendarFragment> {
|
|
|
|
crossAxisCount: 7,
|
|
|
|
crossAxisCount: 7,
|
|
|
|
childAspectRatio: 60 / 80,
|
|
|
|
childAspectRatio: 60 / 80,
|
|
|
|
crossAxisSpacing: 4,
|
|
|
|
crossAxisSpacing: 4,
|
|
|
|
mainAxisSpacing: 4,
|
|
|
|
// mainAxisSpacing: 4,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
itemCount: weekDates.length,
|
|
|
|
itemCount: weekDates.length,
|
|
|
|
itemBuilder: (context, index) {
|
|
|
|
itemBuilder: (context, index) {
|
|
|
|
@ -88,21 +88,17 @@ class _WeeklyCalendarFragmentState extends State<WeeklyCalendarFragment> {
|
|
|
|
return GestureDetector(
|
|
|
|
return GestureDetector(
|
|
|
|
onTap: isLoading ? null : onSelect,
|
|
|
|
onTap: isLoading ? null : onSelect,
|
|
|
|
child: Column(
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
|
|
|
|
children: [
|
|
|
|
|
|
|
|
8.height,
|
|
|
|
|
|
|
|
Column(
|
|
|
|
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: 7.toScreenWidth, vertical: 14.toScreenHeight),
|
|
|
|
padding: EdgeInsets.symmetric(vertical: 18.toScreenHeight),
|
|
|
|
width: double.infinity,
|
|
|
|
width: double.infinity,
|
|
|
|
decoration: ShapeDecoration(
|
|
|
|
decoration: ShapeDecoration(
|
|
|
|
color: AppColor.background(context),
|
|
|
|
color: AppColor.background(context),
|
|
|
|
shape: RoundedRectangleBorder(
|
|
|
|
shape: RoundedRectangleBorder(
|
|
|
|
borderRadius: BorderRadius.circular(10),
|
|
|
|
borderRadius: BorderRadius.circular(10),
|
|
|
|
side: isSelected
|
|
|
|
side: isSelected
|
|
|
|
? const BorderSide(color: AppColor.primary10, width: 2) // Blue border if selected
|
|
|
|
? const BorderSide(color: AppColor.primary10, width: 1.5) // Blue border if selected
|
|
|
|
: BorderSide.none,
|
|
|
|
: BorderSide.none,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
shadows: [
|
|
|
|
shadows: [
|
|
|
|
@ -134,8 +130,6 @@ class _WeeklyCalendarFragmentState extends State<WeeklyCalendarFragment> {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|