KalogkitDialog class
A premium, highly customizable Dialog modal component matching Minimals design language.
Features:
- Rounded card style with premium elevation drop shadows (KalogkitShadows.z24).
- Optional title header and cross close action.
- Scrollable or static body content.
- Footer actions alignment.
- Full-screen layout mode for mobile views.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- KalogkitDialog
Constructors
-
KalogkitDialog({Key? key, String? title, Widget? content, List<
Widget> ? actions, VoidCallback? onClose, double maxWidth = 400.0, bool scrollable = false, bool isFullscreen = false, BorderRadiusGeometry? borderRadius, EdgeInsetsGeometry? padding, Color? backgroundColor, Color? shadowColor, double? elevation, TextStyle? titleStyle, Color? closeIconColor}) -
Creates a KalogkitDialog modal dialog component.
const
Properties
-
actions
→ List<
Widget> ? -
Footer actions (e.g. Cancel, OK buttons).
final
- backgroundColor → Color?
-
Custom background color override. Defaults to KalogkitColors.white.
final
- borderRadius → BorderRadiusGeometry?
-
Custom border radius override. Defaults to
BorderRadius.circular(16.0).final - closeIconColor → Color?
-
Custom close icon color override. Defaults to KalogkitColors.grey500.
final
- content → Widget?
-
The body content of the dialog.
final
- elevation → double?
-
Custom elevation override. Defaults to
24.0.final - hashCode → int
-
The hash code for this object.
no setterinherited
- isFullscreen → bool
-
Renders the dialog in a full-screen layout mode. Defaults to
false.final - key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- maxWidth → double
-
Custom maximum width constraint. Defaults to
400.0.final - onClose → VoidCallback?
-
Optional callback when the top-right close icon button is tapped.
If provided, the close icon is automatically rendered.
final
- padding → EdgeInsetsGeometry?
-
Custom padding inside the dialog. Defaults to
EdgeInsets.all(24.0).final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollable → bool
-
Whether the body content is wrapped in a scrollable view. Defaults to
false.final - shadowColor → Color?
-
Custom shadow color override.
final
- title → String?
-
Optional title displayed at the top.
final
- titleStyle → TextStyle?
-
Custom text style override for the title.
final
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
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
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited