headerLastTransaction method
Widget
headerLastTransaction(
)
Implementation
Widget headerLastTransaction() {
return Padding(
padding: const EdgeInsets.only(bottom: 12),
child: Row(
children: [
Expanded(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
'Transaksi Terakhir',
style: textBody2(),
),
Obx(
() => Text(
'update terakhir ${controller.lastUpdateHistory}',
style: textCustom(
size: 8,
weight: FontWeight.w400,
),
),
)
],
),
),
GestureDetector(
onTap: () {
// Get.to(() => const HistoryScreen());
Get.toNamed(Strings.historyRoute);
},
child: Container(
color: Colors.white,
child: Text(
'Lihat Semua',
style: textCustom(
size: 10,
weight: FontWeight.w700,
color: Strings.primaryColor,
),
),
),
),
],
),
);
}