flutter_fixtures_core 0.2.0
flutter_fixtures_core: ^0.2.0 copied to clipboard
Core interfaces and domain models for Flutter Fixtures
Changelog #
0.2.0 #
- BREAKING:
DataSelectorView.picknow returnsFixtureChoice?(the chosen document plus a remember flag);nullmeans the user cancelled. - BREAKING:
DataSelectorTypeis now a plain enum (pick,defaultValue,random) instead of a sealed class hierarchy. - BREAKING:
FixtureDocumentrejects documents declaring bothdataanddataPath; invalid fixtures now fail at parse time. FixtureSelectorowns the full selection flow: it writes selection memory, deduplicates concurrent picks for the same collection, and propagates cancel asnull.- New
FixtureSourceconcentrates fixture-file IO (candidate resolution, JSON decoding, payload loading) behind the newFixtureAssetLoaderseam. - New
FixtureDocument.statusCodeexposes the leading 3-digit code of the description as a typed field. - New
FixtureCollection.fromJson/FixtureDocument.fromJsonown the fixture wire format.
0.1.3 #
- Support JSON arrays as response data in
DataQuery.
0.1.2 Response Delay #
- Add
DataSelectorDelayclass to simulate response delays. - Add delay to
FixtureSelector.selectmethod.
0.1.1 Selection Memory #
- Add in-memory selection memory to remember user choices for fixture collections.
- Add
FixtureSelectionMemoryclass to manage remembered selections. - Auto-select single option when using Pick selector.
0.1.0 First Minor Release #
- Updated all packages to version 0.1.0
- Renamed
Fixturemixin toFixtureSelectorfor better clarity - Improved documentation across all packages
- Added comprehensive CONTRIBUTING.md guide
- Added MIT License
- Updated GitHub repository references to brotoo25/flutter_fixtures
0.0.1 Initial Release #
- Initial release of Flutter Fixtures
- Restructured as a workspace with multiple packages:
- flutter_fixtures_core: Core interfaces and domain models
- flutter_fixtures_dio: Dio implementation
- flutter_fixtures_ui: UI components
- flutter_fixtures: Meta-package that depends on all the above
- Support for Dio HTTP client
- Three fixture selection modes: Random, Default, and Pick
- Dialog-based UI for user selection
- Example app demonstrating basic and advanced usage