|
|
@ -1,6 +1,7 @@ |
|
|
|
import 'package:flutter/widgets.dart' show Color; |
|
|
|
import 'package:flutter/widgets.dart' show Color; |
|
|
|
import './../../shared_configurations.dart' show QuillSharedConfigurations; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import './../../shared_configurations.dart' show QuillSharedConfigurations; |
|
|
|
|
|
|
|
import '../../../../widgets/controller.dart'; |
|
|
|
import 'base.dart'; |
|
|
|
import 'base.dart'; |
|
|
|
|
|
|
|
|
|
|
|
class QuillToolbarColorButtonExtraOptions |
|
|
|
class QuillToolbarColorButtonExtraOptions |
|
|
@ -31,9 +32,9 @@ class QuillToolbarColorButtonOptions extends QuillToolbarBaseButtonOptions< |
|
|
|
super.afterButtonPressed, |
|
|
|
super.afterButtonPressed, |
|
|
|
super.childBuilder, |
|
|
|
super.childBuilder, |
|
|
|
super.controller, |
|
|
|
super.controller, |
|
|
|
super.globalIconSize, |
|
|
|
|
|
|
|
super.iconTheme, |
|
|
|
super.iconTheme, |
|
|
|
super.tooltip, |
|
|
|
super.tooltip, |
|
|
|
|
|
|
|
this.customOnPressedCallback, |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
final double? iconSize; |
|
|
|
final double? iconSize; |
|
|
@ -42,4 +43,11 @@ class QuillToolbarColorButtonOptions extends QuillToolbarBaseButtonOptions< |
|
|
|
/// By default will use the default `dialogBarrierColor` from |
|
|
|
/// By default will use the default `dialogBarrierColor` from |
|
|
|
/// [QuillSharedConfigurations] |
|
|
|
/// [QuillSharedConfigurations] |
|
|
|
final Color? dialogBarrierColor; |
|
|
|
final Color? dialogBarrierColor; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
final QuillToolbarColorPickerOnPressedCallback? customOnPressedCallback; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
typedef QuillToolbarColorPickerOnPressedCallback = Future<void> Function( |
|
|
|
|
|
|
|
QuillController controller, |
|
|
|
|
|
|
|
bool isBackground, |
|
|
|
|
|
|
|
); |
|
|
|