bool isNetworkImage(String src) { final uri = Uri.tryParse(src); return uri != null && (uri.scheme == 'http' || uri.scheme == 'https'); }