Flutter - Exit option with Icons and Text

PHOTO EMBED

Sun Feb 13 2022 20:38:55 GMT+0000 (UTC)

Saved by @abir_hasnat95 #flutter #dart

 ListTile(
              title: Text(
                'Exit',
                style: TextStyle(
                  fontWeight: FontWeight.bold,
                  fontSize: 18,
                ),
              ),
              trailing: Icon(
                Icons.logout,
              ),
              onTap: () {
                exit(0);
              },
            ),
content_copyCOPY