NikuAlert constructor
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
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.showAlertDialog(
builder: (context) => n.Alert()
..title = Text('Title')
..content = Text('Content')
..actions = [
n.Button('Ok')
..onPressed = () {
Navigator.of(context).pop();
}
]
)
Implementation
NikuAlert({
Key? key,
this.title,
this.titlePadding,
this.titleTextStyle,
this.content,
this.contentPadding,
this.contentTextStyle,
this.actions,
this.cupertinoActions,
this.actionsPadding,
this.actionsAlignment,
this.actionsOverflowDirection,
this.actionsOverflowButtonSpacing,
this.buttonPadding,
this.backgroundColor,
this.elevation,
this.semanticLabel,
this.insetPadding,
this.clipBehavior,
this.shape,
this.scrollable,
this.adaptive = false,
this.cupertino = false,
}) : super(key: key);