refactor: move all files and directories inside 'src' directory for flutter_quill_extensions

refactor/extensions-package-structure
Ellet 8 months ago
parent c40eaf465d
commit 4e10641875
  1. 6
      example/lib/screens/quill/my_quill_editor.dart
  2. 66
      flutter_quill_extensions/lib/flutter_quill_extensions.dart
  3. 0
      flutter_quill_extensions/lib/src/embeds/embed_types.dart
  4. 0
      flutter_quill_extensions/lib/src/embeds/formula/editor/formula_embed.dart
  5. 0
      flutter_quill_extensions/lib/src/embeds/formula/toolbar/formula_button.dart
  6. 0
      flutter_quill_extensions/lib/src/embeds/image/editor/image_embed.dart
  7. 0
      flutter_quill_extensions/lib/src/embeds/image/editor/image_embed_types.dart
  8. 0
      flutter_quill_extensions/lib/src/embeds/image/editor/image_menu.dart
  9. 0
      flutter_quill_extensions/lib/src/embeds/image/editor/image_web_embed.dart
  10. 0
      flutter_quill_extensions/lib/src/embeds/image/toolbar/image_button.dart
  11. 0
      flutter_quill_extensions/lib/src/embeds/image/toolbar/select_image_source.dart
  12. 0
      flutter_quill_extensions/lib/src/embeds/others/camera_button/camera_button.dart
  13. 0
      flutter_quill_extensions/lib/src/embeds/others/camera_button/camera_types.dart
  14. 0
      flutter_quill_extensions/lib/src/embeds/others/camera_button/select_camera_action.dart
  15. 0
      flutter_quill_extensions/lib/src/embeds/others/image_video_utils.dart
  16. 0
      flutter_quill_extensions/lib/src/embeds/others/media_button/media_button.dart
  17. 0
      flutter_quill_extensions/lib/src/embeds/table/editor/table_cell_embed.dart
  18. 0
      flutter_quill_extensions/lib/src/embeds/table/editor/table_embed.dart
  19. 0
      flutter_quill_extensions/lib/src/embeds/table/editor/table_models.dart
  20. 0
      flutter_quill_extensions/lib/src/embeds/table/toolbar/table_button.dart
  21. 0
      flutter_quill_extensions/lib/src/embeds/unknown/editor/unknown_embed.dart
  22. 0
      flutter_quill_extensions/lib/src/embeds/video/editor/video_embed.dart
  23. 0
      flutter_quill_extensions/lib/src/embeds/video/editor/video_web_embed.dart
  24. 0
      flutter_quill_extensions/lib/src/embeds/video/toolbar/select_video_source.dart
  25. 0
      flutter_quill_extensions/lib/src/embeds/video/toolbar/video_button.dart
  26. 0
      flutter_quill_extensions/lib/src/embeds/video/video.dart
  27. 0
      flutter_quill_extensions/lib/src/embeds/widgets/image.dart
  28. 0
      flutter_quill_extensions/lib/src/embeds/widgets/image_resizer.dart
  29. 2
      flutter_quill_extensions/lib/src/embeds/widgets/video_app.dart
  30. 0
      flutter_quill_extensions/lib/src/embeds/widgets/youtube_video_app.dart
  31. 0
      flutter_quill_extensions/lib/src/extensions/attribute.dart
  32. 0
      flutter_quill_extensions/lib/src/extensions/controller_ext.dart
  33. 0
      flutter_quill_extensions/lib/src/flutter_quill_embeds.dart
  34. 0
      flutter_quill_extensions/lib/src/models/config/camera/camera_configurations.dart
  35. 0
      flutter_quill_extensions/lib/src/models/config/formula/formula_configurations.dart
  36. 0
      flutter_quill_extensions/lib/src/models/config/image/editor/image_configurations.dart
  37. 0
      flutter_quill_extensions/lib/src/models/config/image/editor/image_web_configurations.dart
  38. 0
      flutter_quill_extensions/lib/src/models/config/image/toolbar/image_configurations.dart
  39. 0
      flutter_quill_extensions/lib/src/models/config/media/media_button_configurations.dart
  40. 0
      flutter_quill_extensions/lib/src/models/config/shared_configurations.dart
  41. 0
      flutter_quill_extensions/lib/src/models/config/table/table_configurations.dart
  42. 0
      flutter_quill_extensions/lib/src/models/config/video/editor/video_configurations.dart
  43. 0
      flutter_quill_extensions/lib/src/models/config/video/editor/video_web_configurations.dart
  44. 0
      flutter_quill_extensions/lib/src/models/config/video/editor/youtube_video_support_mode.dart
  45. 0
      flutter_quill_extensions/lib/src/models/config/video/toolbar/video_configurations.dart
  46. 0
      flutter_quill_extensions/lib/src/services/clipboard/super_clipboard_service.dart
  47. 0
      flutter_quill_extensions/lib/src/services/image_picker/image_options.dart
  48. 0
      flutter_quill_extensions/lib/src/services/image_picker/image_picker.dart
  49. 0
      flutter_quill_extensions/lib/src/services/image_picker/packages/image_picker.dart
  50. 0
      flutter_quill_extensions/lib/src/services/image_picker/s_image_picker.dart
  51. 0
      flutter_quill_extensions/lib/src/services/image_saver/exceptions.dart
  52. 0
      flutter_quill_extensions/lib/src/services/image_saver/image_saver.dart
  53. 0
      flutter_quill_extensions/lib/src/services/image_saver/packages/gal.dart
  54. 0
      flutter_quill_extensions/lib/src/services/image_saver/s_image_saver.dart
  55. 0
      flutter_quill_extensions/lib/src/utils/dart_ui/dart_ui_fake.dart
  56. 0
      flutter_quill_extensions/lib/src/utils/dart_ui/dart_ui_real.dart
  57. 0
      flutter_quill_extensions/lib/src/utils/element_utils/element_shared_utils.dart
  58. 0
      flutter_quill_extensions/lib/src/utils/element_utils/element_utils.dart
  59. 0
      flutter_quill_extensions/lib/src/utils/element_utils/element_web_utils.dart
  60. 0
      flutter_quill_extensions/lib/src/utils/patterns.dart
  61. 0
      flutter_quill_extensions/lib/src/utils/quill_image_utils.dart
  62. 0
      flutter_quill_extensions/lib/src/utils/quill_table_utils.dart
  63. 0
      flutter_quill_extensions/lib/src/utils/string.dart
  64. 0
      flutter_quill_extensions/lib/src/utils/utils.dart

