tracking method
Implementation
Widget tracking() {
return Padding(
padding: const EdgeInsets.symmetric(vertical: 16),
child: GestureDetector(
onTap: () {
Get.lazyPut(() => TrackingController());
Get.to(() => TrackingScreen());
},
child: Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(24),
// color: Colors.blue.shade50,
gradient: LinearGradient(
begin: Alignment.topCenter,
end: Alignment.bottomCenter,
colors: [
Strings.primaryColor.withOpacity(0.5),
Strings.primaryColor.withOpacity(0.1),
],
),
),
padding: const EdgeInsets.all(16),
child: Row(
children: [
Padding(
padding: const EdgeInsets.only(right: 8),
child: Image.network(
"https://github.com/egov-recis/rcs_portal_eaze/blob/main/assets/images/tracking.png?raw=true",
width: 24,
errorBuilder: (context, error, stackTrace) => Container(),
color: Strings.primaryColor,
),
),
Expanded(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
'Tracking transaksi',
style: textCustom(
size: 12,
weight: FontWeight.w700,
),
),
Text(
'Cari status terakhir transaksi anda menggunakan kode transaki atau id billing',
style: textCustom(
size: 8,
weight: FontWeight.w400,
),
),
],
),
),
Icon(
Icons.arrow_forward_ios,
color: Strings.primaryColor,
size: 14,
),
],
),
),
),
);
}