Fix analysis issues

pull/1566/head
Ellet 1 year ago
parent 5fcda94b59
commit 70d5fe0208
No known key found for this signature in database
GPG Key ID: C488CC70BBCEF0D1
  1. 4
      lib/flutter_quill.dart
  2. 4
      lib/src/models/config/editor/editor_configurations.dart
  3. 2
      lib/src/models/config/raw_editor/raw_editor_configurations.dart
  4. 2
      lib/src/models/config/toolbar/simple_toolbar_configurations.dart
  5. 2
      lib/src/packages/quill_markdown/custom_quill_attributes.dart
  6. 2
      lib/src/packages/quill_markdown/delta_to_markdown.dart
  7. 3
      lib/src/packages/quill_markdown/embeddable_table_syntax.dart
  8. 2
      lib/src/packages/quill_markdown/markdown_to_delta.dart
  9. 2
      lib/src/packages/quill_markdown/utils.dart
  10. 2
      lib/src/widgets/editor/editor.dart
  11. 10
      lib/src/widgets/quill/text_block.dart
  12. 4
      lib/src/widgets/quill/text_line.dart
  13. 4
      lib/src/widgets/raw_editor/raw_editor_state.dart
  14. 2
      lib/src/widgets/toolbar/buttons/link_style2_button.dart
  15. 2
      lib/src/widgets/toolbar/buttons/link_style_button.dart

@ -23,12 +23,12 @@ export 'src/models/themes/quill_dialog_theme.dart';
export 'src/models/themes/quill_icon_theme.dart'; export 'src/models/themes/quill_icon_theme.dart';
export 'src/utils/embeds.dart'; export 'src/utils/embeds.dart';
export 'src/widgets/editor/editor.dart'; export 'src/widgets/editor/editor.dart';
export 'src/widgets/quill/quill_controller.dart';
export 'src/widgets/others/cursor.dart'; export 'src/widgets/others/cursor.dart';
export 'src/widgets/others/default_styles.dart'; export 'src/widgets/others/default_styles.dart';
export 'src/widgets/quill/embeds.dart';
export 'src/widgets/others/link.dart' export 'src/widgets/others/link.dart'
show LinkActionPickerDelegate, LinkMenuAction; show LinkActionPickerDelegate, LinkMenuAction;
export 'src/widgets/quill/embeds.dart';
export 'src/widgets/quill/quill_controller.dart';
export 'src/widgets/raw_editor/raw_editor.dart'; export 'src/widgets/raw_editor/raw_editor.dart';
export 'src/widgets/raw_editor/raw_editor_state.dart'; export 'src/widgets/raw_editor/raw_editor_state.dart';
export 'src/widgets/style_widgets/style_widgets.dart'; export 'src/widgets/style_widgets/style_widgets.dart';

@ -7,11 +7,11 @@ import 'package:flutter/widgets.dart';
import 'package:meta/meta.dart' show experimental; import 'package:meta/meta.dart' show experimental;
import '../../../widgets/editor/editor_builder.dart'; import '../../../widgets/editor/editor_builder.dart';
import '../../../widgets/quill/quill_controller.dart';
import '../../../widgets/others/default_styles.dart'; import '../../../widgets/others/default_styles.dart';
import '../../../widgets/others/delegate.dart'; import '../../../widgets/others/delegate.dart';
import '../../../widgets/quill/embeds.dart';
import '../../../widgets/others/link.dart'; import '../../../widgets/others/link.dart';
import '../../../widgets/quill/embeds.dart';
import '../../../widgets/quill/quill_controller.dart';
import '../../../widgets/raw_editor/raw_editor.dart'; import '../../../widgets/raw_editor/raw_editor.dart';
import '../../themes/quill_dialog_theme.dart'; import '../../themes/quill_dialog_theme.dart';
import '../quill_shared_configurations.dart'; import '../quill_shared_configurations.dart';

@ -25,11 +25,11 @@ import 'package:flutter/widgets.dart'
Widget; Widget;
import 'package:meta/meta.dart' show immutable; import 'package:meta/meta.dart' show immutable;
import '../../../widgets/quill/quill_controller.dart';
import '../../../widgets/others/cursor.dart'; import '../../../widgets/others/cursor.dart';
import '../../../widgets/others/default_styles.dart'; import '../../../widgets/others/default_styles.dart';
import '../../../widgets/others/delegate.dart'; import '../../../widgets/others/delegate.dart';
import '../../../widgets/others/link.dart'; import '../../../widgets/others/link.dart';
import '../../../widgets/quill/quill_controller.dart';
import '../../../widgets/raw_editor/raw_editor.dart'; import '../../../widgets/raw_editor/raw_editor.dart';
import '../../../widgets/raw_editor/raw_editor_state.dart'; import '../../../widgets/raw_editor/raw_editor_state.dart';
import '../../themes/quill_dialog_theme.dart'; import '../../themes/quill_dialog_theme.dart';

