reusable_editor 1.0.4 copy "reusable_editor: ^1.0.4" to clipboard
reusable_editor: ^1.0.4 copied to clipboard

A modular form and file editor package for Flutter with support for Form widgets. Includes Cubit-based state management, form field validation, and UI input widgets.

Changelog #

All notable changes to this project will be documented in this file.

1.0.4 (Jul 4, 2025) #

πŸ“˜ Updated #

  • Updated GitHub Pages-based documentation under the doc/ folder:
    • Setup widget usage examples files
    • Setup package Libraries linking with API Reference
    • API Reference – Full Dart API docs generated by dartdoc

1.0.3 (Jul 3, 2025) #

πŸ“˜ Removed #

* `VALIDATOR_USAGE.md` – Guide for using built-in and custom validators.
* Separated in the `i_validator` package for built-in and custom validators.

1.0.2 (Jul 3, 2025) #

πŸ“˜ Documentation #

  • Added GitHub Pages-based documentation under the doc/ folder:

    • VALIDATOR_USAGE.md – Guide for using built-in and custom validators.

1.0.1 (Jul 3, 2025) #

πŸ“˜ Documentation #

  • Added GitHub Pages-based documentation under the doc/ folder:

    • WIDGET_USAGE.md – widget usage examples
    • CUBIT_USAGE.md – usage of FieldCubit, ToggleCubit, etc.
    • FIELD_TYPE_USAGE.md – usage patterns for FieldCubit<T> with various types
    • Setup index.md as the documentation landing page
    • Linked documentation from README

1.0.0 (Jul 3, 2025) #

πŸ†• Added #

  • New Input Widgets using FieldCubit<T> (renamed to App-prefixed)

    • AppTextField – for text input with validation
    • AppCheckbox – checkbox input with error text
    • AppDropdown<T> – generic dropdown field
    • AppSwitch – switch toggle input
    • AppRadioGroup<T> – radio button group input
    • AppSlider – numeric slider input
    • AppRangeSlider – range slider input with min/max
    • AppDatePicker – date picker field
    • AppTimePicker – time picker field
    • AppFilePicker – file picker using file_picker package

βœ… Renamed #

  • selection_cubit.dart βž” enum_option_cubit.dart
  • selection_state.dart βž” enum_option_state.dart

🧱 Cubits #

  • ToggleCubit added for boolean toggle handling using FieldCubit<bool>
  • FieldCubit<T> added as a generic form state cubit with validation support

🎨 Styles #

  • Text field and error styles use centralized AppFormTextStyles
  • Input decoration elements follow InputDecorationStyles for consistent field UI (e.g., border, padding, label styles)

0.0.6+2 #

  • Export Bloc Provider.
  • Export GetIt DI.

0.0.6+1 #

  • Added DateTimeCubit Bloc Provider.
  • Registered DateTimeCubit GetIt DI.

0.0.6 #

  • Implemented Bloc Provider.
  • Implemented GetIt DI.
  • Removed fileRegisterGetItDiRestApiDataSource.

0.0.5 #

  • Added fileRegisterGetItDiRestApiDataSource,

0.0.4 #

  • Added Register Input Field Get It Di,

0.0.3 #

Updated #

  • Refactored SwitchCubit:

    • Now uses a typed SwitchState model instead of a raw bool.
    • Introduced debug logging in onChanged and clearSwitch for easier tracing.
    • Improved structure following SOLID principles.
  • Added

    • clearSwitch() method to SwitchCubit for resetting the switch state to default (true).

0.0.2 #

Added #

  • Support for uploading and deleting files via Firestore or REST API.

  • FileEntity and FileResponseEntity models.

  • Enum-based dropdown form field (EnumOptionDropDownMenuFormField).

  • Cubits for managing UI state:

    • DateTimeCubit
    • ImageCrudCubit
    • SelectionCubit
    • SwitchCubit
    • TextFieldCubit
  • Utility extensions:

    • String?.loadAsFile() for converting asset paths to File
    • String.loadAssetImage() for loading images as bytes
  • Abstract interfaces for file handling and dependency constants.

  • Example usage with a mock implementation of IFireStorageService.

0.0.1 #

  • Initial release of reusable_editor package.
0
likes
0
points
9
downloads

Publisher

unverified uploader

Weekly Downloads

A modular form and file editor package for Flutter with support for Form widgets. Includes Cubit-based state management, form field validation, and UI input widgets.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

bloc, dartz, equatable, exception_type, file_picker, fire_storage_impl, flutter, flutter_bloc, get_it_di_global_variable, i_tdd, i_validator, intl, navigation_without_context, path_provider, provider, reusable_app_bar, reusable_image_widget

More

Packages that depend on reusable_editor