@ -7,10 +7,10 @@ import 'package:flutter/material.dart';
import 'package:flutter_quill/extensions.dart'
show isAndroid, isDesktop, isIOS, isWeb;
import 'package:flutter_quill/flutter_quill.dart';
import 'package:flutter_quill_extensions/embeds/widgets/image.dart'
show getImageProviderByImageSource, imageFileExtensions;
import 'package:flutter_quill_extensions/flutter_quill_extensions.dart';
import 'package:flutter_quill_extensions/models/config/video/editor/youtube_video_support_mode.dart';
// ignore: implementation_imports
import 'package:flutter_quill_extensions/src/embeds/widgets/image.dart'
show getImageProviderByImageSource, imageFileExtensions;
import 'package:path/path.dart' as path;
import '../../extensions/scaffold_messenger.dart';

@ -4,42 +4,42 @@ library flutter_quill_extensions;
import 'package:flutter_quill/src/editor_toolbar_controller_shared/clipboard/clipboard_service_provider.dart';
import 'package:meta/meta.dart' show immutable;
import 'services/clipboard/super_clipboard_service.dart';
import 'src/services/clipboard/super_clipboard_service.dart';
export 'embeds/embed_types.dart';
export 'embeds/formula/toolbar/formula_button.dart';
export 'embeds/image/editor/image_embed.dart';
export 'embeds/image/editor/image_embed_types.dart';
export 'embeds/image/editor/image_web_embed.dart';
export 'embeds/image/toolbar/image_button.dart';
export 'embeds/others/camera_button/camera_button.dart';
export 'embeds/others/media_button/media_button.dart';
export 'embeds/table/editor/table_cell_embed.dart';
export 'embeds/table/editor/table_embed.dart';
export 'embeds/table/editor/table_models.dart';
export 'embeds/table/toolbar/table_button.dart';
export 'embeds/unknown/editor/unknown_embed.dart';
export 'embeds/video/editor/video_embed.dart';
export 'embeds/video/editor/video_web_embed.dart';
export 'embeds/video/toolbar/video_button.dart';
export 'embeds/video/video.dart';
export 'extensions/controller_ext.dart';
export 'flutter_quill_embeds.dart';
export 'models/config/camera/camera_configurations.dart';
export 'models/config/formula/formula_configurations.dart';
export 'models/config/image/editor/image_configurations.dart';
export 'models/config/image/editor/image_web_configurations.dart';
export 'models/config/image/toolbar/image_configurations.dart';
export 'models/config/media/media_button_configurations.dart';
export 'models/config/shared_configurations.dart';
export 'models/config/table/table_configurations.dart';
export 'models/config/video/editor/video_configurations.dart';
export 'models/config/video/editor/video_web_configurations.dart';
export 'models/config/video/toolbar/video_configurations.dart';
export 'utils/utils.dart';
export 'src/embeds/embed_types.dart';
export 'src/embeds/formula/toolbar/formula_button.dart';
export 'src/embeds/image/editor/image_embed.dart';
export 'src/embeds/image/editor/image_embed_types.dart';
export 'src/embeds/image/editor/image_web_embed.dart';
export 'src/embeds/image/toolbar/image_button.dart';
export 'src/embeds/others/camera_button/camera_button.dart';
export 'src/embeds/others/media_button/media_button.dart';
export 'src/embeds/table/editor/table_cell_embed.dart';
export 'src/embeds/table/editor/table_embed.dart';
export 'src/embeds/table/editor/table_models.dart';
export 'src/embeds/table/toolbar/table_button.dart';
export 'src/embeds/unknown/editor/unknown_embed.dart';
export 'src/embeds/video/editor/video_embed.dart';
export 'src/embeds/video/editor/video_web_embed.dart';
export 'src/embeds/video/toolbar/video_button.dart';
export 'src/embeds/video/video.dart';
export 'src/extensions/controller_ext.dart';
export 'src/flutter_quill_embeds.dart';
export 'src/models/config/camera/camera_configurations.dart';
export 'src/models/config/formula/formula_configurations.dart';
export 'src/models/config/image/editor/image_configurations.dart';
export 'src/models/config/image/editor/image_web_configurations.dart';
export 'src/models/config/image/toolbar/image_configurations.dart';
export 'src/models/config/media/media_button_configurations.dart';
export 'src/models/config/shared_configurations.dart';
export 'src/models/config/table/table_configurations.dart';
export 'src/models/config/video/editor/video_configurations.dart';
export 'src/models/config/video/editor/video_web_configurations.dart';
export 'src/models/config/video/editor/youtube_video_support_mode.dart';
export 'src/models/config/video/toolbar/video_configurations.dart';
export 'src/utils/utils.dart';
// TODO: Refactor flutter_quill_extensions to match the structure of flutter_quill
// Also avoid exposing all APIs as public. Use `src` as directory name
@immutable
class FlutterQuillExtensions {

@ -6,7 +6,7 @@ import 'package:flutter_quill/flutter_quill.dart';
import 'package:url_launcher/url_launcher.dart';
import 'package:video_player/video_player.dart';
import '../../flutter_quill_extensions.dart';
import '../../../flutter_quill_extensions.dart';
/// Widget for playing back video
/// Refer to https://github.com/flutter/plugins/tree/master/packages/video_player/video_player
Loading…
Cancel
Save