Giter Club home page Giter Club logo

flutter_calendar_week's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

flutter_calendar_week's Issues

How to switch weeks programmatically?

Good library, but I don't see any way to switch weeks through the controller (like using buttons to do it). Is there any way to do this?
A similar behavior can be added via CalendarWeekController().jumpToDate, but the selected date will change too. This doesn't work.
It would also be cool if it was possible to disable scrolling in the calendar.

How to programmatically select date?

great library, my only issue is that the selected date on the calendar stays always the same even if I refresh the widget. Is there any way to reset the indicator or to programmatically select a date?

Looking fro a way to know the displayed week has changed

Loving the widget - Thanks. I am reasonably new to flutter and would like to understand is there anyway to get a notification when the current week has changed through a UX interaction (user has changed displayed week)

Thanks

parameter showMonth is not working correctly

Regardless of the "showMonth" parameter it will show month in calendar.
In the sources I found that this variable in "_CalendarWeekState" named "monthDisplay" is used for condition, but any waymonth the label will be created at method "_week"

thank you for the update, that works but only after I opened the calendar.

thank you for the update, that works but only after I opened the calendar.
I will try to explain all the steps to reproduce this problem:

  • Open the page with the calendar, today is July 3d.
  • I click on July 4th, the _selectedDate is updated and I can draw my content for July 4th.
  • Close the page with the calendar, reopen it.
  • The _selectedDate is July 3rd (today), but the highlighted date is still July 4th, but without drawing my content for July 4th. The loaded content is for the default _selectedDate, July 3rd.

It looks like it caches the previous click without clearing it when I reload it.

Originally posted by @albert0m in #1 (comment)

Localizations

Is there any way I can make month names and day names localizations and to make the week start with Monday? I really want it to be in the language of the current locale settings on the phone.

I think this might be a great feature.

Thank you for your help!

how to get week dates onweekchanged?

i want to get dates on week changed like from 19-09-2020 to 25-09-2020 in text ,date range i require, so can you pls guide me how can i display in different text??

Set what day the week starts with

Set what day the week starts with

I think the title explains my feature request, but here's some more detail:
Add a parameter to CalendarWeek to set what day the week showing starts with like this:

CalendarWeek(
          controller: _controller,
          height: 100,
          minDate: DateTime.now().add(
            Duration(days: -365),
          ),
          maxDate: DateTime.now().add(
            Duration(days: 365),
          ),
         firstWeekDay: DateTime.monday,
)

So the above code would show the weeks starting mondays.

Calendar disappears with setState

I'm using the onWeekChanged event to add some logic & update some variables and if I use the setState function within this event, the calendar disappears. Firstly I thought it was due to my code, but it doesn't seem.

onWeekChanged: () {
	setState(() {
	  // Even with this empty, the calendar will disappear
	});
},

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.