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

Bottom overflow issue, when both English and Nepali dates are in view, in the calendar header fixed #15

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

rojanshr1996
Copy link

@rojanshr1996 rojanshr1996 commented May 16, 2023

  • 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).

Rojan Shrestha added 2 commits May 16, 2023 12:27
@rojanshr1996 rojanshr1996 changed the title Bottom overflow issue in the calendar header fixed Bottom overflow issue when both english and nepali date are in view in the calendar header fixed May 16, 2023
@rojanshr1996 rojanshr1996 changed the title Bottom overflow issue when both english and nepali date are in view in the calendar header fixed Bottom overflow issue, when both English and Nepali dates are in view, in the calendar header fixed May 16, 2023
@lohanidamodar
Copy link
Owner

@rojanshr1996 Great work on the PR, please can you do the following things

  1. Post before and after screenshot of the change
  2. resolve the conflict (some typo were fixed)

Thank you

Copy link
Owner

@lohanidamodar lohanidamodar left a 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;
Copy link
Owner

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;
Copy link
Owner

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants