From 8e3c5c331579882a141eeaf0dd4a2c3132d4bcd4 Mon Sep 17 00:00:00 2001 From: ArmanKhanTech Date: Sun, 28 Jul 2024 17:32:23 +0530 Subject: [PATCH] Refactor import statements to use the 'lumos' package instead of 'pixelate' --- example/android/settings.gradle | 2 +- lib/{editor => editors}/multi_image_editor.dart | 2 +- lib/{editor => editors}/single_image_editor.dart | 0 lib/layers/emoji_layer.dart | 2 +- lib/layers/text_layer.dart | 2 +- lib/lumos.dart | 4 ++-- lib/widgets/dialog/emoji_layer_dialog.dart | 2 +- lib/widgets/dialog/text_layer_dialog.dart | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) rename lib/{editor => editors}/multi_image_editor.dart (99%) rename lib/{editor => editors}/single_image_editor.dart (100%) diff --git a/example/android/settings.gradle b/example/android/settings.gradle index 536165d..c5fb685 100644 --- a/example/android/settings.gradle +++ b/example/android/settings.gradle @@ -19,7 +19,7 @@ pluginManagement { plugins { id "dev.flutter.flutter-plugin-loader" version "1.0.0" id "com.android.application" version "7.3.0" apply false - id "org.jetbrains.kotlin.android" version "1.7.10" apply false + id "org.jetbrains.kotlin.android" version "1.9.10" apply false } include ":app" diff --git a/lib/editor/multi_image_editor.dart b/lib/editors/multi_image_editor.dart similarity index 99% rename from lib/editor/multi_image_editor.dart rename to lib/editors/multi_image_editor.dart index bed2b02..3eeabbf 100644 --- a/lib/editor/multi_image_editor.dart +++ b/lib/editors/multi_image_editor.dart @@ -8,7 +8,7 @@ import 'package:flutter/services.dart'; import 'package:image_editor/image_editor.dart'; import 'package:lumos/utilities/constants.dart'; -import 'package:lumos/editor/single_image_editor.dart'; +import 'package:lumos/editors/single_image_editor.dart'; import 'package:lumos/utilities/image_item.dart'; import 'package:lumos/model/models.dart'; import 'package:lumos/widgets/dialog/exit_dialog.dart'; diff --git a/lib/editor/single_image_editor.dart b/lib/editors/single_image_editor.dart similarity index 100% rename from lib/editor/single_image_editor.dart rename to lib/editors/single_image_editor.dart diff --git a/lib/layers/emoji_layer.dart b/lib/layers/emoji_layer.dart index 115c544..73739ef 100644 --- a/lib/layers/emoji_layer.dart +++ b/lib/layers/emoji_layer.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; -import 'package:lumos/editor/single_image_editor.dart'; +import 'package:lumos/editors/single_image_editor.dart'; import 'package:lumos/model/models.dart'; import '../widgets/dialog/emoji_layer_dialog.dart'; diff --git a/lib/layers/text_layer.dart b/lib/layers/text_layer.dart index 9567b08..365c106 100644 --- a/lib/layers/text_layer.dart +++ b/lib/layers/text_layer.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; -import 'package:lumos/editor/single_image_editor.dart'; +import 'package:lumos/editors/single_image_editor.dart'; import 'package:lumos/model/models.dart'; import 'package:lumos/widgets/dialog/text_layer_dialog.dart'; diff --git a/lib/lumos.dart b/lib/lumos.dart index 66d20b0..3eef2e7 100644 --- a/lib/lumos.dart +++ b/lib/lumos.dart @@ -1,2 +1,2 @@ -export 'editor/single_image_editor.dart'; -export 'editor/multi_image_editor.dart'; +export 'editors/single_image_editor.dart'; +export 'editors/multi_image_editor.dart'; diff --git a/lib/widgets/dialog/emoji_layer_dialog.dart b/lib/widgets/dialog/emoji_layer_dialog.dart index 348a340..f1ec107 100644 --- a/lib/widgets/dialog/emoji_layer_dialog.dart +++ b/lib/widgets/dialog/emoji_layer_dialog.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; -import 'package:lumos/editor/single_image_editor.dart'; +import 'package:lumos/editors/single_image_editor.dart'; import 'package:lumos/model/models.dart'; class EmojiLayerDialog extends StatefulWidget { diff --git a/lib/widgets/dialog/text_layer_dialog.dart b/lib/widgets/dialog/text_layer_dialog.dart index 5368355..f9934ea 100644 --- a/lib/widgets/dialog/text_layer_dialog.dart +++ b/lib/widgets/dialog/text_layer_dialog.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; -import 'package:lumos/editor/single_image_editor.dart'; +import 'package:lumos/editors/single_image_editor.dart'; import 'package:lumos/model/models.dart'; import '../picker/color_picker.dart';