@ -4,8 +4,8 @@ import 'package:flutter/foundation.dart' show immutable;
import 'package:flutter/widgets.dart' import 'package:flutter/widgets.dart'
show Axis, Widget, WrapAlignment, WrapCrossAlignment; show Axis, Widget, WrapAlignment, WrapCrossAlignment;
import '../../../widgets/quill/quill_controller.dart';
import '../../../widgets/quill/embeds.dart'; import '../../../widgets/quill/embeds.dart';
import '../../../widgets/quill/quill_controller.dart';
import '../../themes/quill_dialog_theme.dart'; import '../../themes/quill_dialog_theme.dart';
import '../../themes/quill_icon_theme.dart'; import '../../themes/quill_icon_theme.dart';
import 'buttons/base_configurations.dart'; import 'buttons/base_configurations.dart';

@ -1,4 +1,4 @@
import 'package:flutter_quill/flutter_quill.dart'; import '../../../flutter_quill.dart';
/// Custom attribute to save the language of codeblock /// Custom attribute to save the language of codeblock
class CodeBlockLanguageAttribute extends Attribute<String?> { class CodeBlockLanguageAttribute extends Attribute<String?> {

@ -2,7 +2,7 @@ import 'dart:convert';
import 'dart:ui'; import 'dart:ui';
import 'package:collection/collection.dart'; import 'package:collection/collection.dart';
import 'package:flutter_quill/flutter_quill.dart'; import '../../../flutter_quill.dart';
import './custom_quill_attributes.dart'; import './custom_quill_attributes.dart';
import './utils.dart'; import './utils.dart';

@ -1,7 +1,8 @@
import 'package:charcode/charcode.dart'; import 'package:charcode/charcode.dart';
import 'package:flutter_quill/flutter_quill.dart' hide Node;
import 'package:markdown/markdown.dart'; import 'package:markdown/markdown.dart';
import '../../../flutter_quill.dart' hide Node;
/// Parses markdown table and saves the table markdown content into the element attributes. /// Parses markdown table and saves the table markdown content into the element attributes.
class EmbeddableTableSyntax extends BlockSyntax { class EmbeddableTableSyntax extends BlockSyntax {
/// @nodoc /// @nodoc

@ -2,9 +2,9 @@ import 'dart:collection';
import 'dart:convert'; import 'dart:convert';
import 'package:collection/collection.dart'; import 'package:collection/collection.dart';
import 'package:flutter_quill/flutter_quill.dart';
import 'package:markdown/markdown.dart' as md; import 'package:markdown/markdown.dart' as md;
import '../../../flutter_quill.dart';
import './custom_quill_attributes.dart'; import './custom_quill_attributes.dart';
import './embeddable_table_syntax.dart'; import './embeddable_table_syntax.dart';
import './utils.dart'; import './utils.dart';

@ -1,5 +1,5 @@
//ignore_for_file: cast_nullable_to_non_nullable //ignore_for_file: cast_nullable_to_non_nullable
import 'package:flutter_quill/flutter_quill.dart'; import '../../../flutter_quill.dart';
import './embeddable_table_syntax.dart'; import './embeddable_table_syntax.dart';

@ -18,9 +18,9 @@ import '../../utils/platform.dart';
import '../others/box.dart'; import '../others/box.dart';
import '../others/cursor.dart'; import '../others/cursor.dart';
import '../others/delegate.dart'; import '../others/delegate.dart';
import '../quill/embeds.dart';
import '../others/float_cursor.dart'; import '../others/float_cursor.dart';
import '../others/text_selection.dart'; import '../others/text_selection.dart';
import '../quill/embeds.dart';
import '../raw_editor/raw_editor.dart'; import '../raw_editor/raw_editor.dart';
import '../utils/provider.dart'; import '../utils/provider.dart';
import 'editor_builder.dart'; import 'editor_builder.dart';

@ -8,17 +8,17 @@ import '../../models/documents/nodes/line.dart';
import '../../models/structs/vertical_spacing.dart'; import '../../models/structs/vertical_spacing.dart';
import '../../utils/delta.dart'; import '../../utils/delta.dart';
import '../editor/editor.dart'; import '../editor/editor.dart';
import '../style_widgets/bullet_point.dart';
import '../style_widgets/checkbox_point.dart';
import '../style_widgets/number_point.dart';
import '../others/box.dart'; import '../others/box.dart';
import 'quill_controller.dart';
import '../others/cursor.dart'; import '../others/cursor.dart';
import '../others/default_styles.dart'; import '../others/default_styles.dart';
import '../others/delegate.dart'; import '../others/delegate.dart';
import '../others/link.dart'; import '../others/link.dart';
import 'text_line.dart';
import '../others/text_selection.dart'; import '../others/text_selection.dart';
import '../style_widgets/bullet_point.dart';
import '../style_widgets/checkbox_point.dart';
import '../style_widgets/number_point.dart';
import 'quill_controller.dart';
import 'text_line.dart';
const List<int> arabianRomanNumbers = [ const List<int> arabianRomanNumbers = [
1000, 1000,

@ -11,8 +11,8 @@ import 'package:url_launcher/url_launcher.dart';
import '../../models/documents/attribute.dart'; import '../../models/documents/attribute.dart';
import '../../models/documents/nodes/container.dart' as container_node; import '../../models/documents/nodes/container.dart' as container_node;
import '../../models/documents/nodes/embeddable.dart'; import '../../models/documents/nodes/embeddable.dart';
import '../../models/documents/nodes/leaf.dart';
import '../../models/documents/nodes/leaf.dart' as leaf; import '../../models/documents/nodes/leaf.dart' as leaf;
import '../../models/documents/nodes/leaf.dart';
import '../../models/documents/nodes/line.dart'; import '../../models/documents/nodes/line.dart';
import '../../models/documents/nodes/node.dart'; import '../../models/documents/nodes/node.dart';
import '../../models/documents/style.dart'; import '../../models/documents/style.dart';
@ -21,7 +21,6 @@ import '../../utils/color.dart';
import '../../utils/font.dart'; import '../../utils/font.dart';
import '../../utils/platform.dart'; import '../../utils/platform.dart';
import '../others/box.dart'; import '../others/box.dart';
import 'quill_controller.dart';
import '../others/cursor.dart'; import '../others/cursor.dart';
import '../others/default_styles.dart'; import '../others/default_styles.dart';
import '../others/delegate.dart'; import '../others/delegate.dart';
@ -29,6 +28,7 @@ import '../others/keyboard_listener.dart';
import '../others/link.dart'; import '../others/link.dart';
import '../others/proxy.dart'; import '../others/proxy.dart';
import '../others/text_selection.dart'; import '../others/text_selection.dart';
import 'quill_controller.dart';
class TextLine extends StatefulWidget { class TextLine extends StatefulWidget {
const TextLine({ const TextLine({

@ -36,15 +36,15 @@ import '../../utils/delta.dart';
import '../../utils/embeds.dart'; import '../../utils/embeds.dart';
import '../../utils/platform.dart'; import '../../utils/platform.dart';
import '../editor/editor.dart'; import '../editor/editor.dart';
import '../quill/quill_controller.dart';
import '../others/cursor.dart'; import '../others/cursor.dart';
import '../others/default_styles.dart'; import '../others/default_styles.dart';
import '../others/keyboard_listener.dart'; import '../others/keyboard_listener.dart';
import '../others/link.dart'; import '../others/link.dart';
import '../others/proxy.dart'; import '../others/proxy.dart';
import '../others/text_selection.dart';
import '../quill/quill_controller.dart';
import '../quill/text_block.dart'; import '../quill/text_block.dart';
import '../quill/text_line.dart'; import '../quill/text_line.dart';
import '../others/text_selection.dart';
import 'quill_single_child_scroll_view.dart'; import 'quill_single_child_scroll_view.dart';
import 'raw_editor.dart'; import 'raw_editor.dart';
import 'raw_editor_actions.dart'; import 'raw_editor_actions.dart';

@ -10,8 +10,8 @@ import '../../../l10n/widgets/localizations.dart';
import '../../../models/documents/attribute.dart'; import '../../../models/documents/attribute.dart';
import '../../../models/themes/quill_dialog_theme.dart'; import '../../../models/themes/quill_dialog_theme.dart';
import '../../../models/themes/quill_icon_theme.dart'; import '../../../models/themes/quill_icon_theme.dart';
import '../../quill/quill_controller.dart';
import '../../others/link.dart'; import '../../others/link.dart';
import '../../quill/quill_controller.dart';
import '../base_toolbar.dart'; import '../base_toolbar.dart';
/// Alternative version of [QuillToolbarLinkStyleButton]. This widget has more /// Alternative version of [QuillToolbarLinkStyleButton]. This widget has more

@ -8,8 +8,8 @@ import '../../../models/rules/insert.dart';
import '../../../models/structs/link_dialog_action.dart'; import '../../../models/structs/link_dialog_action.dart';
import '../../../models/themes/quill_dialog_theme.dart'; import '../../../models/themes/quill_dialog_theme.dart';
import '../../../models/themes/quill_icon_theme.dart'; import '../../../models/themes/quill_icon_theme.dart';
import '../../quill/quill_controller.dart';
import '../../others/link.dart'; import '../../others/link.dart';
import '../../quill/quill_controller.dart';
import '../base_toolbar.dart'; import '../base_toolbar.dart';
class QuillToolbarLinkStyleButton extends StatefulWidget { class QuillToolbarLinkStyleButton extends StatefulWidget {

Loading…
Cancel
Save