Skip to content

Commit 7743620

Browse files
authored
chore: bump version 1.4.3 (#502)
1 parent ce8aa6d commit 7743620

File tree

4 files changed

+14
-5
lines changed

4 files changed

+14
-5
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 1.4.3
2+
* 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))
3+
14
## 1.4.2
25
* fix: platform issue on Web by @LucasXu0 in ([#498](https://github.com/AppFlowy-IO/appflowy-editor/pull/498))
36

documentation/images/showcase.png

2.16 MB
Loading

example/lib/pages/customize_theme_for_editor.dart

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import 'package:appflowy_editor/appflowy_editor.dart';
44
import 'package:flutter/gestures.dart';
55
import 'package:flutter/material.dart';
66
import 'package:flutter/services.dart';
7+
import 'package:google_fonts/google_fonts.dart';
78

89
class CustomizeThemeForEditor extends StatefulWidget {
910
const CustomizeThemeForEditor({super.key});
@@ -63,6 +64,11 @@ class _CustomizeThemeForEditorState extends State<CustomizeThemeForEditor> {
6364
editorState: editorState,
6465
editorStyle: customizeEditorStyle(),
6566
blockComponentBuilders: customBuilder(),
67+
header: Image.asset(
68+
'assets/images/header.png',
69+
height: 200,
70+
fit: BoxFit.cover,
71+
),
6672
),
6773
);
6874
}
@@ -74,7 +80,7 @@ class _CustomizeThemeForEditorState extends State<CustomizeThemeForEditor> {
7480
if (HeadingBlockKeys.type == node.type) {
7581
return const EdgeInsets.symmetric(vertical: 30);
7682
}
77-
return const EdgeInsets.symmetric(vertical: 10);
83+
return const EdgeInsets.symmetric(vertical: 5);
7884
},
7985
textStyle: (node) {
8086
if (HeadingBlockKeys.type == node.type) {
@@ -139,13 +145,13 @@ class _CustomizeThemeForEditorState extends State<CustomizeThemeForEditor> {
139145
EditorStyle customizeEditorStyle() {
140146
return EditorStyle(
141147
padding: PlatformExtension.isDesktopOrWeb
142-
? const EdgeInsets.only(left: 100, right: 100, top: 20)
148+
? const EdgeInsets.only(left: 200, right: 200)
143149
: const EdgeInsets.symmetric(horizontal: 20),
144150
cursorColor: Colors.green,
145151
selectionColor: Colors.green.withOpacity(0.5),
146152
textStyleConfiguration: TextStyleConfiguration(
147-
text: const TextStyle(
148-
fontSize: 18.0,
153+
text: GoogleFonts.poppins(
154+
fontSize: 14.0,
149155
color: Colors.white,
150156
),
151157
bold: const TextStyle(

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: appflowy_editor
22
description: A highly customizable rich-text editor for Flutter. The AppFlowy Editor project for AppFlowy and beyond.
3-
version: 1.4.2
3+
version: 1.4.3
44
homepage: https://github.com/AppFlowy-IO/appflowy-editor
55

66
platforms:

0 commit comments

Comments
 (0)