buildEmptyState method
Build empty state display.
Implementation
Widget buildEmptyState({
required String title,
required String subtitle,
Widget? action,
}) =>
Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
const Text('📄',
style: TextStyle(fontSize: 64, color: Colors.white38)),
const SizedBox(height: 16),
Text(
title,
style: const TextStyle(color: Colors.white70, fontSize: 18),
),
const SizedBox(height: 8),
Text(
subtitle,
style: const TextStyle(color: Colors.white54, fontSize: 14),
),
if (action != null) ...[const SizedBox(height: 24), action],
],
),
);