Rich text editor for Flutter
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1013 B

import 'package:flutter/foundation.dart' show immutable;
import '../../../../../flutter_quill.dart';
@immutable
class QuillToolbarHistoryButtonExtraOptions
extends QuillToolbarBaseButtonExtraOptions {
const QuillToolbarHistoryButtonExtraOptions({
required this.canPressed,
required super.controller,
required super.context,
required super.onPressed,
});
/// If it can redo or undo
final bool canPressed;
}
@immutable
class QuillToolbarHistoryButtonOptions extends QuillToolbarBaseButtonOptions<
QuillToolbarHistoryButtonOptions, QuillToolbarHistoryButtonExtraOptions> {
const QuillToolbarHistoryButtonOptions({
required this.isUndo,
super.iconData,
super.controller,
super.iconTheme,
super.afterButtonPressed,
super.tooltip,
super.childBuilder,
this.iconSize,
});
/// If this true then it will be the undo button
/// otherwise it will be redo
final bool isUndo;
/// By default will use [globalIconSize]
final double? iconSize;
}