Skip to content

Commit

Permalink
feat(imageEditorTheme, customWidgets): completely rewrote logic for c…
Browse files Browse the repository at this point in the history
…ustom widgets and add new "Frosted-Glass" design

BREAKING CHANGES:
- Removed hardcoded WhatsApp design.
- Rewritten entire logic of customWidgets.
- Moved `initialColor` and `initialStrokeWidth` from `paintEditorConfigs` to `imageEditorTheme/paintingEditor`.

Features:
- Added new design Frosted-Glass.
- WhatsApp theme is now fully editable.
- Smaller build size and minimal performance boost due to removal of hardcoded WhatsApp design.
- Simplified usage of customWidgets.
- Editor design is now more customizable.
  • Loading branch information
hm21 committed Jun 17, 2024
1 parent 91a1136 commit 1dc7cb0
Show file tree
Hide file tree
Showing 83 changed files with 5,829 additions and 3,669 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## Version 4.0.0
#### **Breaking Changes:**
- Remove hardcoded `WhatsApp-Design`.
- Rewrite the entire logic of `customWidgets`.
- Move `initialColor` and `initialStrokeWidth` from `paintEditorConfigs` to `imageEditorTheme-paintingEditor`.

#### **feat:**
- Add new design `Frosted-Glass`.
- The `WhatsApp` theme is now fully editable.
- Smaller build size and minimal performance boost because the Whatsapp design is no longer hardcoded.
- Make it easier to use `customWidget`.
- Editor design is now more customizable.

## Version 3.0.15
- **feat(callbacks)**: Add to the main-editor callbacks `onTap`, `onDoubleTap` and `onLongPress` which was requested in [#104](https://github.com/hm21/pro_image_editor/issues/104).

Expand Down
291 changes: 33 additions & 258 deletions README.md

Large diffs are not rendered by default.

Binary file added assets/preview/frosted-glass-design.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/showcase-frosted-glass.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 2 additions & 4 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Flutter imports:
import 'package:example/pages/design_examples/design_example.dart';
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
Expand All @@ -17,15 +18,13 @@ import 'pages/custom_appbar_bottombar_example.dart';
import 'pages/default_example.dart';
import 'pages/generation_configs_example.dart';
import 'pages/google_font_example.dart';
import 'pages/highly_configurable_example.dart';
import 'pages/image_format_convert_example.dart';
import 'pages/movable_background_image.dart';
import 'pages/reorder_layer_example.dart';
import 'pages/round_cropper_example.dart';
import 'pages/signature_drawing_example.dart';
import 'pages/standalone_example.dart';
import 'pages/stickers_example.dart';
import 'pages/whatsapp_example.dart';

void main() async {
WidgetsFlutterBinding.ensureInitialized();
Expand Down Expand Up @@ -69,14 +68,13 @@ class _MyHomePageState extends State<MyHomePage> {

final List<Widget> _examples = [
const DefaultExample(),
const WhatsAppExample(),
const DesignExample(),
const StandaloneExample(),
const SignatureDrawingExample(),
const StickersExample(),
const FirebaseSupabaseExample(),
const ReorderLayerExample(),
const RoundCropperExample(),
const HighlyConfigurableExample(),
const SelectableLayerExample(),
const GenerationConfigsExample(),
const PickImageExample(),
Expand Down
Loading

0 comments on commit 1dc7cb0

Please sign in to comment.