buildLoadingPlaceholder method
Implementation
Widget buildLoadingPlaceholder(ThemeData theme) {
return Container(
height: MyTableView.headerHeight,
color: theme.colorScheme.primaryContainer,
padding: const EdgeInsets.symmetric(horizontal: MyTableView.spacing),
alignment: Alignment.centerLeft,
child: Row(
mainAxisSize: MainAxisSize.min,
children: [
for (var i = 0; i < _placeholderHeaderCellWidths.length; i++) ...[
if (i > 0) const SizedBox(width: MyTableView.spacing),
Container(
width: _placeholderHeaderCellWidths[i],
height: 14,
decoration: BoxDecoration(
color: theme.colorScheme.surface,
borderRadius: BorderRadius.circular(4),
),
),
],
],
),
);
}