showEntityTable function

void showEntityTable(
  1. BuildContext context,
  2. NUIEntMapper entity,
  3. List<NUIEnt> items, {
  4. RowClickItem? listener,
})

Implementation

void showEntityTable(BuildContext context, NUIEntMapper entity, List<NUIEnt> items, {RowClickItem? listener}){
  final screen = NUIScreen(
      content : (context) => Container(
        color: NUIColors.NUIWhite,
        child: Column(
          mainAxisSize: MainAxisSize.max,
          children: [
            NUIStatusBar(color: NUIColors.NUISkeletalLightGray),
            NUIToolbar(content: Text(entity.entityName() + " Table", style: TextStyle(color: NUIColors.NUITextBlack, fontSize: 14, decoration: TextDecoration.none))),
            _sampleTableView(entity, items)
          ],
        ),
      ), screenCode: "NUISampleTableScreen");
  NUINavigator.push(context, screen);
}