|
|
@ -1,3 +1,4 @@ |
|
|
|
|
|
|
|
// ignore_for_file: public_member_api_docs, sort_constructors_first |
|
|
|
import 'package:flutter/material.dart'; |
|
|
|
import 'package:flutter/material.dart'; |
|
|
|
|
|
|
|
|
|
|
|
@immutable |
|
|
|
@immutable |
|
|
@ -16,6 +17,18 @@ class QuillIconTheme { |
|
|
|
|
|
|
|
|
|
|
|
final IconButtonData? iconButtonUnselectedData; |
|
|
|
final IconButtonData? iconButtonUnselectedData; |
|
|
|
final IconButtonData? iconButtonSelectedData; |
|
|
|
final IconButtonData? iconButtonSelectedData; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
QuillIconTheme copyWith({ |
|
|
|
|
|
|
|
IconButtonData? iconButtonUnselectedData, |
|
|
|
|
|
|
|
IconButtonData? iconButtonSelectedData, |
|
|
|
|
|
|
|
}) { |
|
|
|
|
|
|
|
return QuillIconTheme( |
|
|
|
|
|
|
|
iconButtonUnselectedData: |
|
|
|
|
|
|
|
iconButtonUnselectedData ?? this.iconButtonUnselectedData, |
|
|
|
|
|
|
|
iconButtonSelectedData: |
|
|
|
|
|
|
|
iconButtonSelectedData ?? this.iconButtonSelectedData, |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@immutable |
|
|
|
@immutable |
|
|
@ -61,4 +74,48 @@ class IconButtonData { |
|
|
|
final ButtonStyle? style; |
|
|
|
final ButtonStyle? style; |
|
|
|
final bool? isSelected; |
|
|
|
final bool? isSelected; |
|
|
|
final Widget? selectedIcon; |
|
|
|
final Widget? selectedIcon; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
IconButtonData copyWith({ |
|
|
|
|
|
|
|
double? iconSize, |
|
|
|
|
|
|
|
VisualDensity? visualDensity, |
|
|
|
|
|
|
|
EdgeInsetsGeometry? padding, |
|
|
|
|
|
|
|
AlignmentGeometry? alignment, |
|
|
|
|
|
|
|
double? splashRadius, |
|
|
|
|
|
|
|
Color? color, |
|
|
|
|
|
|
|
Color? focusColor, |
|
|
|
|
|
|
|
Color? hoverColor, |
|
|
|
|
|
|
|
Color? highlightColor, |
|
|
|
|
|
|
|
Color? splashColor, |
|
|
|
|
|
|
|
Color? disabledColor, |
|
|
|
|
|
|
|
MouseCursor? mouseCursor, |
|
|
|
|
|
|
|
bool? autofocus, |
|
|
|
|
|
|
|
String? tooltip, |
|
|
|
|
|
|
|
bool? enableFeedback, |
|
|
|
|
|
|
|
BoxConstraints? constraints, |
|
|
|
|
|
|
|
ButtonStyle? style, |
|
|
|
|
|
|
|
bool? isSelected, |
|
|
|
|
|
|
|
Widget? selectedIcon, |
|
|
|
|
|
|
|
}) { |
|
|
|
|
|
|
|
return IconButtonData( |
|
|
|
|
|
|
|
iconSize: iconSize ?? this.iconSize, |
|
|
|
|
|
|
|
visualDensity: visualDensity ?? this.visualDensity, |
|
|
|
|
|
|
|
padding: padding ?? this.padding, |
|
|
|
|
|
|
|
alignment: alignment ?? this.alignment, |
|
|
|
|
|
|
|
splashRadius: splashRadius ?? this.splashRadius, |
|
|
|
|
|
|
|
color: color ?? this.color, |
|
|
|
|
|
|
|
focusColor: focusColor ?? this.focusColor, |
|
|
|
|
|
|
|
hoverColor: hoverColor ?? this.hoverColor, |
|
|
|
|
|
|
|
highlightColor: highlightColor ?? this.highlightColor, |
|
|
|
|
|
|
|
splashColor: splashColor ?? this.splashColor, |
|
|
|
|
|
|
|
disabledColor: disabledColor ?? this.disabledColor, |
|
|
|
|
|
|
|
mouseCursor: mouseCursor ?? this.mouseCursor, |
|
|
|
|
|
|
|
autofocus: autofocus ?? this.autofocus, |
|
|
|
|
|
|
|
tooltip: tooltip ?? this.tooltip, |
|
|
|
|
|
|
|
enableFeedback: enableFeedback ?? this.enableFeedback, |
|
|
|
|
|
|
|
constraints: constraints ?? this.constraints, |
|
|
|
|
|
|
|
style: style ?? this.style, |
|
|
|
|
|
|
|
isSelected: isSelected ?? this.isSelected, |
|
|
|
|
|
|
|
selectedIcon: selectedIcon ?? this.selectedIcon, |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|