forked from singerdmx/flutter-quill
-
Notifications
You must be signed in to change notification settings - Fork 0
/
select_header_style.dart
46 lines (41 loc) · 1.2 KB
/
select_header_style.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import 'package:flutter/widgets.dart' show Axis;
import '../../../../widgets/toolbar/base_toolbar.dart';
import '../../../documents/attribute.dart';
class QuillToolbarSelectHeaderStyleButtonExtraOptions
extends QuillToolbarBaseButtonExtraOptions {
const QuillToolbarSelectHeaderStyleButtonExtraOptions({
required super.controller,
required super.context,
required super.onPressed,
});
}
class QuillToolbarSelectHeaderStyleButtonsOptions
extends QuillToolbarBaseButtonOptions<
QuillToolbarSelectHeaderStyleButtonsOptions,
QuillToolbarSelectHeaderStyleButtonExtraOptions> {
const QuillToolbarSelectHeaderStyleButtonsOptions({
super.afterButtonPressed,
super.childBuilder,
super.controller,
super.iconTheme,
super.tooltip,
this.axis,
this.attributes,
this.iconSize,
this.iconButtonFactor,
});
/// Default value:
/// ```dart
/// const [
/// Attribute.header,
/// Attribute.h1,
/// Attribute.h2,
/// Attribute.h3,
/// ]
/// ```
final List<Attribute>? attributes;
/// By default we will the toolbar axis from [QuillToolbarConfigurations]
final Axis? axis;
final double? iconSize;
final double? iconButtonFactor;
}