build method

  1. @override
Widget build(
  1. BuildContext context,
  2. VFS vfs,
  3. List<VEntity> entities
)
override

Implementation

@override
Widget build(BuildContext context, VFS vfs, List<VEntity> entities) {
  double w = MediaQuery.of(context).size.width;
  _lspan = max(1, w ~/ 125);

  return SGridView(
    mainAxisSpacing: 8,
    crossAxisSpacing: 8,
    crossAxisCount: _lspan,
    children: [...entities.withPylons((context) => VFSEntityGridTile())],
  );
}