option static method
Implementation
static Widget option(BuildContext context, {required GlHeaderInfo info, VoidCallback? onTap}) {
return GlCard(
padding: const EdgeInsets.symmetric(vertical: 16.0),
child: Material(
color: Colors.transparent,
child: InkWell(
onTap: onTap,
child: Padding(
padding: const EdgeInsets.all(16.0),
child: Column(
children: [
Row(
children: [
ClipRRect(
borderRadius: BorderRadius.circular(8.0),
child: Image.asset(info.flagAsset, package: 'guardlinesdk', width: 96, height: 96, fit: BoxFit.cover),
),
],
),
const SizedBox(height: 16),
Row(
children: [
Expanded(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(info.title, style: const TextStyle(fontSize: 18, fontWeight: FontWeight.bold)),
const SizedBox(height: 4),
Text(
info.subTitle,
style: TextStyle(fontSize: 16, fontWeight: FontWeight.w400, color: GlThemeColors.get(context).grey),
),
],
),
),
const Icon(
LucideIcons.chevronRight,
size: 24,
//color: Colors.grey,
),
],
),
],
),
),
),
),
);
}