scheduled_date_picker 1.0.1 scheduled_date_picker: ^1.0.1 copied to clipboard
The scheduled date picker is a set of widgets that allows scheduling date. This can be useful in many scenarios, for scheduled tasks for example.
import 'package:flutter/material.dart';
import 'package:scheduled_date_picker/scheduled_date_picker.dart';
void main() {
runApp(SampleApp());
}
class SampleApp extends StatefulWidget {
@override
State<StatefulWidget> createState() {
return SampleAppState();
}
}
class SampleAppState extends State<SampleApp> {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(title: Text('Sample App')),
body: ScheduledDatePicker(
defaultLocale: 'pt',
onStartDateChanged: (startDate) => print(startDate.toString()),
onEndDateChanged: (endDate) => print(endDate.toString()),
onScheduleDateChanged: (scheduleDate) =>
print(scheduleDate.toString()),
onTypeChanged: (type) => print(type.toString()),
onWeekDaysChanged: (weekDays) =>
print(weekDays.join(', ').toString()),
),
),
);
}
}