NsgListPage class
Страница, отображающая данные из контроллера в форме списка Имеет функционал добавления и удаления элементов В качестве виджетов для отображения элементов, можно использовать стандартные, например, NsgTextBlock
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- NsgListPage
- Available extensions
Constructors
-
NsgListPage.new({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}) -
const
-
NsgListPage.list({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, required Widget elementWidget(NsgDataItem)?, required String elementEditPage, List<NsgTableColumn> ? columns, 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}) -
const
Properties
- appBar → Widget?
-
Виджет Appbar
final
- appBarBackColor → Color?
-
Цвета Appbar
final
- appBarColor → Color?
-
Цвета Appbar
final
- appBarIcon → IconData?
-
Иконки Appbar
final
- appBarIcon2 → IconData?
-
Иконки Appbar
final
- appBarIcon3 → IconData?
-
Иконки Appbar
final
- appBarOnPressed → VoidCallback?
-
Функции иконок
final
- appBarOnPressed2 → VoidCallback?
-
Функции иконок
final
- appBarOnPressed3 → VoidCallback?
-
Функции иконок
final
-
availableButtons
→ List<
NsgTableMenuButtonType> ? -
Управление видимостью кнопок в режиме таблицы. Если не задана, то все
final
-
columns
→ List<
NsgTableColumn> ? -
Колонки для вывода в режиме "таблица"
final
- contentPadding → EdgeInsets
-
Отступы внутри скролла
final
-
controller
→ NsgDataUI<
NsgDataItem> -
Контроллер, содержащий отображаемые данные
final
- elementEditPage → String
-
Страница для создания нового элемента
final
- elementWidget → Widget Function(NsgDataItem)?
-
Функция, вызываемая для прорисовки кадого элемента списка
final
- getNotificationCount → int Function()?
-
Цифра в кружочке около левой иконки
final
- gridCellMinWidth → double
-
Минимальная ширина ячейки Grid для расчёта количества элементов по горизонтали
относительно текущего разрешения экрана, с учётом максимальной ширины приложения
final
- gridXSpacing → double
-
Вертикальные и горизонтальные отступы внутри Grid
final
- gridYSpacing → double
-
Вертикальные и горизонтальные отступы внутри Grid
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
-
notificationController
→ NsgDataController<
NsgDataItem> ? -
Контроллер, содержащий кол-во нотификаций
final
- notificationPosition → NsgAppBarNotificationPosition
-
Позиция, где показывать нотификацию в аппбаре
final
- onElementTap → void Function(NsgDataItem)?
-
Реакция на нажатие на элемент. Если не задан, то будет вывана функция контроллера controller.itemPageOpen
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showCount → String?
-
Показывать в подзаголовок для AppBar кол-во элементов с текстом указанным в этой переменной
final
- showLastAndFavourites → bool
-
final
- subtitle → String?
-
Подзаголовок для AppBar
final
- textNoItems → String
-
Текст для отображения в случае отсутствия элементов
final
- title → String
-
Заголовок для AppBar
final
- type → NsgListPageMode?
-
Тип отображения элементов на странице
final
-
userSettingsController
→ NsgUserSettingsController<
NsgDataItem> ? -
Контроллер пользовательских настроек
final
- userSettingsId → String
-
Уникальное поле контроллера пользовательских настроек
final
- widgetBottom → Widget?
-
Виджет снизу под листом
final
Methods
-
asGlass(
{double blurX = 10.0, double blurY = 10.0, Color tintColor = Colors.white, bool frosted = true, BorderRadius clipBorderRadius = BorderRadius.zero, Clip clipBehaviour = Clip.antiAlias, TileMode tileMode = TileMode.clamp, CustomClipper< RRect> ? clipper}) → ClipRRect -
Available on T, provided by the NsgGlassWidget extension
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
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
-
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, int wrapWidth = 65}) → 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
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited