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
    

Libraries

reservation_fox