diff --git a/CHANGELOG.md b/CHANGELOG.md index 1153a751..4f19545b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,5 @@ ## [8.1.12] -- Add the option to add configurations for `fresh_quill_extensions` using `extraConfigurations` +- Add the option to add configurations for `flutter_quill_extensions` using `extraConfigurations` ## [8.1.11] - Follow dart best practices by using `lints` and remove `pedantic` as well `platform` since they are not used diff --git a/example/lib/pages/home_page.dart b/example/lib/pages/home_page.dart index f5a4a4a5..f5fd5239 100644 --- a/example/lib/pages/home_page.dart +++ b/example/lib/pages/home_page.dart @@ -5,7 +5,6 @@ import 'dart:convert'; import 'dart:io' show File, Platform; import 'dart:ui'; -import 'package:file_picker/file_picker.dart'; import 'package:filesystem_picker/filesystem_picker.dart'; import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; @@ -14,7 +13,6 @@ import 'package:flutter_quill/extensions.dart'; import 'package:flutter_quill/flutter_quill.dart'; import 'package:flutter_quill_extensions/flutter_quill_extensions.dart'; import 'package:flutter_quill_extensions/presentation/embeds/embed_types/image.dart'; -import 'package:flutter_quill_extensions/presentation/models/config/toolbar/buttons/video.dart'; import 'package:path/path.dart' as path; import 'package:path_provider/path_provider.dart'; diff --git a/flutter_quill_extensions/lib/presentation/embeds/toolbar/utils/image_video_utils.dart b/flutter_quill_extensions/lib/presentation/embeds/toolbar/utils/image_video_utils.dart index b4d6ae57..bb35dddc 100644 --- a/flutter_quill_extensions/lib/presentation/embeds/toolbar/utils/image_video_utils.dart +++ b/flutter_quill_extensions/lib/presentation/embeds/toolbar/utils/image_video_utils.dart @@ -126,7 +126,8 @@ class TypeLinkDialogState extends State { // color: Colors.orangeAccent, // ), // label: Text('Gallery'.i18n), -// onPressed: () => Navigator.pop(ctx, MediaPickSetting.gallery), +// onPressed: () => Navigator.pop(ctx, +// MediaPickSetting.gallery), // ), // TextButton.icon( // icon: const Icon( @@ -156,7 +157,8 @@ class TypeLinkDialogState extends State { // imageUrl = await webImagePickImpl(onImagePickCallback); // return; // } -// final file = await ImagePicker().pickImage(source: ImageSource.gallery); +// final file = await ImagePicker() +//.pickImage(source: ImageSource.gallery); // imageUrl = file?.path; // if (imageUrl == null) { // return; @@ -166,7 +168,8 @@ class TypeLinkDialogState extends State { // } else { // assert(filePickImpl != null, 'Desktop must provide filePickImpl'); // imageUrl = -// await _pickImageDesktop(context, filePickImpl!, onImagePickCallback); +// await _pickImageDesktop +//(context, filePickImpl!, onImagePickCallback); // } // if (imageUrl == null) { @@ -227,11 +230,13 @@ class TypeLinkDialogState extends State { // } else { // assert(filePickImpl != null, 'Desktop must provide filePickImpl'); // videoUrl = -// await _pickVideoDesktop(context, filePickImpl!, onVideoPickCallback); +// await _pickVideoDesktop(context, filePickImpl!, +// onVideoPickCallback); // } // if (videoUrl != null) { -// controller.replaceText(index, length, BlockEmbed.video(videoUrl), null); +// controller.replaceText(index, length, BlockEmbed.video(videoUrl), +// null); // } // } diff --git a/flutter_quill_extensions/lib/presentation/embeds/toolbar/video_button/video_button.dart b/flutter_quill_extensions/lib/presentation/embeds/toolbar/video_button/video_button.dart index 2b9bace3..f06d59df 100644 --- a/flutter_quill_extensions/lib/presentation/embeds/toolbar/video_button/video_button.dart +++ b/flutter_quill_extensions/lib/presentation/embeds/toolbar/video_button/video_button.dart @@ -6,7 +6,6 @@ import 'package:flutter_quill/flutter_quill.dart'; import '../../../../logic/models/config/configurations.dart'; import '../../../../logic/services/image_picker/image_options.dart'; import '../../../models/config/toolbar/buttons/video.dart'; -import '../../embed_types.dart'; import '../../embed_types/video.dart'; import '../utils/image_video_utils.dart'; import 'select_video_source.dart'; @@ -173,12 +172,12 @@ class QuillToolbarVideoButton extends StatelessWidget { return value; } - void _linkSubmitted(String? value) { - if (value != null && value.isNotEmpty) { - final index = controller.selection.baseOffset; - final length = controller.selection.extentOffset - index; + // void _linkSubmitted(String? value) { + // if (value != null && value.isNotEmpty) { + // final index = controller.selection.baseOffset; + // final length = controller.selection.extentOffset - index; - controller.replaceText(index, length, BlockEmbed.video(value), null); - } - } + // controller.replaceText(index, length, BlockEmbed.video(value), null); + // } + // } } diff --git a/flutter_quill_extensions/lib/presentation/embeds/utils.dart b/flutter_quill_extensions/lib/presentation/embeds/utils.dart index 68f8c314..edd463de 100644 --- a/flutter_quill_extensions/lib/presentation/embeds/utils.dart +++ b/flutter_quill_extensions/lib/presentation/embeds/utils.dart @@ -2,9 +2,7 @@ import 'dart:io' show File; import 'package:flutter/foundation.dart' show immutable; import 'package:flutter/widgets.dart' show BuildContext; -import 'package:flutter_quill/flutter_quill.dart'; import '../../logic/models/config/configurations.dart'; -import '../../logic/services/image_saver/s_image_saver.dart'; // I would like to orgnize the project structure and the code more // but here I don't want to change too much since that is a community project