Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/dart/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Flutter 如何为showDatePicker设置边框半径并删除标题栏?_Flutter_Dart - Fatal编程技术网

Flutter 如何为showDatePicker设置边框半径并删除标题栏?

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()方法在我的flatter应用程序中显示一个日期选择器。如何设置边框半径并删除标题栏

这是我的密码:

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,
    );
  },
);

嘿,脚趾,你可以在这里找到一些线索