|
child: ElevatedButton( |
|
style: ElevatedButton.styleFrom( |
|
backgroundColor: Colors.white, |
|
foregroundColor: Colors.teal, |
|
elevation: 8, |
|
shape: RoundedRectangleBorder( |
|
borderRadius: BorderRadius.circular(30), |
|
), |
|
), |
|
onPressed: _handleTimePicker, |
|
child: const Row( |
|
children: [ |
|
Icon(Icons.more_time, |
|
color: Color.fromARGB(255, 5, 130, 117)), |
|
SizedBox(width: 1), |
|
], |
|
), |
|
), |
|
|
|
// ... |
|
final TimeOfDay? timeofDay = await showTimePicker( |
|
context: context, |
|
initialTime: _selectedTime, |
|
helpText: "When are you leaving?", |
|
initialEntryMode: TimePickerEntryMode.inputOnly, |
|
// ... |