flutter_calendar icon indicating copy to clipboard operation
flutter_calendar copied to clipboard

How to make Calendar Reverse Display

Open wmq911 opened this issue 6 years ago • 7 comments

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

@pinkfish , @Eimji

wmq911 avatar Feb 15 '19 13:02 wmq911

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?

robert-stevens avatar Feb 15 '19 13:02 robert-stevens

@robert-stevens ,

First of all, thanks you for your reply

both

wmq911 avatar Feb 15 '19 15:02 wmq911

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 [email protected] 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 .

pinkfish avatar Feb 15 '19 19:02 pinkfish

@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

wmq911 avatar Feb 16 '19 05:02 wmq911

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

Eimji avatar Feb 21 '19 08:02 Eimji

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)

Eimji avatar Feb 21 '19 10:02 Eimji

@Eimji thanks

wmq911 avatar Feb 21 '19 15:02 wmq911