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 = { final attributes = {
CalloutBlockKeys.delta: (delta ?? Delta()).toJson(), CalloutBlockKeys.delta: (delta ?? Delta()).toJson(),
CalloutBlockKeys.icon: emoji, CalloutBlockKeys.icon: emoji,
CalloutBlockKeys.backgroundColor: defaultColor?.toHex() ?? '#f2f2f2', CalloutBlockKeys.backgroundColor: defaultColor?.toHex(),
}; };
return Node( return Node(
type: CalloutBlockKeys.type, type: CalloutBlockKeys.type,

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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