-
Notifications
You must be signed in to change notification settings - Fork 273
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
🐛 fix: issue #62 #70
🐛 fix: issue #62 #70
Conversation
lib/src/day_view/day_view.dart
Outdated
@@ -360,6 +349,77 @@ class DayViewState<T> extends State<DayView<T>> { | |||
} | |||
} | |||
|
|||
void _updateViewDimensions() { | |||
_width = widget.width ?? MediaQuery.of(context).size.width; | |||
assert(_width != 0, "Calendar width can not be 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.
should assert post class constructor so it can prevent user from future breaking changes.
lib/src/day_view/day_view.dart
Outdated
assert(_width != 0, "Calendar width can not be 0."); | ||
|
||
_timeLineWidth = widget.timeLineWidth ?? _width * 0.13; | ||
assert(_timeLineWidth != 0, "Time line width can not be 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.
same
offset: 5 + widget.verticalLineOffset, | ||
); | ||
|
||
assert(_liveTimeIndicatorSettings.height < _hourHeight, |
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.
same
90383a5
to
a771ae0
Compare
@@ -31,5 +31,6 @@ class CalendarControllerProvider<T> extends InheritedWidget { | |||
} |
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.
changelog is update is missing.
a771ae0
to
863ebf7
Compare
863ebf7
to
c5099f5
Compare
Override didUpdateWidget method to update parameters on widget change.