A Flutter/Dart package to fetch available reservation slots and book appointments via any REST API with minimal boilerplate. Simply supply your own model classes and JSON converters—reservation_fox handles the networking, repository pattern, and Bloc/Cubit state management for you.
Features
- Fetch slots: GET available days and times from
/slotsendpoint. - Book slots: POST reservation data to
/bookendpoint. - Generic models: Plug in your own
T.fromJsonandR.fromJsonconverters. - State management: Built‑in
GenericCubit<T,R>with loading/success/failure states. - DI‑ready: Works seamlessly with GetIt, Provider, or any other injector.
- Example app: See
/examplefolder for a full Flutter UI demonstration.
Getting started
- Add dependency
In your app’spubspec.yaml:dependencies: reservation_fox: ^0.1.0