You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
461 B
24 lines
461 B
part of ansu_ui;
|
|
|
|
class RangeDate {
|
|
DateTime start;
|
|
DateTime end;
|
|
RangeDate({
|
|
this.start,
|
|
this.end,
|
|
});
|
|
}
|
|
|
|
///返回值为`bool`且为`true`时,为一小时内
|
|
///
|
|
///否则返回`RangeDate`
|
|
Future<dynamic> show2DatePicker(BuildContext context,
|
|
{bool isAnHour, RangeDate date}) async {
|
|
return await showModalBottomSheet(
|
|
context: context,
|
|
builder: (context) {
|
|
return AS2DatePicker(isAnHour:isAnHour,date:date);
|
|
},
|
|
);
|
|
}
|