NsgListPage constructor
const
NsgListPage({
- Key? key,
- EdgeInsets contentPadding = EdgeInsets.zero,
- NsgUserSettingsController<
NsgDataItem> ? userSettingsController, - String userSettingsId = '',
- Widget? widgetBottom,
- bool showLastAndFavourites = false,
- required NsgDataUI<
NsgDataItem> controller, - required String title,
- String? subtitle,
- String? showCount,
- required String textNoItems,
- Widget elementWidget(
- NsgDataItem
- required String elementEditPage,
- List<
NsgTableColumn> ? columns, - NsgListPageMode? type = NsgListPageMode.list,
- double gridCellMinWidth = 160,
- double gridXSpacing = 10.0,
- double gridYSpacing = 10.0,
- Widget? appBar,
- Color? appBarColor,
- Color? appBarBackColor,
- IconData? appBarIcon = Icons.arrow_back_ios_new,
- IconData? appBarIcon2 = Icons.add,
- IconData? appBarIcon3,
- int getNotificationCount()?,
- VoidCallback? appBarOnPressed,
- VoidCallback? appBarOnPressed2,
- VoidCallback? appBarOnPressed3,
- void onElementTap(
- NsgDataItem
- NsgDataController<
NsgDataItem> ? notificationController, - NsgAppBarNotificationPosition notificationPosition = NsgAppBarNotificationPosition.leftIcon,
- List<
NsgTableMenuButtonType> ? availableButtons,
Implementation
const NsgListPage({
Key? key,
this.contentPadding = EdgeInsets.zero,
this.userSettingsController,
this.userSettingsId = '',
this.widgetBottom,
this.showLastAndFavourites = false,
required this.controller,
required this.title,
this.subtitle,
this.showCount,
required this.textNoItems,
this.elementWidget,
required this.elementEditPage,
this.columns,
this.type = NsgListPageMode.list,
this.gridCellMinWidth = 160,
this.gridXSpacing = 10.0,
this.gridYSpacing = 10.0,
this.appBar,
this.appBarColor,
this.appBarBackColor,
this.appBarIcon = Icons.arrow_back_ios_new,
this.appBarIcon2 = Icons.add,
this.appBarIcon3,
this.getNotificationCount,
this.appBarOnPressed,
this.appBarOnPressed2,
this.appBarOnPressed3,
this.onElementTap,
this.notificationController,
this.notificationPosition = NsgAppBarNotificationPosition.leftIcon,
this.availableButtons,
}) : super(key: key);