VooWeekViewConfig class
Configuration for Week View
Constructors
- VooWeekViewConfig({double? hourHeight, ScrollPhysics? scrollPhysics, bool showTimeLabels = true, double? timeColumnWidth, int firstHour = 0, int lastHour = 24, double eventHeightBuilder(VooCalendarEvent event)?, double minEventHeight = 80.0, ScrollController? scrollController, bool showScrollbar = false, EdgeInsetsGeometry? padding, EdgeInsets? scrollPadding})
-
const
Properties
- eventHeightBuilder → double Function(VooCalendarEvent event)?
-
Builder to determine height for each event.
Receives the event and returns the height in pixels.
If not provided, uses minEventHeight for all events.
final
- firstHour → int
-
First hour to display (0-23)
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hourHeight → double?
-
Custom hour height (default: 60.0)
final
- lastHour → int
-
Last hour to display (0-24, where 24 represents 00:00 of the next day)
final
- minEventHeight → double
-
Minimum height for each event (default: 80.0)
Used as fallback when eventHeightBuilder is not provided
final
- padding → EdgeInsetsGeometry?
-
Padding around the week view content
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollController → ScrollController?
-
External scroll controller for programmatic scrolling
If not provided, an internal controller will be created
final
- scrollPadding → EdgeInsets?
-
Scroll padding for the scrollable area
Adds padding to the scroll viewport edges
final
- scrollPhysics → ScrollPhysics?
-
Custom scroll physics
final
- showScrollbar → bool
-
Whether to show a scrollbar (default: false)
final
- showTimeLabels → bool
-
Show/hide time labels
final
- timeColumnWidth → double?
-
Time column width
final
Methods
-
copyWith(
{double? hourHeight, ScrollPhysics? scrollPhysics, bool? showTimeLabels, double? timeColumnWidth, int? firstHour, int? lastHour, double eventHeightBuilder(VooCalendarEvent event)?, double? minEventHeight, ScrollController? scrollController, bool? showScrollbar, EdgeInsetsGeometry? padding, EdgeInsets? scrollPadding}) → VooWeekViewConfig - Create a copy with modified properties
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited