CDialogTheme class
Provides some modifications to the DialogTheme to properly configure overall dialog theme.
- Inheritance
-
- Object
- DialogTheme
- CDialogTheme
Constructors
- CDialogTheme({Color? backgroundColor = const Color.fromARGB(255, 2, 48, 32), Color? titleColor = Colors.amber, Color? contentColor = Colors.white, Color? actionsColor = Colors.lightBlueAccent, Color? actionsOverlayColor = Colors.blue})
-
Constructor to provide new colors for the DialogTheme
const
Properties
- actionsColor → Color?
-
The foreground color of the Text buttons for the dialog.
final
- actionsOverlayColor → Color?
-
What background color to apply when hovering over the button.
final
- actionsPadding → EdgeInsetsGeometry?
-
Overrides the default value for AlertDialog.actionsPadding.
finalinherited
- alignment → AlignmentGeometry?
-
Overrides the default value for Dialog.alignment.
finalinherited
- backgroundColor → Color?
-
Overrides the default value for Dialog.backgroundColor.
finalinherited
- barrierColor → Color?
-
Overrides the default value for barrierColor in showDialog.
finalinherited
- clipBehavior → Clip?
-
Overrides the default value of Dialog.clipBehavior.
finalinherited
- contentColor → Color?
-
The foreground color of the content color for all dialog types minus
custom dialogs. The developer sets the color of the content for custom
dialog types.
final
- contentTextStyle → TextStyle?
-
Overrides the default value for DefaultTextStyle for SimpleDialog.children and
AlertDialog.content.
finalinherited
- elevation → double?
-
Overrides the default value for Dialog.elevation.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- iconColor → Color?
-
Used to configure the IconTheme for the AlertDialog.icon widget.
finalinherited
- insetPadding → EdgeInsets?
-
Overrides the default value for Dialog.insetPadding.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shadowColor → Color?
-
Overrides the default value for Dialog.shadowColor.
finalinherited
- shape → ShapeBorder?
-
Overrides the default value for Dialog.shape.
finalinherited
- surfaceTintColor → Color?
-
Overrides the default value for Dialog.surfaceTintColor.
finalinherited
- titleColor → Color?
-
The title foreground color for the text and close icon.
final
- titleTextStyle → TextStyle?
-
Overrides the default value for DefaultTextStyle for SimpleDialog.title and
AlertDialog.title.
finalinherited
Methods
-
copyWith(
{Color? backgroundColor, double? elevation, Color? shadowColor, Color? surfaceTintColor, ShapeBorder? shape, AlignmentGeometry? alignment, Color? iconColor, TextStyle? titleTextStyle, TextStyle? contentTextStyle, EdgeInsetsGeometry? actionsPadding, Color? barrierColor, EdgeInsets? insetPadding, Clip? clipBehavior}) → DialogTheme -
Creates a copy of this object but with the given fields replaced with the
new values.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringShort(
) → String -
A brief description of this object, usually just the runtimeType and the
hashCode.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited