formEntry method
Generic form entry wrapper for consistent styling
Implementation
Widget formEntry({String? title, String? subTitle, Widget? inputWidget}) {
return Padding(
padding: const EdgeInsets.symmetric(vertical: 8.0),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
if (title != null) ...[
Text(
title,
style: const TextStyle(
fontSize: 16,
fontWeight: FontWeight.bold,
color: Colors.black87,
),
),
const SizedBox(height: 4),
],
if (subTitle != null) ...[
Text(
subTitle,
style: TextStyle(fontSize: 14, color: Colors.grey[600]),
),
const SizedBox(height: 12),
],
if (inputWidget != null) inputWidget,
],
),
);
}