NxEmptyScreen constructor

const NxEmptyScreen({
  1. required BuildContext context,
  2. required Text information,
  3. Key? key,
  4. Color? color,
  5. IconData? icon = Ionicons.sad_outline,
  6. double? height,
  7. double? width,
})

Creates an empty screen widget.

  • context is required for screen size calculations
  • information is the message to display below the icon
  • color sets the background color of the container
  • icon is the icon to display (defaults to sad face)
  • height and width can be used to override default dimensions

Implementation

const NxEmptyScreen({
  required this.context,
  required this.information,
  super.key,
  this.color,
  this.icon = Ionicons.sad_outline,
  this.height,
  this.width,
});