Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature and Refactor Enhancements Across Editors #328

Merged
merged 17 commits into from
Jan 22, 2025
Merged

Feature and Refactor Enhancements Across Editors #328

merged 17 commits into from
Jan 22, 2025

Conversation

hm21
Copy link
Owner

@hm21 hm21 commented Jan 21, 2025

Summary

This PR introduces multiple features and refactors aimed at enhancing the functionality, usability, and maintainability of various editor components in the project. Key highlights include the addition of new widgets for improved UI interaction, reusable shared components, and updates to the code structure for better readability and maintainability.


Features

Paint Editor

  • feat(paint-editor): add PaintEditorBottombar widget for enhanced UI interaction
    • Introduced a PaintEditorBottombar widget to improve user interaction in the paint editor.

Text Editor

  • feat(text-editor): implement TextEditorColorPicker and TextEditorInput widgets
    • Added two new widgets: TextEditorColorPicker and TextEditorInput for better text editing capabilities.

Shared

  • feat(shared): implement reusable bottom sheet component
    • Created a shared bottom sheet component to centralize functionality.
    • Updated custom_widgets_example.dart to utilize the shared component.
    • Refactored the following editors to adopt the shared bottom sheet:
      • GroundedPaintBar
      • PaintEditor
      • TextEditor
    • Renamed font_scale_bottom_sheet.dart to slider_bottom_sheet.dart to align with the shared implementation.

Tune Editor

  • feat(tune-editor): add TuneEditorAppbar and TuneEditorBottombar widgets
    • Added TuneEditorAppbar and TuneEditorBottombar to enhance the editing experience in the tune editor.
    • Updated tune_editor.dart to integrate the new widgets.
  • feat(tune-editor): add temperature adjustment filter and update TuneEditorBottombar
    • Introduced a temperature adjustment filter to improve photo tuning functionality.

Crop Editor

  • feat(crop-editor): add CropEditorAppbar and CropEditorBottombar widgets
    • Added CropEditorAppbar and CropEditorBottombar to improve the crop editing experience.

Refactors

Paint Editor

  • refactor(paint-editor): improve widget structure and readability in PaintEditorState
    • Improved widget hierarchy and code readability in the PaintEditorState.

Shared

  • refactor(shared): move reactive custom widgets to a new directory structure
    • Moved reusable widgets to a dedicated directory for better organization.

General

  • refactor: update import paths and remove unused heroTag from RoundedBackgroundTextField
    • Removed unused code and updated import paths for consistency.
  • refactor: update import paths to use absolute references
    • Replaced relative imports with absolute references across the project.
  • refactor: update screenshot capture method and improve import paths
    • Improved the screenshot capture logic and standardized import paths.

Documentation

  • docs(editors): improve documentation comments in editor components
    • Enhanced code documentation for better clarity and maintainability.

hm21 added 17 commits January 10, 2025 16:57
…ry usage

- Added `import_history_5_0_0_minified.dart` for example state history import with minified format
- Implemented key minifier in `key_minifier.dart` to reduce export data size
- Enhanced state history handling to consume less RAM during in-app usage
- Updated affected models, layers, and editors for compatibility with the minified export format
- Reorganized test structure, moving modules into `features` and `shared` directories
- Introduced new tests for minified keys to ensure reliability
…t widgets

refactor: update import paths and remove unused heroTag from RoundedBackgroundTextField
- Created a shared bottom sheet component to centralize functionality
- Updated `custom_widgets_example.dart` to use the new component
- Refactored `grounded_paint_bar`, `paint_editor`, and `text_editor` to adopt the shared bottom sheet
- Renamed `font_scale_bottom_sheet.dart` to `slider_bottom_sheet.dart` to align with the shared implementation
- Introduced `TuneEditorAppbar` and `TuneEditorBottombar` to enhance the editing experience
- Updated `tune_editor.dart` to integrate the new widgets
…threading scenarios and update initialization logic
@hm21 hm21 merged commit d63b12e into stable Jan 22, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant