Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to give height for the date cell ? #825

Open
naveenbarath99 opened this issue Oct 13, 2023 · 7 comments
Open

How to give height for the date cell ? #825

naveenbarath99 opened this issue Oct 13, 2023 · 7 comments
Labels
date range picker Date range picker component waiting for customer Cannot make further progress until the customer responds

Comments

@naveenbarath99
Copy link

naveenbarath99 commented Oct 13, 2023

Hi i'm trying to give height for the date cell but its not taking the height, if it goes for the smaller screen means the height of the cell is decreasing so i need to give fixed height for the Date cell. I'll attach my code also

SfCalendar(
cellBorderColor: whiteColor,
view: CalendarView.month,
controller: controller,
showDatePickerButton: true,
showNavigationArrow: false,
onViewChanged: onViewChanged,
dataSource: calendarDataSource,
monthViewSettings:
MonthViewSettings(showAgenda: true, numberOfWeeksInView: monthOrWeek),
timeSlotViewSettings: const TimeSlotViewSettings(
minimumAppointmentDuration: Duration(minutes: 60)),
onTap: (CalendarTapDetails details) {
if (details.targetElement.name.toString() == 'appointment') {
Navigator.pushNamed(context, calendarEventDetailRoute);
}
},
appointmentBuilder:
(BuildContext context, CalendarAppointmentDetails details) {
return Row(
mainAxisSize: MainAxisSize.max,
children: [
Container(
height: double.infinity,
width: 2,
color: Colors.blue,
),
Container(
width: MediaQuery.of(context).size.width * 0.76,
decoration: BoxDecoration(
color: Colors.blue.withOpacity(0.4),
),
padding: const EdgeInsets.all(5),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
const Text(
"Event name",
style: TextStyle(
color: Colors.white,
),
),
Text(
Utils().getUSDate(details.date.toString()),
style: const TextStyle(
color: Colors.white,
),
),
],
),
),
],
);
},
)

2198bb8c-0093-4787-8560-7c23a2a6ed60

@IndumathiR-1995
Copy link

Hi,

As per the calendar behavior to render the calendar we need 6 rows, using the NumberOfWeeksInView property we can customize it. So that the calendar month cell height will be arranged based on the number of weeks and available height of calendar. Also, using the ShowLeadingAndTrailingDays property we can hide the previous or next month dates. We hope that this information helps you. Please let us know if you need further assistance.

Regards,
Indumathi R

@naveenbarath99
Copy link
Author

naveenbarath99 commented Oct 17, 2023

Hi Team,

Thanks for the reply, when i'm giving numberOfWeeksInView as 1 its taking too much of height but i need as Fixed height of the row. And the event is listing is taking limited space to show if we need to see remaining events means we need to scroll and see.

For your reference i'm attaching the screen shot also below.

simulator_screenshot_-iphone_15_pro_max-_2023-10-17_at_14 41 20_720

Thank you.

@IndumathiR-1995
Copy link

Hi,

We have a KB documentation for adding the custom agenda view in the Flutter Calendar. Please find the documentation from the following link.

KB link:
https://support.syncfusion.com/kb/article/9607/how-to-show-a-custom-agenda-view-in-the-flutter-calendar

We hope that this helps you. Please let us know if you need further assistance.

Regards,
Indumathi R

@SourabhKumar11
Copy link

Hey, I have solved this issue,If u want I can do it for you??please ,let me know do u need any help.

@LavanyaGowtham2021
Copy link
Collaborator

Hi @SourabhKumar11 ,

We have checked your query at our end and as we are not able to understand what your proposing as your requirement, we kindly request you to share us with more information on your requirement in detail along with screenshots/screenrecordings so that it will help us assist you in a better way.

@LavanyaGowtham2021 LavanyaGowtham2021 added waiting for customer Cannot make further progress until the customer responds date range picker Date range picker component labels Feb 14, 2024
@kkalisz
Copy link

kkalisz commented Feb 28, 2024

HI Team any news about the issue?
@IndumathiR-1995 Thanks for sharing that resource it's related to the agenda view, but we would like to know if there is the possibility of having fixed height for day cell.

image

I will be grateful for any suggestions.

Best Regards,
Kamil

@LavanyaGowtham2021 LavanyaGowtham2021 added open Open and need to address and removed waiting for customer Cannot make further progress until the customer responds labels Feb 29, 2024
@ThilipChandru
Copy link

Hi @kkalisz ,

We would like to let you know that currently we don’t have support Customizing the height of the all day panel in SfCalendar. However, we have already considered this as a feature and logged feature request for it in our feedback portal.

We will prioritize the features of every release based on demand and priority. So, this feature will be available in any of our upcoming releases. You can also track the status of the feature with the feedback below.

Feedback link : https://www.syncfusion.com/feedback/44895/providing-a-support-to-customize-the-height-of-the-all-day-panel-in-the-flutter

Regards,
Thilip Chandru.

@LavanyaGowtham2021 LavanyaGowtham2021 added waiting for customer Cannot make further progress until the customer responds and removed open Open and need to address labels Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
date range picker Date range picker component waiting for customer Cannot make further progress until the customer responds
Projects
None yet
Development

No branches or pull requests

6 participants