bus_seat_plan 2.0.1
bus_seat_plan: ^2.0.1 copied to clipboard
A Flutter package for managing bus seat layouts and seat selection.
2.0.0 MAJOR REFACTOR #
This release is a complete overhaul of the package, introducing a more robust, intuitive, and maintainable API.
BREAKING CHANGES #
- The entire
BusSeatPlanWidgethas been refactored and is now aStatefulWidgetfor better performance. - The data models have been redesigned.
SeatPlanModalandBookedSeatModalare replaced by the immutableSeatandBookedSeatclasses. - The
clickSeatcallback has been renamed toonSeatSelectand now uses theValueChanged<Seat>signature. - The
blockedSeatsparameter is nowdisabledSeats. - The
prefixparameter has been removed. TheseatNoBuilderis now the sole method for generating seat numbers. - The
callBackSelectedSeatCannotBuyparameter has been removed. Disabled or booked seats are no longer tappable. - The
bookingSeatsparameter has been removed to simplify the API.
Added #
- A comprehensive suite of widget tests to ensure the reliability of the widget.
- A cleaner, more declarative API that is easier to use.
- Immutable data models with a
copyWithmethod for predictable state management.