Flutter 如何为showDatePicker设置边框半径并删除标题栏?
我正在使用showDatePicker()方法在我的flatter应用程序中显示一个日期选择器。如何设置边框半径并删除标题栏 这是我的密码:Flutter 如何为showDatePicker设置边框半径并删除标题栏?,flutter,dart,Flutter,Dart,我正在使用showDatePicker()方法在我的flatter应用程序中显示一个日期选择器。如何设置边框半径并删除标题栏 这是我的密码: showDatePicker( locale: Locale('ja'), context: context, initialDate: _dateTime, firstDate: DateTime(DateTime.now().year - 5), lastDate: DateTime(DateTime.now().yea
showDatePicker(
locale: Locale('ja'),
context: context,
initialDate: _dateTime,
firstDate:
DateTime(DateTime.now().year - 5),
lastDate: DateTime(DateTime.now().year + 5),
builder: (context, child) {
return Theme(
data: ThemeData.light().copyWith(
primaryColor:
helper.hexColor('#007AFF'),
accentColor:
helper.hexColor('#007AFF'),
colorScheme: ColorScheme.light(
primary:
helper.hexColor('#007AFF')),
buttonTheme: ButtonThemeData(
textTheme: ButtonTextTheme
.primary), // This will change to light theme.
),
child: child,
);
},
);
嘿,脚趾,你可以在这里找到一些线索