chore: bump version 1.4.3 (#502)

This commit is contained in:
Lucas.Xu 2023-09-25 17:53:18 +08:00 • committed by GitHub
commit 77436201ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 5 deletions

View file

@ -1,3 +1,6 @@
## 1.4.3
* fix: the text within the `<mark>` tag didn't parse correctly when pasting HTML by @LucasXu0 in ([#501](https://github.com/AppFlowy-IO/appflowy-editor/pull/501))
## 1.4.2 ## 1.4.2
* fix: platform issue on Web by @LucasXu0 in ([#498](https://github.com/AppFlowy-IO/appflowy-editor/pull/498)) * fix: platform issue on Web by @LucasXu0 in ([#498](https://github.com/AppFlowy-IO/appflowy-editor/pull/498))

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 MiB

After

Width:  |  Height:  |  Size: 3.3 MiB

Before After
Before After

View file

@ -4,6 +4,7 @@ import 'package:appflowy_editor/appflowy_editor.dart';
import 'package:flutter/gestures.dart'; import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter/services.dart'; import 'package:flutter/services.dart';
import 'package:google_fonts/google_fonts.dart';
class CustomizeThemeForEditor extends StatefulWidget { class CustomizeThemeForEditor extends StatefulWidget {
const CustomizeThemeForEditor({super.key}); const CustomizeThemeForEditor({super.key});
@ -63,6 +64,11 @@ class _CustomizeThemeForEditorState extends State<CustomizeThemeForEditor> {
editorState: editorState, editorState: editorState,
editorStyle: customizeEditorStyle(), editorStyle: customizeEditorStyle(),
blockComponentBuilders: customBuilder(), blockComponentBuilders: customBuilder(),
header: Image.asset(
'assets/images/header.png',
height: 200,
fit: BoxFit.cover,
),
), ),
); );
} }
@ -74,7 +80,7 @@ class _CustomizeThemeForEditorState extends State<CustomizeThemeForEditor> {
if (HeadingBlockKeys.type == node.type) { if (HeadingBlockKeys.type == node.type) {
return const EdgeInsets.symmetric(vertical: 30); return const EdgeInsets.symmetric(vertical: 30);
} }
return const EdgeInsets.symmetric(vertical: 10); return const EdgeInsets.symmetric(vertical: 5);
}, },
textStyle: (node) { textStyle: (node) {
if (HeadingBlockKeys.type == node.type) { if (HeadingBlockKeys.type == node.type) {
@ -139,13 +145,13 @@ class _CustomizeThemeForEditorState extends State<CustomizeThemeForEditor> {
EditorStyle customizeEditorStyle() { EditorStyle customizeEditorStyle() {
return EditorStyle( return EditorStyle(
padding: PlatformExtension.isDesktopOrWeb padding: PlatformExtension.isDesktopOrWeb
? const EdgeInsets.only(left: 100, right: 100, top: 20) ? const EdgeInsets.only(left: 200, right: 200)
: const EdgeInsets.symmetric(horizontal: 20), : const EdgeInsets.symmetric(horizontal: 20),
cursorColor: Colors.green, cursorColor: Colors.green,
selectionColor: Colors.green.withOpacity(0.5), selectionColor: Colors.green.withOpacity(0.5),
textStyleConfiguration: TextStyleConfiguration( textStyleConfiguration: TextStyleConfiguration(
text: const TextStyle( text: GoogleFonts.poppins(
fontSize: 18.0, fontSize: 14.0,
color: Colors.white, color: Colors.white,
), ),
bold: const TextStyle( bold: const TextStyle(

View file

@ -1,6 +1,6 @@
name: appflowy_editor name: appflowy_editor
description: A highly customizable rich-text editor for Flutter. The AppFlowy Editor project for AppFlowy and beyond. description: A highly customizable rich-text editor for Flutter. The AppFlowy Editor project for AppFlowy and beyond.
version: 1.4.2 version: 1.4.3
homepage: https://github.com/AppFlowy-IO/appflowy-editor homepage: https://github.com/AppFlowy-IO/appflowy-editor
platforms: platforms: