buildTopRow method
Implementation
Widget buildTopRow(String title, String value) {
return Container(
padding: const EdgeInsets.all(12.0),
decoration: BoxDecoration(
color: title == "NEO Miles Limit (%)"
? Colors.white
: ColorHelper.lightBg02, // Light background color
borderRadius: BorderRadius.circular(8),
),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text(
title,
style: const TextStyle(
fontSize: 14,
color: ColorHelper.grey02,
fontWeight: FontWeight.w400),
),
Text(
value,
style: const TextStyle(fontSize: 14, color: Colors.black),
),
],
),
);
}