NikuAlert class

Alert Property Builder

Style property builder for building column

@see https://niku.saltyaom.com/widget/alert

@example

import 'package:niku/niku.dart';
import 'package:niku/namespace.dart' as n;

n.showDialog(
  builder: (context) => n.Alert()
    ..title = Text('Title')
    ..content = Text('Content')
    ..actions = [
      n.Button('Ok')
        ..onPressed = () {
          Navigator.of(context).pop();
        }
    ]
)
Inheritance
Mixed in types
Available Extensions

Constructors

NikuAlert({Key? key, Widget? title, NikuEdgeInsets? titlePadding, NikuTextStyle? titleTextStyle, Widget? content, NikuEdgeInsets? contentPadding, NikuTextStyle? contentTextStyle, List<Widget>? actions, List<CupertinoDialogAction>? cupertinoActions, NikuEdgeInsets? actionsPadding, MainAxisAlignment? actionsAlignment, VerticalDirection? actionsOverflowDirection, double? actionsOverflowButtonSpacing, NikuEdgeInsets? buttonPadding, Color? backgroundColor, double? elevation, String? semanticLabel, NikuEdgeInsets? insetPadding, Clip? clipBehavior, ShapeBorder? shape, bool? scrollable, bool adaptive = false, bool cupertino = false})
Alert Property Builder
NikuAlert.adaptive({Key? key, Widget? title, NikuEdgeInsets? titlePadding, NikuTextStyle? titleTextStyle, Widget? content, NikuEdgeInsets? contentPadding, NikuTextStyle? contentTextStyle, List<Widget>? actions, NikuEdgeInsets? actionsPadding, MainAxisAlignment? actionsAlignment, VerticalDirection? actionsOverflowDirection, double? actionsOverflowButtonSpacing, NikuEdgeInsets? buttonPadding, Color? backgroundColor, double? elevation, String? semanticLabel, NikuEdgeInsets? insetPadding, Clip? clipBehavior, ShapeBorder? shape, bool? scrollable, List<CupertinoDialogAction>? cupertinoActions})
factory
NikuAlert.cupertino({Key? key, Widget? title, NikuEdgeInsets? titlePadding, NikuTextStyle? titleTextStyle, Widget? content, NikuEdgeInsets? contentPadding, NikuTextStyle? contentTextStyle, List<CupertinoDialogAction>? actions, NikuEdgeInsets? actionsPadding, MainAxisAlignment? actionsAlignment, VerticalDirection? actionsOverflowDirection, double? actionsOverflowButtonSpacing, NikuEdgeInsets? buttonPadding, Color? backgroundColor, double? elevation, String? semanticLabel, NikuEdgeInsets? insetPadding, Clip? clipBehavior, ShapeBorder? shape, bool? scrollable, List<CupertinoDialogAction>? cupertinoActions})
factory

Properties

