SizedBox(//타임피커는 크기가 정해져야해서 사이즈드 박스 안에 넣는다
height: 300,
child: CupertinoDatePicker(
onDateTimeChanged: (dateTime) {},
//시간만 나오게 mode로 설정
mode: CupertinoDatePickerMode.time,
),
),
const SizedBox(height: regularSpace,),
Row(
children: [
Expanded(
child: SizedBox(
height: submitButtonHeight,
child: ElevatedButton(
style: ElevatedButton.styleFrom(textStyle: Theme.of(context).textTheme.subtitle1),
onPressed: () {}, child: const Text('선택'),),
),
),
const SizedBox(width: smallSpace),
Expanded(
child: SizedBox(
height: submitButtonHeight,
child: ElevatedButton(
style: ElevatedButton.styleFrom(textStyle: Theme.of(context).textTheme.subtitle1,
backgroundColor: Colors.white,
foregroundColor: Colors.black
),
onPressed: () {}, child: const Text('취소'),),
),