π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
refactor: update pro_image_editor dependency and remove unused packages
AmanRajSinghMourya2a9eb2ff9892
diff --git a/mobile/apps/photos/ios/Podfile.lock b/mobile/apps/photos/ios/Podfile.lockindex d4735a16ed..0d9f322796 100644--- a/mobile/apps/photos/ios/Podfile.lock+++ b/mobile/apps/photos/ios/Podfile.lock@@ -16,8 +16,6 @@ PODS:- Flutter- device_info_plus (0.0.1):- Flutter- - emoji_picker_flutter (0.0.1):- - Flutter- ente_photos_rust (0.0.1):- Flutter- ente_rust (0.0.1):@@ -247,8 +245,6 @@ PODS:- Flutter- url_launcher_ios (0.0.1):- Flutter- - vibration (1.7.5):- - Flutter- video_player_avfoundation (0.0.1):- Flutter- FlutterMacOS@@ -271,7 +267,6 @@ DEPENDENCIES:- cupertino_http (from `.symlinks/plugins/cupertino_http/darwin`)- dart_ui_isolate (from `.symlinks/plugins/dart_ui_isolate/ios`)- device_info_plus (from `.symlinks/plugins/device_info_plus/ios`)- - emoji_picker_flutter (from `.symlinks/plugins/emoji_picker_flutter/ios`)- ente_photos_rust (from `.symlinks/plugins/ente_photos_rust/ios`)- ente_rust (from `.symlinks/plugins/ente_rust/ios`)- ffmpeg_kit_flutter (from `.symlinks/plugins/ffmpeg_kit_flutter/ios`)@@ -323,7 +318,6 @@ DEPENDENCIES:- thermal (from `.symlinks/plugins/thermal/ios`)- ua_client_hints (from `.symlinks/plugins/ua_client_hints/ios`)- url_launcher_ios (from `.symlinks/plugins/url_launcher_ios/ios`)- - vibration (from `.symlinks/plugins/vibration/ios`)- video_player_avfoundation (from `.symlinks/plugins/video_player_avfoundation/darwin`)- video_thumbnail (from `.symlinks/plugins/video_thumbnail/ios`)- volume_controller (from `.symlinks/plugins/volume_controller/ios`)@@ -370,8 +364,6 @@ EXTERNAL SOURCES::path: ".symlinks/plugins/dart_ui_isolate/ios"device_info_plus::path: ".symlinks/plugins/device_info_plus/ios"- emoji_picker_flutter:- :path: ".symlinks/plugins/emoji_picker_flutter/ios"ente_photos_rust::path: ".symlinks/plugins/ente_photos_rust/ios"ente_rust:@@ -474,8 +466,6 @@ EXTERNAL SOURCES::path: ".symlinks/plugins/ua_client_hints/ios"url_launcher_ios::path: ".symlinks/plugins/url_launcher_ios/ios"- vibration:- :path: ".symlinks/plugins/vibration/ios"video_player_avfoundation::path: ".symlinks/plugins/video_player_avfoundation/darwin"video_thumbnail:@@ -496,7 +486,6 @@ SPEC CHECKSUMS:cupertino_http: 94ac07f5ff090b8effa6c5e2c47871d48ab7c86cdart_ui_isolate: 46f6714abe6891313267153ef6f9748d8ecfcab1device_info_plus: 21fcca2080fbcd348be798aa36c3e5ed849eefbe- emoji_picker_flutter: ed468d9746c21711e66b2788880519a9de5de211ente_photos_rust: 79732f3ba67df7b0fb22089627afb80d692c2b2dente_rust: 9c976e3d083f0ce90f31693deb99629b28d8fe4cffmpeg_kit_custom: 682b4f2f1ff1f8abae5a92f6c3540f2441d5be99@@ -567,7 +556,6 @@ SPEC CHECKSUMS:thermal: d4c48be750d1ddbab36b0e2dcb2471531bc8df41ua_client_hints: 92fe0d139619b73ec9fcb46cc7e079a26178f586url_launcher_ios: 694010445543906933d732453a59da0a173ae33d- vibration: 8e2f50fc35bb736f9eecb7dd9f7047fbb6a6e888video_player_avfoundation: 2cef49524dd1f16c5300b9cd6efd9611ce03639bvideo_thumbnail: b637e0ad5f588ca9945f6e2c927f73a69a661140volume_controller: 3657a1f65bedb98fa41ff7dc5793537919f31b12diff --git a/mobile/apps/photos/ios/Runner.xcodeproj/project.pbxproj b/mobile/apps/photos/ios/Runner.xcodeproj/project.pbxprojindex 8fb0528695..e1324287ad 100644--- a/mobile/apps/photos/ios/Runner.xcodeproj/project.pbxproj+++ b/mobile/apps/photos/ios/Runner.xcodeproj/project.pbxproj@@ -533,7 +533,6 @@"${BUILT_PRODUCTS_DIR}/cupertino_http/cupertino_http.framework","${BUILT_PRODUCTS_DIR}/dart_ui_isolate/dart_ui_isolate.framework","${BUILT_PRODUCTS_DIR}/device_info_plus/device_info_plus.framework",- "${BUILT_PRODUCTS_DIR}/emoji_picker_flutter/emoji_picker_flutter.framework","${BUILT_PRODUCTS_DIR}/ente_photos_rust/ente_photos_rust.framework","${BUILT_PRODUCTS_DIR}/ente_rust/ente_rust.framework","${BUILT_PRODUCTS_DIR}/file_saver/file_saver.framework",@@ -582,7 +581,6 @@"${BUILT_PRODUCTS_DIR}/thermal/thermal.framework","${BUILT_PRODUCTS_DIR}/ua_client_hints/ua_client_hints.framework","${BUILT_PRODUCTS_DIR}/url_launcher_ios/url_launcher_ios.framework",- "${BUILT_PRODUCTS_DIR}/vibration/vibration.framework","${BUILT_PRODUCTS_DIR}/video_player_avfoundation/video_player_avfoundation.framework","${BUILT_PRODUCTS_DIR}/video_thumbnail/video_thumbnail.framework","${BUILT_PRODUCTS_DIR}/volume_controller/volume_controller.framework",@@ -637,7 +635,6 @@"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/cupertino_http.framework","${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/dart_ui_isolate.framework","${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/device_info_plus.framework",- "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/emoji_picker_flutter.framework","${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/ente_photos_rust.framework","${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/ente_rust.framework","${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/file_saver.framework",@@ -686,7 +683,6 @@"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/thermal.framework","${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/ua_client_hints.framework","${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/url_launcher_ios.framework",- "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/vibration.framework","${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/video_player_avfoundation.framework","${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/video_thumbnail.framework","${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/volume_controller.framework",diff --git a/mobile/apps/photos/lib/ui/tools/editor/image_editor/image_editor_app_bar.dart b/mobile/apps/photos/lib/ui/tools/editor/image_editor/image_editor_app_bar.dartindex 66e8d30b4b..77d6de4f80 100644--- a/mobile/apps/photos/lib/ui/tools/editor/image_editor/image_editor_app_bar.dart+++ b/mobile/apps/photos/lib/ui/tools/editor/image_editor/image_editor_app_bar.dart@@ -3,7 +3,7 @@ import "package:flutter_svg/svg.dart";import "package:photos/ente_theme_data.dart";import "package:photos/generated/l10n.dart";import "package:photos/theme/ente_theme.dart";-import "package:pro_image_editor/models/editor_configs/pro_image_editor_configs.dart";+import "package:pro_image_editor/pro_image_editor.dart";class ImageEditorAppBar extends StatelessWidget implements PreferredSizeWidget {const ImageEditorAppBar({diff --git a/mobile/apps/photos/lib/ui/tools/editor/image_editor/image_editor_configs_mixin.dart b/mobile/apps/photos/lib/ui/tools/editor/image_editor/image_editor_configs_mixin.dartindex dd0a5c9c42..f24d8f791d 100644--- a/mobile/apps/photos/lib/ui/tools/editor/image_editor/image_editor_configs_mixin.dart+++ b/mobile/apps/photos/lib/ui/tools/editor/image_editor/image_editor_configs_mixin.dart@@ -1,7 +1,6 @@import 'package:flutter/material.dart';-import "package:pro_image_editor/mixins/converted_configs.dart";-import "package:pro_image_editor/models/editor_callbacks/pro_image_editor_callbacks.dart";-import "package:pro_image_editor/models/editor_configs/pro_image_editor_configs.dart";+import 'package:pro_image_editor/core/mixins/converted_configs.dart';+import 'package:pro_image_editor/pro_image_editor.dart';/// A mixin providing access to simple editor configurations.mixin SimpleConfigsAccess on StatefulWidget {diff --git a/mobile/apps/photos/lib/ui/tools/editor/image_editor/image_editor_crop_rotate.dart b/mobile/apps/photos/lib/ui/tools/editor/image_editor/image_editor_crop_rotate.dartindex 3bd5a923fb..66dcbfa628 100644--- a/mobile/apps/photos/lib/ui/tools/editor/image_editor/image_editor_crop_rotate.dart+++ b/mobile/apps/photos/lib/ui/tools/editor/image_editor/image_editor_crop_rotate.dart@@ -6,11 +6,8 @@ import "package:photos/theme/ente_theme.dart";import "package:photos/ui/tools/editor/image_editor/circular_icon_button.dart";import "package:photos/ui/tools/editor/image_editor/image_editor_configs_mixin.dart";import "package:photos/ui/tools/editor/image_editor/image_editor_constants.dart";-import "package:pro_image_editor/mixins/converted_configs.dart";-import "package:pro_image_editor/models/editor_callbacks/pro_image_editor_callbacks.dart";-import "package:pro_image_editor/models/editor_configs/pro_image_editor_configs.dart";-import "package:pro_image_editor/modules/crop_rotate_editor/crop_rotate_editor.dart";-import "package:pro_image_editor/widgets/animated/fade_in_up.dart";+import 'package:pro_image_editor/core/mixins/converted_configs.dart';+import 'package:pro_image_editor/pro_image_editor.dart';enum CropAspectRatioType {original(diff --git a/mobile/apps/photos/lib/ui/tools/editor/image_editor/image_editor_main_bottom_bar.dart b/mobile/apps/photos/lib/ui/tools/editor/image_editor/image_editor_main_bottom_bar.dartindex 07916d84b5..e122926603 100644--- a/mobile/apps/photos/lib/ui/tools/editor/image_editor/image_editor_main_bottom_bar.dart+++ b/mobile/apps/photos/lib/ui/tools/editor/image_editor/image_editor_main_bottom_bar.dart@@ -5,7 +5,7 @@ import "package:photos/generated/l10n.dart";import "package:photos/ui/tools/editor/image_editor/circular_icon_button.dart";import "package:photos/ui/tools/editor/image_editor/image_editor_configs_mixin.dart";import "package:photos/ui/tools/editor/image_editor/image_editor_constants.dart";-import "package:pro_image_editor/mixins/converted_configs.dart";+import 'package:pro_image_editor/core/mixins/converted_configs.dart';import 'package:pro_image_editor/pro_image_editor.dart';class ImageEditorMainBottomBar extends StatefulWidget with SimpleConfigsAccess {@@ -115,7 +115,7 @@ class ImageEditorMainBottomBarState extends State<ImageEditorMainBottomBar>svgPath: "assets/image-editor/image-editor-paint.svg",label: AppLocalizations.of(context).draw,onTap: () {- widget.editor.openPaintingEditor();+ widget.editor.openPaintEditor();},),CircularIconButton(diff --git a/mobile/apps/photos/lib/ui/tools/editor/image_editor/image_editor_page.dart b/mobile/apps/photos/lib/ui/tools/editor/image_editor/image_editor_page.dartindex 805826b44d..fc8c33a8d2 100644--- a/mobile/apps/photos/lib/ui/tools/editor/image_editor/image_editor_page.dart+++ b/mobile/apps/photos/lib/ui/tools/editor/image_editor/image_editor_page.dart@@ -34,7 +34,6 @@ import "package:photos/ui/tools/editor/image_editor/image_editor_tune_bar.dart";import "package:photos/ui/viewer/file/detail_page.dart";import "package:photos/utils/dialog_util.dart";import "package:photos/utils/navigation_util.dart";-import "package:pro_image_editor/models/editor_configs/main_editor_configs.dart";import 'package:pro_image_editor/pro_image_editor.dart';class ImageEditorPage extends StatefulWidget {@@ -181,7 +180,7 @@ class _ImageEditorPageState extends State<ImageEditorPage> {canPop: false,onPopInvokedWithResult: (didPop, result) {if (didPop) return;- editorKey.currentState?.disablePopScope = true;+ editorKey.currentState?.isPopScopeDisabled = true;_showExitConfirmationDialog(context);},child: Scaffold(@@ -192,8 +191,8 @@ class _ImageEditorPageState extends State<ImageEditorPage> {key: editorKey,widget.file,callbacks: ProImageEditorCallbacks(- onCloseEditor: () {- editorKey.currentState?.disablePopScope = true;+ onCloseEditor: (_) {+ editorKey.currentState?.isPopScopeDisabled = true;_showExitConfirmationDialog(context);},mainEditorCallbacks: MainEditorCallbacks(@@ -201,58 +200,17 @@ class _ImageEditorPageState extends State<ImageEditorPage> {_mainEditorBarKey.currentState?.setState(() {});},onPopInvoked: (didPop, result) {- editorKey.currentState?.disablePopScope = false;+ editorKey.currentState?.isPopScopeDisabled = false;},),),configs: ProImageEditorConfigs(- imageEditorTheme: ImageEditorTheme(- uiOverlayStyle: SystemUiOverlayStyle(- systemNavigationBarContrastEnforced: true,- systemNavigationBarColor: Colors.transparent,- statusBarBrightness:- isLightMode ? Brightness.dark : Brightness.light,- statusBarIconBrightness:- isLightMode ? Brightness.dark : Brightness.light,- ),- appBarBackgroundColor: colorScheme.backgroundBase,- background: colorScheme.backgroundBase,- bottomBarBackgroundColor: colorScheme.backgroundBase,- filterEditor: FilterEditorTheme(- background: colorScheme.backgroundBase,- ),- paintingEditor: PaintingEditorTheme(- initialColor: const Color(0xFF00FFFF),- background: colorScheme.backgroundBase,- ),- textEditor: const TextEditorTheme(- background: Colors.transparent,- textFieldMargin: EdgeInsets.only(top: kToolbarHeight),- ),- cropRotateEditor: CropRotateEditorTheme(- background: colorScheme.backgroundBase,- cropCornerColor:- Theme.of(context).colorScheme.imageEditorPrimaryColor,- ),- tuneEditor: TuneEditorTheme(- background: colorScheme.backgroundBase,- ),- emojiEditor: EmojiEditorTheme(- bottomActionBarConfig: BottomActionBarConfig(- showSearchViewButton: true,- buttonColor: colorScheme.backgroundBase,- buttonIconColor: colorScheme.tabIcon,- backgroundColor: colorScheme.backgroundBase,- ),- backgroundColor: colorScheme.backgroundBase,- ),- ),- imageGenerationConfigs: const ImageGenerationConfigs(+ imageGeneration: const ImageGenerationConfigs(jpegQuality: 100,- generateInsideSeparateThread: true,+ enableIsolateGeneration: true,pngLevel: 0,),- layerInteraction: const LayerInteraction(+ layerInteraction: const LayerInteractionConfigs(hideToolbarOnInteraction: false,),theme: ThemeData(@@ -266,134 +224,77 @@ class _ImageEditorPageState extends State<ImageEditorPage> {),brightness: isLightMode ? Brightness.light : Brightness.dark,),- customWidgets: ImageEditorCustomWidgets(- filterEditor: CustomWidgetsFilterEditor(- slider: (- editorState,- rebuildStream,- value,- onChanged,- onChangeEnd,- ) =>- ReactiveCustomWidget(- builder: (context) {- return const SizedBox.shrink();- },- stream: rebuildStream,+ mainEditor: MainEditorConfigs(+ enableZoom: true,+ style: MainEditorStyle(+ uiOverlayStyle: SystemUiOverlayStyle(+ systemNavigationBarContrastEnforced: true,+ systemNavigationBarColor: Colors.transparent,+ statusBarBrightness:+ isLightMode ? Brightness.dark : Brightness.light,+ statusBarIconBrightness:+ isLightMode ? Brightness.dark : Brightness.light,),- filterButton: (- filter,- isSelected,- scaleFactor,- onSelectFilter,- editorImage,- filterKey,- ) {- return ImageEditorFilterBar(- filterModel: filter,- isSelected: isSelected,- onSelectFilter: () {- onSelectFilter.call();- editorKey.currentState?.setState(() {});- },- editorImage: editorImage,- filterKey: filterKey,- );- },- appBar: (editor, rebuildStream) {- return ReactiveCustomAppbar(- builder: (context) {- return ImageEditorAppBar(- key: const Key('image_editor_app_bar'),- configs: editor.configs,- done: () => editor.done(),- close: () => editor.close(),- );- },- stream: rebuildStream,- );- },- ),- tuneEditor: CustomWidgetsTuneEditor(- appBar: (editor, rebuildStream) {- return ReactiveCustomAppbar(- builder: (context) {- return ImageEditorAppBar(- enableRedo: editor.canRedo,- enableUndo: editor.canUndo,- key: const Key('image_editor_app_bar'),- redo: () => editor.redo(),- undo: () => editor.undo(),- configs: editor.configs,- done: () => editor.done(),- close: () => editor.close(),- );- },- stream: rebuildStream,- );- },- bottomBar: (editorState, rebuildStream) {- return ReactiveCustomWidget(- builder: (context) {- return ImageEditorTuneBar(- configs: editorState.configs,- callbacks: editorState.callbacks,- editor: editorState,- );- },- stream: rebuildStream,- );- },+ appBarBackground: colorScheme.backgroundBase,+ background: colorScheme.backgroundBase,+ bottomBarBackground: colorScheme.backgroundBase,),- mainEditor: CustomWidgetsMainEditor(- removeLayerArea: (key, __, rebuildStream) {- return ReactiveCustomWidget(- key: key,- builder: (context) {- return Align(- alignment: Alignment.bottomCenter,- child: StreamBuilder(- stream: rebuildStream,- builder: (context, snapshot) {- final isHovered = editorKey.currentState!- .layerInteractionManager.hoverRemoveBtn;+ widgets: MainEditorWidgets(+ removeLayerArea: (+ removeAreaKey,+ __,+ rebuildStream,+ isLayerBeingTransformed,+ ) {+ return Align(+ alignment: Alignment.bottomCenter,+ child: StreamBuilder(+ stream: rebuildStream,+ builder: (context, snapshot) {+ final isHovered = editorKey.currentState!+ .layerInteractionManager.hoverRemoveBtn;- return AnimatedContainer(- key: key,- duration: const Duration(milliseconds: 150),- height: 56,- width: 56,- margin: const EdgeInsets.only(bottom: 24),- decoration: BoxDecoration(- color: isHovered- ? colorScheme.warning400- .withValues(alpha: 0.8)- : Colors.white,- shape: BoxShape.circle,- ),- padding: const EdgeInsets.all(12),- child: Center(- child: SvgPicture.asset(- "assets/image-editor/image-editor-delete.svg",- colorFilter: ColorFilter.mode(- isHovered- ? Colors.white- : colorScheme.warning400- .withValues(alpha: 0.8),- BlendMode.srcIn,+ return AnimatedSwitcher(+ duration: const Duration(milliseconds: 150),+ child: isLayerBeingTransformed+ ? Container(+ key: removeAreaKey,+ height: 56,+ width: 56,+ margin: const EdgeInsets.only(bottom: 24),+ decoration: BoxDecoration(+ color: isHovered+ ? colorScheme.warning400+ .withValues(alpha: 0.8)+ : Colors.white,+ shape: BoxShape.circle,+ ),+ padding: const EdgeInsets.all(12),+ child: Center(+ child: SvgPicture.asset(+ "assets/image-editor/image-editor-delete.svg",+ colorFilter: ColorFilter.mode(+ isHovered+ ? Colors.white+ : colorScheme.warning400+ .withValues(alpha: 0.8),+ BlendMode.srcIn,+ ),+ ),),+ )+ : SizedBox.shrink(+ // When hidden, key still needed for hit+ // detection to work (returns empty bounds)+ key: removeAreaKey,),- ),- );- },- ),- );- },- stream: rebuildStream,+ );+ },+ ),);},appBar: (editor, rebuildStream) {- return ReactiveCustomAppbar(+ return ReactiveAppbar(builder: (context) {return ImageEditorAppBar(enableRedo: editor.canRedo,@@ -416,7 +317,7 @@ class _ImageEditorPageState extends State<ImageEditorPage> {stream: rebuildStream,);},- bottomBar: (editor, rebuildStream, key) => ReactiveCustomWidget(+ bottomBar: (editor, rebuildStream, key) => ReactiveWidget(key: key,builder: (context) {return ImageEditorMainBottomBar(@@ -429,9 +330,16 @@ class _ImageEditorPageState extends State<ImageEditorPage> {stream: rebuildStream,),),- paintEditor: CustomWidgetsPaintEditor(+ ),+ paintEditor: PaintEditorConfigs(+ enabled: true,+ style: PaintEditorStyle(+ initialColor: const Color(0xFF00FFFF),+ background: colorScheme.backgroundBase,+ ),+ widgets: PaintEditorWidgets(appBar: (editor, rebuildStream) {- return ReactiveCustomAppbar(+ return ReactiveAppbar(builder: (context) {return ImageEditorAppBar(enableRedo: editor.canRedo,@@ -451,7 +359,7 @@ class _ImageEditorPageState extends State<ImageEditorPage> {(paintEditor, rebuildStream, currentColor, setColor) =>null,bottomBar: (editorState, rebuildStream) {- return ReactiveCustomWidget(+ return ReactiveWidget(builder: (context) {return ImageEditorPaintBar(configs: editorState.configs,@@ -464,8 +372,17 @@ class _ImageEditorPageState extends State<ImageEditorPage> {);},),- textEditor: CustomWidgetsTextEditor(- appBar: (textEditor, rebuildStream) => ReactiveCustomAppbar(+ ),+ textEditor: TextEditorConfigs(+ enabled: false,+ showBackgroundModeButton: true,+ showTextAlignButton: true,+ style: const TextEditorStyle(+ background: Colors.transparent,+ textFieldMargin: EdgeInsets.only(top: kToolbarHeight),+ ),+ widgets: TextEditorWidgets(+ appBar: (textEditor, rebuildStream) => ReactiveAppbar(builder: (context) {return ImageEditorAppBar(key: const Key('image_editor_app_bar'),@@ -478,7 +395,7 @@ class _ImageEditorPageState extends State<ImageEditorPage> {),bodyItems: (editor, rebuildStream) {return [- ReactiveCustomWidget(+ ReactiveWidget(builder: (context) {return Positioned.fill(child: GestureDetector(@@ -496,7 +413,7 @@ class _ImageEditorPageState extends State<ImageEditorPage> {colorPicker:(textEditor, rebuildStream, currentColor, setColor) => null,bottomBar: (editorState, rebuildStream) {- return ReactiveCustomWidget(+ return ReactiveWidget(builder: (context) {return ImageEditorTextBar(configs: editorState.configs,@@ -508,9 +425,20 @@ class _ImageEditorPageState extends State<ImageEditorPage> {);},),- cropRotateEditor: CustomWidgetsCropRotateEditor(+ ),+ cropRotateEditor: CropRotateEditorConfigs(+ showAspectRatioButton: true,+ showFlipButton: true,+ showRotateButton: true,+ enabled: true,+ style: CropRotateEditorStyle(+ background: colorScheme.backgroundBase,+ cropCornerColor:+ Theme.of(context).colorScheme.imageEditorPrimaryColor,+ ),+ widgets: CropRotateEditorWidgets(appBar: (editor, rebuildStream) {- return ReactiveCustomAppbar(+ return ReactiveAppbar(builder: (context) {return ImageEditorAppBar(key: const Key('image_editor_app_bar'),@@ -526,8 +454,7 @@ class _ImageEditorPageState extends State<ImageEditorPage> {stream: rebuildStream,);},- bottomBar: (cropRotateEditor, rebuildStream) =>- ReactiveCustomWidget(+ bottomBar: (cropRotateEditor, rebuildStream) => ReactiveWidget(stream: rebuildStream,builder: (_) => ImageEditorCropRotateBar(configs: cropRotateEditor.configs,@@ -537,37 +464,118 @@ class _ImageEditorPageState extends State<ImageEditorPage> {),),),- mainEditorConfigs: const MainEditorConfigs(enableZoom: true),- paintEditorConfigs: const PaintEditorConfigs(enabled: true),- textEditorConfigs: const TextEditorConfigs(- enabled: false,- canToggleBackgroundMode: true,- canToggleTextAlign: true,- ),- cropRotateEditorConfigs: const CropRotateEditorConfigs(- canChangeAspectRatio: true,- canFlip: true,- canRotate: true,- canReset: true,- enabled: true,- ),- filterEditorConfigs: FilterEditorConfigs(+ filterEditor: FilterEditorConfigs(enabled: true,fadeInUpDuration: fadeInDuration,fadeInUpStaggerDelayDuration: fadeInDelay,filterList: filterList,+ style: FilterEditorStyle(+ background: colorScheme.backgroundBase,+ ),+ widgets: FilterEditorWidgets(+ slider: (+ editorState,+ rebuildStream,+ value,+ onChanged,+ onChangeEnd,+ ) =>+ ReactiveWidget(+ builder: (context) {+ return const SizedBox.shrink();+ },+ stream: rebuildStream,+ ),+ filterButton: (+ filter,+ isSelected,+ scaleFactor,+ onSelectFilter,+ editorImage,+ filterKey,+ ) {+ return ImageEditorFilterBar(+ filterModel: filter,+ isSelected: isSelected,+ onSelectFilter: () {+ onSelectFilter.call();+ editorKey.currentState?.setState(() {});+ },+ editorImage: editorImage,+ filterKey: filterKey,+ );+ },+ appBar: (editor, rebuildStream) {+ return ReactiveAppbar(+ builder: (context) {+ return ImageEditorAppBar(+ key: const Key('image_editor_app_bar'),+ configs: editor.configs,+ done: () => editor.done(),+ close: () => editor.close(),+ );+ },+ stream: rebuildStream,+ );+ },+ ),),- tuneEditorConfigs: const TuneEditorConfigs(enabled: true),- blurEditorConfigs: const BlurEditorConfigs(+ tuneEditor: TuneEditorConfigs(+ enabled: true,+ style: TuneEditorStyle(+ background: colorScheme.backgroundBase,+ ),+ widgets: TuneEditorWidgets(+ appBar: (editor, rebuildStream) {+ return ReactiveAppbar(+ builder: (context) {+ return ImageEditorAppBar(+ enableRedo: editor.canRedo,+ enableUndo: editor.canUndo,+ key: const Key('image_editor_app_bar'),+ redo: () => editor.redo(),+ undo: () => editor.undo(),+ configs: editor.configs,+ done: () => editor.done(),+ close: () => editor.close(),+ );+ },+ stream: rebuildStream,+ );+ },+ bottomBar: (editorState, rebuildStream) {+ return ReactiveWidget(+ builder: (context) {+ return ImageEditorTuneBar(+ configs: editorState.configs,+ callbacks: editorState.callbacks,+ editor: editorState,+ );+ },+ stream: rebuildStream,+ );+ },+ ),+ ),+ blurEditor: const BlurEditorConfigs(enabled: false,),- emojiEditorConfigs: const EmojiEditorConfigs(+ emojiEditor: EmojiEditorConfigs(enabled: true,checkPlatformCompatibility: true,+ style: EmojiEditorStyle(+ bottomActionBarConfig: BottomActionBarConfig(+ showSearchViewButton: true,+ buttonColor: colorScheme.backgroundBase,+ buttonIconColor: colorScheme.tabIcon,+ backgroundColor: colorScheme.backgroundBase,+ ),+ backgroundColor: colorScheme.backgroundBase,+ ),),- stickerEditorConfigs: StickerEditorConfigs(+ stickerEditor: StickerEditorConfigs(enabled: false,- buildStickers: (setLayer, scrollController) {+ builder: (setLayer, scrollController) {return const SizedBox.shrink();},),diff --git a/mobile/apps/photos/lib/ui/tools/editor/image_editor/image_editor_paint_bar.dart b/mobile/apps/photos/lib/ui/tools/editor/image_editor/image_editor_paint_bar.dartindex 15b5ce8e47..8c858dfab2 100644--- a/mobile/apps/photos/lib/ui/tools/editor/image_editor/image_editor_paint_bar.dart+++ b/mobile/apps/photos/lib/ui/tools/editor/image_editor/image_editor_paint_bar.dart@@ -4,11 +4,8 @@ import "package:photos/theme/ente_theme.dart";import "package:photos/ui/tools/editor/image_editor/image_editor_color_picker.dart";import "package:photos/ui/tools/editor/image_editor/image_editor_configs_mixin.dart";import "package:photos/ui/tools/editor/image_editor/image_editor_constants.dart";-import "package:pro_image_editor/mixins/converted_configs.dart";-import "package:pro_image_editor/models/editor_callbacks/pro_image_editor_callbacks.dart";-import "package:pro_image_editor/models/editor_configs/pro_image_editor_configs.dart";-import "package:pro_image_editor/modules/paint_editor/paint_editor.dart";-import "package:pro_image_editor/widgets/animated/fade_in_up.dart";+import 'package:pro_image_editor/core/mixins/converted_configs.dart';+import 'package:pro_image_editor/pro_image_editor.dart';class ImageEditorPaintBar extends StatefulWidget with SimpleConfigsAccess {const ImageEditorPaintBar({@@ -19,7 +16,7 @@ class ImageEditorPaintBar extends StatefulWidget with SimpleConfigsAccess {required this.i18nColor,});- final PaintingEditorState editor;+ final PaintEditorState editor;@overridefinal ProImageEditorConfigs configs;@@ -77,7 +74,7 @@ class _ImageEditorPaintBarState extends State<ImageEditorPaintBar>});final hue = value * 360;final color = HSVColor.fromAHSV(1.0, hue, 1.0, 1.0).toColor();- widget.editor.colorChanged(color);+ widget.editor.setColor(color);},),],diff --git a/mobile/apps/photos/lib/ui/tools/editor/image_editor/image_editor_text_bar.dart b/mobile/apps/photos/lib/ui/tools/editor/image_editor/image_editor_text_bar.dartindex 564368a22a..f66b75b134 100644--- a/mobile/apps/photos/lib/ui/tools/editor/image_editor/image_editor_text_bar.dart+++ b/mobile/apps/photos/lib/ui/tools/editor/image_editor/image_editor_text_bar.dart@@ -7,7 +7,7 @@ import "package:photos/ui/tools/editor/image_editor/circular_icon_button.dart";import "package:photos/ui/tools/editor/image_editor/image_editor_color_picker.dart";import "package:photos/ui/tools/editor/image_editor/image_editor_configs_mixin.dart";import "package:photos/ui/tools/editor/image_editor/image_editor_constants.dart";-import "package:pro_image_editor/mixins/converted_configs.dart";+import 'package:pro_image_editor/core/mixins/converted_configs.dart';import 'package:pro_image_editor/pro_image_editor.dart';class ImageEditorTextBar extends StatefulWidget with SimpleConfigsAccess {diff --git a/mobile/apps/photos/lib/ui/tools/editor/image_editor/image_editor_tune_bar.dart b/mobile/apps/photos/lib/ui/tools/editor/image_editor/image_editor_tune_bar.dartindex 45e0411e1a..ecbfb09b6b 100644--- a/mobile/apps/photos/lib/ui/tools/editor/image_editor/image_editor_tune_bar.dart+++ b/mobile/apps/photos/lib/ui/tools/editor/image_editor/image_editor_tune_bar.dart@@ -7,11 +7,8 @@ import "package:photos/ente_theme_data.dart";import "package:photos/theme/ente_theme.dart";import "package:photos/ui/tools/editor/image_editor/image_editor_configs_mixin.dart";import "package:photos/ui/tools/editor/image_editor/image_editor_constants.dart";-import "package:pro_image_editor/mixins/converted_configs.dart";-import "package:pro_image_editor/models/editor_callbacks/pro_image_editor_callbacks.dart";-import "package:pro_image_editor/models/editor_configs/pro_image_editor_configs.dart";-import "package:pro_image_editor/modules/tune_editor/tune_editor.dart";-import "package:pro_image_editor/widgets/animated/fade_in_up.dart";+import 'package:pro_image_editor/core/mixins/converted_configs.dart';+import 'package:pro_image_editor/pro_image_editor.dart';class ImageEditorTuneBar extends StatefulWidget with SimpleConfigsAccess {const ImageEditorTuneBar({diff --git a/mobile/apps/photos/pubspec.lock b/mobile/apps/photos/pubspec.lockindex 05712298da..f7e79727f3 100644--- a/mobile/apps/photos/pubspec.lock+++ b/mobile/apps/photos/pubspec.lock@@ -572,14 +572,6 @@ packages:url: "https://pub.dev"source: hostedversion: "3.0.0"- emoji_picker_flutter:- dependency: transitive- description:- name: emoji_picker_flutter- sha256: "08567e6f914d36c32091a96cf2f51d2558c47aa2bd47a590dc4f50e42e0965f6"- url: "https://pub.dev"- source: hosted- version: "3.1.0"encrypt:dependency: "direct main"description:@@ -2227,10 +2219,10 @@ packages:dependency: "direct main"description:name: pro_image_editor- sha256: "27190b0333af71e9949f366ac303496511ef6d67607f6f9797c9f136371a321f"+ sha256: df25475c7df5fb90c36f7ede774c7c14b83d862148ed5ab77f09a0dd120ec159url: "https://pub.dev"source: hosted- version: "6.2.3"+ version: "11.3.0"process:dependency: transitivedescription:@@ -2941,22 +2933,6 @@ packages:url: "https://pub.dev"source: hostedversion: "2.1.4"- vibration:- dependency: transitive- description:- name: vibration- sha256: "3b08a0579c2f9c18d5d78cb5c74f1005f731e02eeca6d72561a2e8059bf98ec3"- url: "https://pub.dev"- source: hosted- version: "2.1.0"- vibration_platform_interface:- dependency: transitive- description:- name: vibration_platform_interface- sha256: "6ffeee63547562a6fef53c05a41d4fdcae2c0595b83ef59a4813b0612cd2bc36"- url: "https://pub.dev"- source: hosted- version: "0.0.3"video_editor:dependency: "direct main"description:diff --git a/mobile/apps/photos/pubspec.yaml b/mobile/apps/photos/pubspec.yamlindex 54570b75fc..095b139f39 100644--- a/mobile/apps/photos/pubspec.yaml+++ b/mobile/apps/photos/pubspec.yaml@@ -192,7 +192,7 @@ dependencies:git:url: https://github.com/ente-io/privacy_screen.gitref: v2-only- pro_image_editor: ^6.0.0+ pro_image_editor: ^11.3.0receive_sharing_intent: # pub.dev is behindgit:url: https://github.com/KasemJaffer/receive_sharing_intent.git