-
Notifications
You must be signed in to change notification settings - Fork 845
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
281 additions
and
151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
import 'package:flutter/widgets.dart'; | ||
|
||
import '../../../../widgets/controller.dart'; | ||
import '../../../themes/quill_dialog_theme.dart'; | ||
import '../../../themes/quill_icon_theme.dart'; | ||
import 'base.dart'; | ||
|
||
class QuillToolbarLinkStyleButton2ExtraOptions | ||
extends QuillToolbarBaseButtonExtraOptions { | ||
const QuillToolbarLinkStyleButton2ExtraOptions({ | ||
required super.controller, | ||
required super.context, | ||
required super.onPressed, | ||
}); | ||
} | ||
|
||
class QuillToolbarLinkStyleButton2Options extends QuillToolbarBaseButtonOptions< | ||
QuillToolbarLinkStyleButton2Options, | ||
QuillToolbarLinkStyleButton2ExtraOptions> { | ||
const QuillToolbarLinkStyleButton2Options({ | ||
this.iconSize, | ||
this.dialogTheme, | ||
this.constraints, | ||
this.addLinkLabel, | ||
this.editLinkLabel, | ||
this.linkColor, | ||
this.validationMessage, | ||
this.buttonSize, | ||
this.dialogBarrierColor, | ||
this.childrenSpacing = 16.0, | ||
this.autovalidateMode = AutovalidateMode.disabled, | ||
super.iconData, | ||
super.afterButtonPressed, | ||
super.tooltip, | ||
super.iconTheme, | ||
super.childBuilder, | ||
super.controller, | ||
}); | ||
|
||
final double? iconSize; | ||
final QuillDialogTheme? dialogTheme; | ||
|
||
/// The constrains for dialog. | ||
final BoxConstraints? constraints; | ||
|
||
/// The text of label in link add mode. | ||
final String? addLinkLabel; | ||
|
||
/// The text of label in link edit mode. | ||
final String? editLinkLabel; | ||
|
||
/// The color of URL. | ||
final Color? linkColor; | ||
|
||
/// The margin between child widgets in the dialog. | ||
final double childrenSpacing; | ||
|
||
final AutovalidateMode autovalidateMode; | ||
final String? validationMessage; | ||
|
||
/// The size of dialog buttons. | ||
final Size? buttonSize; | ||
|
||
final Color? dialogBarrierColor; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.