flutter_image_editor_enhanced 1.0.2
flutter_image_editor_enhanced: ^1.0.2 copied to clipboard
A powerful Flutter image editor with cropping, resizing, and aspect ratio control. Perfect for apps that need image editing capabilities with custom aspect ratios and size limits.
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
1.0.2 - 2025-01-09 #
Fixed #
- Renamed main library file to match package name
- Fixed repository URL verification for pub.dev
1.0.0 - 2025-01-09 #
Added #
- Initial release of Flutter Image Editor
- Interactive image cropping with zoom and pan functionality
- Custom aspect ratio support (1:1, 16:9, 4:3, custom ratios)
- Automatic image compression to meet size requirements
- Real-time preview functionality
- Cross-platform compatibility (iOS, Android, Web)
- Modern Material Design UI with customizable colors
- Support for custom translations
- Comprehensive example app demonstrating all features
- Detailed documentation and API reference
Enhanced Features #
- Enhanced Zoom Control: Smoother 1.05x zoom multiplier for precise control
- Improved Touch Interaction: Full area panning support (touch anywhere to pan)
- Smart Validation: Frame coverage validation with warning dialogs
- Compact Instructions: Space-efficient instruction system with expandable dialog
- Multilingual Support: Built-in translation system with English and Arabic
- Better UX: More intuitive and responsive interface
Features #
- ImageEditor.editImage() - Main method for editing images
- ImageEditorDialog - Interactive editing interface
- Zoom Controls - 0.1x to 5.0x zoom range with reset functionality
- Pan Gestures - Drag to move image around the editor
- Crop Frame - Blue overlay showing the crop area
- Size Validation - Ensures output meets specified size limits
- Error Handling - Graceful error handling with user-friendly messages
- Loading States - Visual feedback during image processing
- Frame Validation - Prevents saving improperly cropped images
- Instruction System - Compact instructions with full dialog view
Technical Implementation #
- Uses
imagepackage for efficient image processing - Implements
BoxFit.containfor proper image display - Accurate coordinate mapping between UI and image pixels
- Progressive JPEG compression for optimal file sizes
- Memory-efficient image handling
- Responsive design for various screen sizes
- Smart validation algorithms for crop frame coverage
- Enhanced gesture detection for better touch interaction
Dependencies #
image: ^4.1.7- For image processing and manipulationget: ^4.6.6- For context access, state management, and translationsflutter: >=1.17.0- Flutter framework requirement
Default Values #
- Default aspect ratio:
112/235(height/width for offer format) - Default max size:
524288bytes (0.5MB) - Default title: "Edit Image"
- Default primary color: Material Blue (
Color(0xFF1976D2))
Example App #
- Complete demonstration of all package features
- Image picking from gallery and camera
- Multiple aspect ratio examples
- Size limit testing scenarios
- Custom color and translation examples
- Step-by-step usage instructions
- Multilingual support with English/Arabic toggle
- Enhanced UX demonstrations
Documentation #
- Comprehensive README with usage examples
- API reference with parameter descriptions
- Installation and setup instructions
- Contributing guidelines
- License information (MIT)
- Technical features documentation
- Recent updates section
Translation Support #
- English translations for all UI elements
- Arabic translations for complete RTL support
- Custom translation keys for flexibility
- Translation parameters for dynamic content
[Unreleased] #
Planned Features #
- Batch image processing
- Filters and effects
- Text overlay support
- Advanced cropping tools
- Cloud storage integration
- More export formats (PNG, WebP)
- Undo/redo functionality
- Custom crop shapes
- Additional language support
- Advanced validation options
- Performance optimizations