show static method
Future<PeriodDateRange?>
show({
- required BuildContext context,
- PeriodDateType initialType = PeriodDateType.day,
- DateTime? initialStartDate,
- DateTime? initialEndDate,
- DateTime? firstDate,
- DateTime? lastDate,
- bool canChangeType = false,
Show the period date picker as a dialog
Implementation
static Future<PeriodDateRange?> show({
required BuildContext context,
PeriodDateType initialType = PeriodDateType.day,
DateTime? initialStartDate,
DateTime? initialEndDate,
DateTime? firstDate,
DateTime? lastDate,
bool canChangeType = false,
}) {
return showDialog<PeriodDateRange>(
context: context,
builder: (BuildContext context) {
return Dialog(
backgroundColor: Colors.transparent,
child: PeriodDatePicker(
initialType: initialType,
initialStartDate: initialStartDate,
initialEndDate: initialEndDate,
firstDate: firstDate,
lastDate: lastDate,
canChangeType: canChangeType,
),
);
},
);
}