time picker

정재한·2022년 10월 6일
0

앱개발

목록 보기
12/23
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('취소'),),
                            ),

0개의 댓글

관련 채용 정보