periodic

Last updated:

0 purchases

periodic Image
periodic Images
Add to Cart

Description:

periodic

periodic #
A periodic widget (and dialog) to choose a recurring pattern.








Getting Started #
Add the dependency:
dependencies:
flutter:
sdk: flutter
periodic: ^1.0.0+1
copied to clipboard
Periodic Widget #
Create a new periodic widget:
@override
Widget build(BuildContext context) {
return Periodic();
}
copied to clipboard
To get result, you must pass a PeriodicController to the widget.
final _controller = PeriodicController()
...

Widget build(BuildContext context) {
return Periodic(
controller: _controller,
);
}
...

print(_controller.current);
copied to clipboard
Configuration
You can pass a PeriodicConfig to the widget to modify how it looks.
Widget build(BuildContext context) {
return Periodic(
config: PeriodicConfig(
frequencyMenuColor: Colors.blue,
weekConfig: PeriodicItemConfig(
selectedColor: Colors.blue,
unselectedColor: Colors.white
)
),
);
}
copied to clipboard
Periodic dialog #
A custom dialog that has a Periodic widget as content.
showPeriodicDialog(context)
copied to clipboard
As any other Dialog, returns a Future with a PeriodicData.
final data = showPeriodicDialog(context);
print(data); // PeriodicData
copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.