fix: smart edit bugs (#1911)

This commit is contained in:
Lucas.Xu 2023-03-02 19:34:08 +08:00 committed by GitHub
parent a1a5675875
commit fd41459a30
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 53 additions and 38 deletions

View file

@ -177,7 +177,9 @@ class _AppFlowyEditorPageState extends State<_AppFlowyEditorPage> {
]
],
toolbarItems: [
smartEditItem,
if (openAIKey != null && openAIKey!.isNotEmpty) ...[
smartEditItem,
]
],
themeData: theme.copyWith(extensions: [
...theme.extensions.values,