-
Notifications
You must be signed in to change notification settings - Fork 25
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
Bottom overflow issue, when both English and Nepali dates are in view, in the calendar header fixed #15
base: master
Are you sure you want to change the base?
Conversation
rojanshr1996
commented
May 16, 2023
•
edited
Loading
edited
- Bottom overflow issue, when both English and Nepali dates are in view, was fixed by commenting out the static height (_kDayPickerRowHeight) given to the header row widget.
- Custom subtitle text style added for the English subtitle date in the calendar header (month/month-year).
…RowHeight commented out to remove the bottom overflow erorr in the calendar header
@rojanshr1996 Great work on the PR, please can you do the following things
Thank you |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some small quality of life improvements suggestion. Also make sure code is properly formated. You can use dart format lib
command if not sure.
@@ -21,6 +21,9 @@ class HeaderStyle { | |||
/// Style for title Text (month-year) displayed in header. | |||
final TextStyle titleTextStyle; | |||
|
|||
/// Style for subtitle Text (month/month - year) displayed in header. | |||
final TextStyle subTitleTextStyle; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
subTitle
should be subtitle
instead
@@ -1,8 +1,7 @@ | |||
part of clean_nepali_calendar; | |||
|
|||
typedef HeaderDayBuilder = Widget Function(String headerName, int dayNumber); | |||
|
|||
const double _kDayPickerRowHeight = 40.0; | |||
const double _kDayPickerRowHeight = 52.0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May be we should different value for when both dates are visible and when only nepali date is visible?