Request: DOI

#3
by zavramovic - opened
This comment has been hidden

Widget _buildDateField(TextEditingController controller, String labelText) {
return Padding(
padding: const EdgeInsets.only(bottom: 16.0),
child: Material(
elevation: 3.0,
shadowColor: Colors.black26,
borderRadius: BorderRadius.circular(12.0),
child: InkWell(
onTap: () => _selectDate(context, controller),
child: InputDecorator(
decoration: InputDecoration(
labelText: labelText,
labelStyle: const TextStyle(
color: Colors.teal, // لون teal لعلامة التبويب
fontWeight: FontWeight.w600,
fontSize: 16.0,
),
focusedBorder: OutlineInputBorder(
borderRadius: BorderRadius.circular(12.0),
borderSide: const BorderSide(
color: Colors.teal,
width: 2.0,
),
),
enabledBorder: OutlineInputBorder(
borderRadius: BorderRadius.circular(12.0),
borderSide: BorderSide(
color: Colors.grey.shade400,
width: 1.0,
),
),
filled: true,
fillColor: Colors.white,
contentPadding: const EdgeInsets.symmetric(vertical: 15.0, horizontal: 20.0),
suffixIcon: const Icon(
Icons.calendar_today,
color: Colors.teal, // لون teal للأيقونة
),
),
child: Text(
controller.text.isEmpty ? 'اختر التاريخ' : controller.text,
style: TextStyle(
fontSize: 16.0,
color: controller.text.isEmpty ? Colors.grey.shade600 : Colors.black,
),
),
),
),
),
);
} غير هاي طريقة في اختيار التاريخ

Sign up or log in to comment