buildEmptyList method

Widget buildEmptyList(
  1. String message,
  2. BuildContext context
)

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,
      ),
    ),
  );
}