NikuAlert constructor

NikuAlert({
  1. Key? key,
  2. Widget? title,
  3. NikuEdgeInsets? titlePadding,
  4. NikuTextStyle? titleTextStyle,
  5. Widget? content,
  6. NikuEdgeInsets? contentPadding,
  7. NikuTextStyle? contentTextStyle,
  8. List<Widget>? actions,
  9. List<CupertinoDialogAction>? cupertinoActions,
  10. NikuEdgeInsets? actionsPadding,
  11. MainAxisAlignment? actionsAlignment,
  12. VerticalDirection? actionsOverflowDirection,
  13. double? actionsOverflowButtonSpacing,
  14. NikuEdgeInsets? buttonPadding,
  15. Color? backgroundColor,
  16. double? elevation,
  17. String? semanticLabel,
  18. NikuEdgeInsets? insetPadding,
  19. Clip? clipBehavior,
  20. ShapeBorder? shape,
  21. bool? scrollable,
  22. bool adaptive = false,
  23. 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);