Update FormulaButton

pull/951/head
X Code 3 years ago
parent a6c392a9ae
commit 5228f389ba
  1. 15
      flutter_quill_extensions/lib/embeds/toolbar/formula_button.dart
  2. 4
      flutter_quill_extensions/lib/flutter_quill_extensions.dart

@ -1,38 +1,25 @@
import 'package:flutter/material.dart';
import 'package:flutter_quill/flutter_quill.dart';
import '../embed_types.dart';
class FormulaButton extends StatelessWidget {
const FormulaButton({
required this.icon,
required this.controller,
this.iconSize = kDefaultIconSize,
this.onImagePickCallback,
this.fillColor,
this.filePickImpl,
this.webImagePickImpl,
this.mediaPickSettingSelector,
this.iconTheme,
this.dialogTheme,
Key? key,
}) : super(key: key);
final IconData icon;
final double iconSize;
final Color? fillColor;
final QuillController controller;
final OnImagePickCallback? onImagePickCallback;
final WebImagePickImpl? webImagePickImpl;
final FilePickImpl? filePickImpl;
final MediaPickSettingSelector? mediaPickSettingSelector;
final QuillIconTheme? iconTheme;
final QuillDialogTheme? dialogTheme;

@ -84,10 +84,6 @@ class FlutterQuillEmbeds {
icon: Icons.functions,
iconSize: toolbarIconSize,
controller: controller,
onImagePickCallback: onImagePickCallback,
filePickImpl: filePickImpl,
webImagePickImpl: webImagePickImpl,
mediaPickSettingSelector: mediaPickSettingSelector,
iconTheme: iconTheme,
dialogTheme: dialogTheme,
)

Loading…
Cancel
Save