This commit is contained in:
Patrick Alvin Alcala 2025-02-20 17:20:01 +08:00
parent 5164d55905
commit 6f54a6f9fc
65 changed files with 313 additions and 137 deletions

View file

@ -16,16 +16,17 @@ class InputWidget extends StatelessWidget {
return Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text('$label:',
style: GoogleFonts.outfit(
textStyle:
const TextStyle(color: Color.fromRGBO(255, 255, 255, 1), fontSize: 12, fontWeight: FontWeight.w500),
)),
if (label.isNotEmpty)
Text('$label:',
style: GoogleFonts.outfit(
textStyle:
const TextStyle(color: Color.fromRGBO(255, 255, 255, 1), fontSize: 12, fontWeight: FontWeight.w500),
)),
const Gap(8),
TextField(
controller: controller,
decoration: InputDecoration(
filled: true, // Enable filling the background
filled: true,
fillColor: const Color.fromRGBO(255, 255, 255, 1),
border: OutlineInputBorder(borderRadius: BorderRadius.circular(8)),
contentPadding: const EdgeInsets.symmetric(vertical: 10, horizontal: 24)),