fix: v0.3.8.2 known issues (#4025)

This commit is contained in:
Lucas.Xu 2023-11-28 10:29:05 +08:00 committed by GitHub
parent 32ca864bf7
commit 3595de5e12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 32 additions and 23 deletions

View File

@ -37,7 +37,7 @@ Node calloutNode({
final attributes = {
CalloutBlockKeys.delta: (delta ?? Delta()).toJson(),
CalloutBlockKeys.icon: emoji,
CalloutBlockKeys.backgroundColor: defaultColor?.toHex() ?? '#f2f2f2',
CalloutBlockKeys.backgroundColor: defaultColor?.toHex(),
};
return Node(
type: CalloutBlockKeys.type,

View File

@ -118,6 +118,7 @@ class ImagePlaceholderState extends State<ImagePlaceholder> {
showFlowyMobileBottomSheet(
context,
title: LocaleKeys.editor_image.tr(),
isScrollControlled: true,
builder: (context) {
return ConstrainedBox(
constraints: const BoxConstraints(

View File

@ -106,25 +106,31 @@ class _UploadImageMenuState extends State<UploadImageMenu> {
indicatorSize: TabBarIndicatorSize.label,
isScrollable: true,
overlayColor: MaterialStatePropertyAll(
Theme.of(context).colorScheme.secondary,
PlatformExtension.isDesktop
? Theme.of(context).colorScheme.secondary
: Colors.transparent,
),
padding: EdgeInsets.zero,
tabs: values
.map(
(e) => FlowyHover(
style: const HoverStyle(borderRadius: BorderRadius.zero),
child: Padding(
padding: EdgeInsets.only(
left: 12.0,
right: 12.0,
bottom: 8.0,
top: PlatformExtension.isMobile ? 0 : 8.0,
),
child: FlowyText(e.description),
),
tabs: values.map(
(e) {
final child = Padding(
padding: EdgeInsets.only(
left: 12.0,
right: 12.0,
bottom: 8.0,
top: PlatformExtension.isMobile ? 0 : 8.0,
),
)
.toList(),
child: FlowyText(e.description),
);
if (PlatformExtension.isDesktop) {
return FlowyHover(
style: const HoverStyle(borderRadius: BorderRadius.zero),
child: child,
);
}
return child;
},
).toList(),
),
const Divider(
height: 2,

View File

@ -166,7 +166,6 @@ final _addBlockMenuItems = [
// callout
BlockMenuItem(
blockType: CalloutBlockKeys.type,
// FIXME: update icon
icon: const Icon(Icons.note_rounded),
label: LocaleKeys.document_plugins_callout.tr(),
isSelected: _unSelectable,
@ -261,6 +260,7 @@ extension on EditorState {
);
}
await apply(transaction);
service.keyboardService?.enableKeyBoard(selection);
}
Future<void> insertMathEquation(
@ -323,5 +323,6 @@ extension on EditorState {
Position(path: insertedPath.next),
);
await apply(transaction);
service.keyboardService?.enableKeyBoard(selection);
}
}

View File

@ -41,8 +41,9 @@ extension FlowyPluginExtension on FlowyPlugin {
extension ViewExtension on ViewPB {
Widget renderThumbnail({Color? iconColor}) {
const Widget widget = FlowySvg(FlowySvgs.document_s);
return widget;
return const FlowySvg(
FlowySvgs.document_s,
);
}
Widget defaultIcon() {

View File

@ -54,8 +54,8 @@ packages:
dependency: "direct main"
description:
path: "."
ref: "31acaff"
resolved-ref: "31acaff4f0bcd36a2946c9351dc1b5b5601b3994"
ref: a05f31b
resolved-ref: a05f31b600655192909c6d3e87c628fe2f0807c4
url: "https://github.com/AppFlowy-IO/appflowy-editor.git"
source: git
version: "2.0.0"

View File

@ -47,7 +47,7 @@ dependencies:
appflowy_editor:
git:
url: https://github.com/AppFlowy-IO/appflowy-editor.git
ref: "31acaff"
ref: "a05f31b"
appflowy_popover:
path: packages/appflowy_popover