getSubTitleText function
Implementation
Widget getSubTitleText(String text, double padding){
double textMargin = 6;
if(padding>8){
textMargin = padding;
}
return Container(
margin: EdgeInsets.only(left: textMargin, top: 0, right: textMargin, bottom: 12), // Add margin of 16 units on all sides
child: Text(text,
style: const TextStyle(fontSize: 12.0, color: Colors.grey),
),
);
}