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

Calendar should have default height to wrap content #50

Closed
suesitran opened this issue Jan 14, 2019 · 4 comments
Closed

Calendar should have default height to wrap content #50

suesitran opened this issue Jan 14, 2019 · 4 comments
Labels
wontfix This will not be worked on

Comments

@suesitran
Copy link

Version of flutter_calendar_carousel

Version 1.3.7

Expected behavior

CalendarCarousel widget should have wrap_content height if height attribute is not manually set

Actual behavior

when height is not set, CalendarCarousel takes full screen height

flutter doctor result (run flutter doctor in terminal)

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, v1.0.0, on Mac OS X 10.13.6 17G4015, locale en-AU)
[✓] Android toolchain - develop for Android devices (Android SDK 28.0.3)
[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
[✓] Android Studio (version 3.2)
[✓] Connected device (2 available)

• No issues found!

@hyochan hyochan added the wontfix This will not be worked on label Jan 15, 2019
@hyochan
Copy link
Member

hyochan commented Jan 15, 2019

@suesitran I think this should be expected because if you look in the source, this is taking height factor value to set up the calendar widget. It should have an explicit height to correctly size the calendar.

@hyochan hyochan closed this as completed Jan 15, 2019
@suesitran
Copy link
Author

@hyochan I think i should set this as feature request :) because without width/height value, i'm expecting the calendar widget to create the view which take exact space it needs for its view, regardless if the month has 4 weeks or 5 weeks, it'll always assume that the month has 5 weeks, so the height will be adjusted to cover just enough 5 weeks calendar, and default value for width is that it'll cover just enough for 7 days.

@aqibgatoo
Copy link

I think this is much needed because for months with less weeks it shows empty space ..which make the whole ui bad ..the it should have wrap height which prevents creation of empty spaces.

@suztomo
Copy link

suztomo commented Jul 19, 2020

I encountered this need when I was testing the proper height value. For iOS, height: 290 works fine. When I tried with iPad, the height 290 is too small.

Screenshots

iPhone 8

calendar_iphone8

iPad

calendar_ipad

Workaround

I can implement workaround to adjust the height value depending on the display,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

4 participants