$parent Niku
finalinherited
actionP double
no getterinherited
actionPadding NikuEdgeInsets?
getter/setter pairinherited
actionPb double
no getterinherited
actionPl double
no getterinherited
actionPr double
no getterinherited
actionPt double
no getterinherited
actionPx double
no getterinherited
actionPy double
no getterinherited
actions List<Widget>?
getter/setter pair
actionsAlignment MainAxisAlignment?
getter/setter pair
actionsOverflowButtonSpacing double?
getter/setter pair
actionsOverflowDirection VerticalDirection?
getter/setter pair
actionsPadding NikuEdgeInsets?
getter/setter pair
adaptive bool
getter/setter pair
antiAlias → void
no setterinherited
antiAliasWithSaveLayer → void
no setterinherited
apply NikuAlert?
no getteroverride
applyStyle NikuTextStyle
no getterinherited
aspect double
no getterinherited
aspectRatio double
no getterinherited
backgroundColor Color?
getter/setter pair
boxConstraints BoxConstraints
no getterinherited
buttonP double
no getterinherited
buttonPadding NikuEdgeInsets?
getter/setter pairoverride
buttonPb double
no getterinherited
buttonPl double
no getterinherited
buttonPr double
no getterinherited
buttonPt double
no getterinherited
buttonPx double
no getterinherited
buttonPy double
no getterinherited
clip Clip?
getter/setter pairinherited
clipBehavior Clip?
getter/setter pair
content Widget?
getter/setter pair
contentP double
no getterinherited
contentPadding NikuEdgeInsets?
getter/setter pairoverride
contentPb double
no getterinherited
contentPl double
no getterinherited
contentPr double
no getterinherited
contentPt double
no getterinherited
contentPx double
no getterinherited
contentPy double
no getterinherited
contentTextStyle NikuTextStyle?
getter/setter pairoverride
copied NikuAlert
no setteroverride
cupertino bool
getter/setter pair
cupertinoActions List<CupertinoDialogAction>?
getter/setter pair
deps List
getter/setter pairinherited
elevation double?
getter/setter pair
expanded → dynamic
no setterinherited
fh double
no getterinherited
fill → void
no setterinherited
flex int
getter/setter pairinherited
formKey Key
no getterinherited
fractionH double
no getterinherited
fractionHeight double
no getterinherited
fractionSize List<double>
no getterinherited
fractionW double
no getterinherited
fractionWidth double
no getterinherited
freezed → void
no setterinherited
fullHeight → void
no setterinherited
fullSize → void
no setterinherited
fullWidth → void
no setterinherited
fw double
no getterinherited
h double
no getterinherited
h100 → void
no setterinherited
hardEdge → void
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
height double
no getterinherited
heightPercent double
no getterinherited
hFactor double
no getterinherited
hFull → void
no setterinherited
hidden → dynamic
no setterinherited
hMax double
no getterinherited
hMin double
no getterinherited
hPercent double
no getterinherited
insetP double
no getterinherited
insetPadding NikuEdgeInsets?
getter/setter pairoverride
insetPb double
no getterinherited
insetPl double
no getterinherited
insetPr double
no getterinherited
insetPt double
no getterinherited
insetPx double
no getterinherited
insetPy double
no getterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
m double
no getterinherited
margin EdgeInsets
no getterinherited
maxH double
no getterinherited
maxHeight double
no getterinherited
maxSize List<double>
no getterinherited
maxW double
no getterinherited
maxWidth double
no getterinherited
mb double
no getterinherited
minH double
no getterinherited
minHeight double
no getterinherited
minSize List<double>
no getterinherited
minW double
no getterinherited
minWidth double
no getterinherited
ml double
no getterinherited
mr double
no getterinherited
mt double
no getterinherited
mx double
no getterinherited
my double
no getterinherited
n NikuExplictParentBuilder
no setterinherited
noClip → void
no setterinherited
parent NikuExplictParentBuilder
no setterinherited
ratio double
no getterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollable bool?
getter/setter pairoverride-getter
self NikuAlert
no setteroverride
semanticLabel String?
getter/setter pair
shape ShapeBorder?
getter/setter pair
sizePercent List<double>
no getterinherited
sliverToBox → void
no setterinherited
theme ThemeData
no getterinherited
tip String
no getterinherited
title Widget?
getter/setter pair
titlePadding NikuEdgeInsets?
getter/setter pair
titleTextStyle NikuTextStyle?
getter/setter pairoverride
tooltip String
no getterinherited
visible bool
no getterinherited
w double
no getterinherited
w100 → void
no setterinherited
wFactor double
no getterinherited
wFull → void
no setterinherited
width double
no getterinherited
widthPercent double
no getterinherited
wMax double
no getterinherited
wMin double
no getterinherited
wPercent double
no getterinherited
wrap → dynamic
Cancel parent size inheritance by wrapping the widget with a Wrap.
no setterinherited

Methods

