fabiofiuza / scrollable_clean_calendar Goto Github PK
View Code? Open in Web Editor NEWA calendar with vertical scroll
License: MIT License
A calendar with vertical scroll
License: MIT License
Create a documentation for new contributors Know how to create a Pull Request for this Repo.
Is there a problem when selecting dates between months? When selecting a date for example January 20th to February 20th, the color of the range is not maintained. Any suggestion on how to resolve?
I want to set a manual to disable date is it possible? if possible how?
Thanks for the great library.
When I change the 'startWeekDay' to DateTime.sunday, only Sunday date be shown, others invisible.
I tried to change all days of the week as the start day, but only Monday is ok.
I used the sample of this git(basic version).
If you need data or something from me, plz let me know.
Thanks in advance.
_buildMonthLabelRow should concatenate two date formats to be valid for all locales:
scrollable_clean_calendar/lib/scrollable_clean_calendar.dart
Lines 329 to 333 in e7f0473
should be:
DateFormat('MMMM', widget.locale).format(DateTime(month.year, month.month)).capitalize() + ' ' + DateFormat('yyyy', widget.locale).format(DateTime(month.year, month.month))
otherwise when language has more complex variation by cases it will display inappropriate value.
eg. October 2021
in Polish is currently displayed as Października 2021
and it should be Październik 2021
This package has very clean and simple beautiful implementations. i just need the feature to disable the dates which are already booked.
Cloud add initial focus date ?
Like minimum date time is 2000.1.1, but i want focus on today in first time.
Hello good morning, how do I disable the calendar scrool? I would like to have only one calendar displayed on the screen. If you have an example even better. Thank you very much
I am Looking for Month Format Like This "May, 2022"
With the new major release version (1.0.0), we didn't do a good coverage test.
So it is good to work on the test coverage to improve it.
Will multiple selection be added later?
Hi, I love this package cuz its conviniet and we can customize well.
One thing.
I have issue and want to suggest that month header will be able to show month and year opposite style.
defalut
=> 2月 2023年
hope
=> 2023年 2月
Defalut expression is not fine in Japanese. So if we can use Widget like this , it will be great.
ScrollableCleanCalendar(
monthHeader : MonthHeader.monthAndYear
monthHeader : MonthHeader.yearAndMonth
)
I know there is dayBuilder, but it will be more usefull.
please consider it. thank you.
dai10512
I think a nice to have could be add a variable to convert calendar into a read-only widget.
It's possible to add widgets besides the calendar? I want to add a container above the calendar and a button, but when I try to implement it, I get an error.
Hi,
Can specific days after the current date be deactivated?
Can you give me a tip on how to show only the name of the month? Instead of January 2022 I wanted to show only January
Is it correct that the calendar rebuilds its daybuilder each time it runs onDayTapped?
calendarController = CleanCalendarController(
//minDate: DateTime.now(),
//maxDate: DateTime.now().add(const Duration(days: 365)),
minDate: DateTime(2021, 9, 2),
maxDate: DateTime(2022, 3, 1),
onRangeSelected: (firstDate, secondDate) {},
onDayTapped: (date) {
print("Clean Calendar: " + date.toString());
...
ScrollableCleanCalendar(
locale: language,
scrollController: _controller,
calendarController: calendarController,
layout: Layout.DEFAULT,
calendarCrossAxisSpacing: 0,
dayBuilder: (context, values) {
print("values day: " + values.day.toString());
This takes very long because it rebuilds all the days from scratch. II think it is not so good for the performance.
We use the calendar inside a sliding sheet with a jumpTo(offset) with the previous scrollController. It's generic to other components and we need to keep the scrollController. Is it possible to make it optional again ?
CleanCalendarController get calendarController => CleanCalendarController(
minDate: DateTime.now(),
maxDate: DateTime.now().add(const Duration(days: 32)),
onDayTapped: (d) {
read.onChangedDateMain(d); <<<<<<<<<<<<<<<<<<calling method
log('${d.timeZoneOffset.inHours}');
},
rangeMode: false,
weekdayStart: DateTime.monday,
);
void onChangedDateMain(DateTime date) {
final formated = DateFormat('d MMMM,EEEE', 'en').format(date);
choosedDateMain = formated;
notifyListeners();
}
how to scroll to specific day or month?
Hello,
I would like to submit a pull request with several new features:
Thank you.
How can I set the initial date and scroll to it?
If I have
minDate: DateTime(2010, 10, 1),
maxDate: DateTime(2030, 3, 1),
how can I scroll to DateTime.now() ?
Maybe it could work with scrollController. But jumpTo is not working because the months have an individual height.
Do you have a minimal example how this can be done?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.