DragAndDropSettings class
The settings have properties which allow to customize the drag and drop environment of the SfCalendar.
Allows to customize the allowNavigation, allowScroll, autoNavigateDelay, indicatorTimeFormat, showTimeIndicator and timeIndicatorStyle in the SfCalendar.
See also:
monthViewSettings
, which allows to customize the month view of the calendar.timeSlotViewSettings
, which allows to customize the timeslot view of the calendar.
Widget build(BuildContext context) {
return Scaffold(
body: SfCalendar(
view: CalendarView.month,
showWeekNumber: true,
allowDragAndDrop: true,
dragAndDropSettings: DragAndDropSettings(
allowNavigation: true,
allowScroll: true,
autoNavigateDelay: Duration(seconds: 1),
indicatorTimeFormat: 'HH:mm a',
showTimeIndicator: true,
timeIndicatorStyle: TextStyle(color: Colors.cyan),
),
),
);
}
- Mixed-in types
- Annotations
Constructors
- DragAndDropSettings({bool allowScroll = true, bool showTimeIndicator = true, TextStyle? timeIndicatorStyle, String indicatorTimeFormat = 'h:mm a', })
-
Creates a Drag and Drop settings for calendar.
const
Properties
-
Allows view navigation when the dragging appointment reaches the start or
end position of the view.
final
- allowScroll → bool
-
Allows to scroll the view when the dragging appointment reaches the
view port start or end position in timeslot views.
final
-
The delay to hold the appointment on the view start or end position,
to navigate to next or previous view.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- indicatorTimeFormat → String
-
Allows to format the time indicator text.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showTimeIndicator → bool
-
Displays the time indicator on the time ruler view.
final
- timeIndicatorStyle → TextStyle?
-
Allows to set style for the time indicator text.
final
Methods
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringShort(
) → String -
A brief description of this object, usually just the runtimeType and the
hashCode.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override