reservation_fox 0.1.0 copy "reservation_fox: ^0.1.0" to clipboard
reservation_fox: ^0.1.0 copied to clipboard

Generic reservation package with pluggable models and Cubit.

Pub Version
Pub Points
Popularity

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 /slots endpoint.
  • Book slots: POST reservation data to /book endpoint.
  • Generic models: Plug in your own T.fromJson and R.fromJson converters.
  • 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 /example folder for a full Flutter UI demonstration.

Getting started #

  1. Add dependency
    In your app’s pubspec.yaml:
    dependencies:
      reservation_fox: ^0.1.0
    
1
likes
120
points
7
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Generic reservation package with pluggable models and Cubit.

Homepage

License

unknown (license)

Dependencies

bloc, dio, equatable, flutter

More

Packages that depend on reservation_fox