build(BuildContext _) Widget
inherited
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
of(NikuAlert? v) → void
inherited
on({void tapDown(TapDownDetails)?, void tapUp(TapUpDetails)?, VoidCallback? tap, VoidCallback? tapCancel, VoidCallback? secondaryTap, void secondaryTapDown(TapDownDetails)?, void secondaryTapUp(TapUpDetails)?, VoidCallback? secondaryTapCancel, void tertiaryTapDown(TapDownDetails)?, void tertiaryTapUp(TapUpDetails)?, VoidCallback? tertiaryTapCancel, void doubleTapDown(TapDownDetails)?, VoidCallback? doubleTap, VoidCallback? doubleTapCancel, VoidCallback? longPress, void longPressStart(LongPressStartDetails)?, void longPressMoveUpdate(LongPressMoveUpdateDetails)?, VoidCallback? longPressUp, void longPressEnd(LongPressEndDetails)?, VoidCallback? secondaryLongPress, void secondaryLongPressStart(LongPressStartDetails)?, void secondaryLongPressMoveUpdate(LongPressMoveUpdateDetails)?, VoidCallback? secondaryLongPressUp, void secondaryLongPressEnd(LongPressEndDetails)?, void verticalDragDown(DragDownDetails)?, void verticalDragStart(DragStartDetails)?, void verticalDragUpdate(DragUpdateDetails)?, void verticalDragEnd(DragEndDetails)?, VoidCallback? verticalDragCancel, void horizontalDragDown(DragDownDetails)?, void horizontalDragStart(DragStartDetails)?, void horizontalDragUpdate(DragUpdateDetails)?, void horizontalDragEnd(DragEndDetails)?, VoidCallback? horizontalDragCancel, void forcePressStart(ForcePressDetails)?, void forcePressPeak(ForcePressDetails)?, void forcePressUpdate(ForcePressDetails)?, void forcePressEnd(ForcePressDetails)?, void panDown(DragDownDetails)?, void panStart(DragStartDetails)?, void panUpdate(DragUpdateDetails)?, void panEnd(DragEndDetails)?, VoidCallback? panCancel, void scaleStart(ScaleStartDetails)?, void scaleUpdate(ScaleUpdateDetails)?, void scaleEnd(ScaleEndDetails)?}) → void
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}) 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
use(List<NikuAlert> v) → void
inherited
useActions(List<Widget> builder()) → void
useAnimationBuilder({required Widget builder(BuildContext context, Widget child), required AnimationController animation}) → void
inherited
useContent(Widget builder()) → void
useDarkMode(BuildContext context, NikuAlert builder(NikuAlert, bool)) → void
inherited
useForm({Key? key, AutovalidateMode? autovalidateMode, Future<bool> onWillPop()?, void onChanged()?}) → void
inherited
useParent(Widget compose(Niku)) → void
inherited
usePlatform(BuildContext context, {NikuAlert android(NikuAlert)?, NikuAlert iOS(NikuAlert)?, NikuAlert fuchsia(NikuAlert)?, NikuAlert linux(NikuAlert)?, NikuAlert macOS(NikuAlert)?, NikuAlert windows(NikuAlert)?, NikuAlert web(NikuAlert)?}) → void
inherited
useQuery(BuildContext context, NikuAlert builder(NikuAlert, MediaQueryData)) → void
inherited
useScreen(BuildContext context, {NikuAlert base(NikuAlert)?, NikuAlert xs(NikuAlert)?, NikuAlert sm(NikuAlert)?, NikuAlert md(NikuAlert)?, NikuAlert lg(NikuAlert)?, NikuAlert xl(NikuAlert)?}) → void
void useScreen({ // > 568px Widget Function(Niku)? base, // 568 - 640px Widget Function(Niku)? xs, // 640 - 768px Widget Function(Niku)? sm, // 768 - 920px Widget Function(Niku)? md, // 920 - 1024px Widget Function(Niku)? lg, // > 1024px Widget Function(Niku)? xl, })
inherited
useScrollView({ScrollController? controller, Axis scrollDirection = Axis.vertical, bool? primary, bool reverse = false, ScrollPhysics? physics, DragStartBehavior dragStartBehavior = DragStartBehavior.start, String? restorationId}) → void
inherited
useSize(BuildContext context, NikuAlert builder(NikuAlert, Size)) → void
inherited
useStyle(NikuTextStyle v(NikuTextStyle)) → void
inherited
useThemeSelector(BuildContext context, {NikuAlert light(NikuAlert)?, NikuAlert dark(NikuAlert)?}) → void
inherited
useTitle(Widget builder()) → void
widget(BuildContext context) Widget
override

Operators

operator ==(Object other) bool
The equality operator.
inherited