mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-08-07 00:12:16 +00:00
chore: regenerate
This commit is contained in:
parent
f8f9c3404a
commit
75dd5c1d93
@ -260,8 +260,11 @@ class _ChangeFormatButtonState extends State<ChangeFormatButton> {
|
|||||||
constraints: const BoxConstraints(),
|
constraints: const BoxConstraints(),
|
||||||
onClose: () => widget.onOverrideVisibility?.call(false),
|
onClose: () => widget.onOverrideVisibility?.call(false),
|
||||||
child: buildButton(context),
|
child: buildButton(context),
|
||||||
popupBuilder: (_) => _ChangeFormatPopoverContent(
|
popupBuilder: (_) => BlocProvider.value(
|
||||||
onRegenerate: widget.onRegenerate,
|
value: context.read<AIPromptInputBloc>(),
|
||||||
|
child: _ChangeFormatPopoverContent(
|
||||||
|
onRegenerate: widget.onRegenerate,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -359,11 +362,16 @@ class _ChangeFormatPopoverContentState
|
|||||||
child: Row(
|
child: Row(
|
||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
children: [
|
children: [
|
||||||
ChangeFormatBar(
|
BlocBuilder<AIPromptInputBloc, AIPromptInputState>(
|
||||||
spacing: 2.0,
|
builder: (context, state) {
|
||||||
predefinedFormat: predefinedFormat,
|
return ChangeFormatBar(
|
||||||
onSelectPredefinedFormat: (format) {
|
spacing: 2.0,
|
||||||
setState(() => predefinedFormat = format);
|
showImageFormats: state.aiType.isCloud,
|
||||||
|
predefinedFormat: predefinedFormat,
|
||||||
|
onSelectPredefinedFormat: (format) {
|
||||||
|
setState(() => predefinedFormat = format);
|
||||||
|
},
|
||||||
|
);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
const HSpace(4.0),
|
const HSpace(4.0),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user