buildEmptyList method
Implementation
Widget buildEmptyList(String message, BuildContext context) {
bool isDarkMode = Theme.of(context).brightness == Brightness.dark;
return Center(
child: Text(
message,
style: TextStyle(
color: isDarkMode ? Colors.white : Colors.black,
fontSize: 20,
),
),
);
}