header method
Implementation
Widget header() {
return Container(
padding: EdgeInsets.only(
top: AppBar().preferredSize.height,
bottom: 24,
left: 16,
right: 16,
),
color: Colors.white,
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Padding(
padding: const EdgeInsets.only(bottom: 16),
child: Row(
children: [
Padding(
padding: const EdgeInsets.only(right: 16),
child: GestureDetector(
onTap: () {
Get.back(result: true);
},
child: Container(
color: Colors.white,
child: Icon(
Icons.arrow_back_ios_new,
size: 16,
color: Strings.primaryColor,
),
),
),
),
Expanded(
child: Text(
'Tracking',
style: textCustom(size: 14, weight: FontWeight.w700),
),
),
GestureDetector(
onTap: () {},
child: Container(
width: 24,
height: 24,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(12),
color: Colors.grey.shade400,
border: Border.all(color: Colors.black),
),
child: Center(
child: Text(
'?',
style: textCaption(),
),
),
),
),
],
),
),
Text(
'Kode Transaksi/ID Billing :',
style: textCaption(),
),
Text(
'VTX0021671992791',
style: textCustom(size: 14, weight: FontWeight.w700),
),
],
),
);
}