pinkfish / flutter_calendar

Calendar widget for flutter
BSD 2-Clause "Simplified" License
243 stars 40 forks source link

How to make Calendar Reverse Display #14

Open wmq911 opened 5 years ago

wmq911 commented 5 years ago

Thank you for the plug-in, but how can I reverse the calendar? Can you give me some tips?

@pinkfish , @Eimji

robert-stevens commented 5 years ago

Hi @wmq911

Do you mean instead of going chronologically by month, e.g. Jan, Feb, March, you want it to go from March, Feb, Jan?

Or do you mean by day, e.g. 1,2,3 to 3,2,1?

Or both?

wmq911 commented 5 years ago

@robert-stevens ,

First of all, thanks you for your reply

both

pinkfish commented 5 years ago

Ahh, that might be possible. I will take a look. More complicated than it sounds though :)

On Fri, 15 Feb 2019 at 07:05, wmq911 notifications@github.com wrote:

@robert-stevens https://github.com/robert-stevens

First of all, thanks you for your reply

Now the calendar,

top to bottom :2018,2019,2020,2021

I want to change it :2021,2020,2019,2018.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/pinkfish/flutter_calendar/issues/14#issuecomment-464082115, or mute the thread https://github.com/notifications/unsubscribe-auth/ACbmMSYYZZZ2gRrMs46XQv6sKYKwowHLks5vNszAgaJpZM4a9o8m .

wmq911 commented 5 years ago

@pinkfish

I want to use this plugin to make a timeline, some parts have been implemented, but do not know how to adjust the calendar sort

Eimji commented 5 years ago

@pinfish I think it is better to use PageView instead of Dissmissible, so we may use reverse: true. I will have a try.

Eimji commented 5 years ago

ok, I made changes to use PageView instead of Dissmissible for the monthHeader (I will make a pull request later). To have the reverse order as asked by wmq91, just use reverse: true in PageView and also maybe in the sliver list for the events (may need some little modifications on this sliver list). (I won't do the changes, but only give you, wmq911, hints to change the code)

wmq911 commented 5 years ago

@Eimji thanks