Skip to content

Commit

Permalink
Update FormulaButton
Browse files Browse the repository at this point in the history
  • Loading branch information
singerdmx committed Sep 15, 2022
1 parent a6c392a commit 5228f38
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 18 deletions.
15 changes: 1 addition & 14 deletions flutter_quill_extensions/lib/embeds/toolbar/formula_button.dart
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
4 changes: 0 additions & 4 deletions flutter_quill_extensions/lib/flutter_quill_extensions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Expand Down

0 comments on commit 5228f38

Please sign in to comment.