chore(extensions): deprecate media button, enable table button in the example

pull/1916/head
Ellet 9 months ago
parent 0488d8e0dc
commit a87b8cbdfa
  1. 1
      example/lib/screens/quill/my_quill_toolbar.dart
  2. 18
      flutter_quill_extensions/lib/flutter_quill_embeds.dart

@ -288,6 +288,7 @@ class MyQuillToolbar extends StatelessWidget {
: onImageInsert,
),
),
tableButtonOptions: const QuillToolbarTableButtonOptions(),
),
),
);

@ -121,8 +121,11 @@ class FlutterQuillEmbeds {
QuillToolbarVideoButtonOptions? videoButtonOptions =
const QuillToolbarVideoButtonOptions(),
QuillToolbarCameraButtonOptions? cameraButtonOptions,
QuillToolbarMediaButtonOptions? mediaButtonOptions,
QuillToolbarTableButtonOptions? tableButtonOptions,
@Deprecated(
'Media button has been removed, the value of this parameter will be ignored',
)
QuillToolbarMediaButtonOptions? mediaButtonOptions,
}) =>
[
if (imageButtonOptions != null)
@ -149,18 +152,5 @@ class FlutterQuillEmbeds {
controller: controller,
options: tableButtonOptions,
),
// if (mediaButtonOptions != null)
// (controller, toolbarIconSize, iconTheme, dialogTheme) =>
// QuillToolbarMediaButton(
// controller: mediaButtonOptions.controller ?? controller,
// options: mediaButtonOptions,
// ),
// Drop the support for formula button for now
// if (formulaButtonOptions != null)
// (controller, toolbarIconSize, iconTheme, dialogTheme) =>
// QuillToolbarFormulaButton(
// controller: formulaButtonOptions.controller ?? controller,
// options: formulaButtonOptions,
// ),
];
}

Loading…
Cancel
Save