Skip to content

Commit

Permalink
- Updated all the dependencies to the latest versions
Browse files Browse the repository at this point in the history
  • Loading branch information
the-airbender committed Jan 13, 2024
1 parent 68f918c commit c658a9a
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 17 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
### 2.2.8

- Updated all dependencies to their latest versions

### 2.2.7

- Updated all dependencies to their latest versions

### 2.2.6

- Fixed the bug, `isEnabled` is not disabling the editor.
Expand Down
3 changes: 1 addition & 2 deletions lib/src/quill_editor_wrapper.dart
Original file line number Diff line number Diff line change
Expand Up @@ -519,8 +519,7 @@ class QuillHtmlEditorState extends State<QuillHtmlEditor> {

/// a private method to add remove or delete table in the editor
Future _modifyTable(EditTableEnum type) async {
return await _webviewController
.callJsMethod("modifyTable", [describeEnum(type)]);
return await _webviewController.callJsMethod("modifyTable", [type.name]);
}

/// a private method to replace selection text in the editor
Expand Down
3 changes: 1 addition & 2 deletions lib/src/utils/format_config.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:quill_html_editor/src/utils/hex_color.dart';

Expand Down Expand Up @@ -101,7 +100,7 @@ class FormatConfig {
: 2,
if (color != null) 'color': color?.toHex(),
if (background != null) 'background': background?.toHex(),
if (align != null) 'align': describeEnum(align ?? AlignType.left),
if (align != null) 'align': (align ?? AlignType.left).name,

/// 'list':, 'image':, 'video':, 'clean':, 'link':, 'size': size,
};
Expand Down
10 changes: 3 additions & 7 deletions lib/src/utils/string_util.dart
Original file line number Diff line number Diff line change
@@ -1,27 +1,23 @@
import 'dart:ui';

import 'package:flutter/foundation.dart';

///[StringUtil] utility class to convert objects/styles into string
class StringUtil {
///[getCssFontWeight] a utility method to convert the font weight
///into css style for the editor; default FontWeight will be normal
static String getCssFontWeight(FontWeight? fontWeight) {
return describeEnum(fontWeight ?? FontWeight.normal)
.toString()
.replaceAll('w', '');
return (fontWeight ?? FontWeight.normal).toString().replaceAll('w', '');
}

///[getCssFontStyle] a utility method to convert the font style
///into css style for the editor; default FontStyle will be normal
static String getCssFontStyle(FontStyle? fontStyle) {
return describeEnum(fontStyle ?? FontStyle.normal).toString();
return (fontStyle ?? FontStyle.normal).name;
}

///[getCssTextAlign] a utility method to convert the text align
///into css style for the editor; default TextAlign will be start
static String getCssTextAlign(TextAlign? textAlign) {
return describeEnum(textAlign ?? TextAlign.start).toString();
return (textAlign ?? TextAlign.start).name;
}

///[sanitizeVideoUrl] a utility method to convert the Youtube, Vimeo or Network urls to embed in editor
Expand Down
1 change: 1 addition & 0 deletions lib/src/widgets/el_tooltip/src/arrow.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import 'package:flutter/material.dart';

import 'enum/el_tooltip_position.dart';
import 'paint/corner.dart';
import 'paint/triangle.dart';
Expand Down
1 change: 1 addition & 0 deletions lib/src/widgets/el_tooltip/src/bubble.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import 'package:flutter/material.dart';

import 'element_box.dart';

/// Bubble serves as the tooltip container
Expand Down
1 change: 1 addition & 0 deletions lib/src/widgets/el_tooltip/src/position_manager.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import 'package:flutter/material.dart';

import 'element_box.dart';
import 'enum/el_tooltip_position.dart';
import 'tooltip_elements_display.dart';
Expand Down
2 changes: 1 addition & 1 deletion lib/src/widgets/webviewx/src/utils/dart_ui_fix.dart
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export 'dart_ui_facade.dart' if (dart.library.html) 'dart:ui';
export 'dart_ui_facade.dart' if (dart.library.html) 'dart:ui_web';
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import 'package:flutter/foundation.dart';
import 'package:quill_html_editor/src/widgets/webviewx/src/utils/source_type.dart';

/// Model class for webview's content
Expand Down Expand Up @@ -43,7 +42,7 @@ class WebViewContent {
String toString() {
return 'WebViewContent:\n'
'Source: $source\n'
'SourceType: ${describeEnum(sourceType)}\n'
'SourceType: ${sourceType.name}\n'
'Last request Headers: ${headers ?? 'none'}\n'
'Last request Body: ${webPostRequestBody ?? 'none'}\n';
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import 'dart:async';

import 'package:flutter/foundation.dart';
import 'package:quill_html_editor/src/widgets/webviewx/src/utils/source_type.dart';

/// A copy from the original webview's navigation delegate typedef
Expand Down Expand Up @@ -77,7 +76,7 @@ class NavigationContent {

@override
String toString() {
return 'NavigationContent(source: $source, sourceType: ${describeEnum(sourceType)})';
return 'NavigationContent(source: $source, sourceType: ${sourceType.name})';
}
}

Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: quill_html_editor
description: HTML rich text editor for Android, iOS, and Web, it is built with the powerful Quill Js library. Which is an open source WYSIWYG editor built for the modern web.

version: 2.2.6
version: 2.2.8
homepage: https://github.com/the-airbender/quill_html_editor
repository: https://github.com/the-airbender/quill_html_editor
maintainer: Pavan Kumar Nagulavancha
Expand Down

0 comments on commit c658a9a

Please sign in to comment.