chore: update readme and add a gif showcasing the userstory

This commit is contained in:
Freek van de Ven 2024-07-29 11:46:53 +02:00 committed by Freek van de Ven
parent 12bde64117
commit fd2a8e8867
2 changed files with 22 additions and 1 deletions

View file

@ -1,6 +1,13 @@
# flutter_availability # flutter_availability
This package tries to create an all encompassing implementation for handling time availability use cases. This package creates an all encompassing implementation for handling time availability use cases. By Default this package runs with a local data implementation that does not persist data. You can add your own implementation by implementing the AvailabilityDataInterface.
All configuration of the userstory is done through the AvailabilityOptions class.
![Flutter Availability GIF](availability.gif)
Figma Design that defines this component (only accessible for Iconica developers): TO BE CREATED
Figma clickable prototype that demonstrates this component (only accessible for Iconica developers): TO BE CREATED
## Setup ## Setup
@ -14,6 +21,20 @@ To use this package, add flutter_availability as a dependency in your pubspec.ya
ref: 1.0.0 ref: 1.0.0
``` ```
You can start the userstory by adding the availability widget like this to your widget tree:
```dart
AvailabilityUserStory(
userId: "userIdOfTheUser",
options: AvailabilityOptions(),
),
```
There is also a function for pushing the availability screen to the navigation stack:
```dart
openAvailabilitiesForUser(context, "userIdOfTheUser", AvailabilityOptions());
```
## Issues ## Issues
Please file any issues, bugs or feature request as an issue on our [GitHub](https://github.com/Iconica-Development/flutter_availability) page. Commercial support is available if you need help with integration with your app or services. You can contact us at [support@iconica.nl](mailto:support@iconica.nl). Please file any issues, bugs or feature request as an issue on our [GitHub](https://github.com/Iconica-Development/flutter_availability) page. Commercial support is available if you need help with integration with your app or services. You can contact us at [support@iconica.nl](mailto:support@iconica.nl).

BIN
availability.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 MiB