📜  如何以自定义格式颤动格式化 timeofday - 无论代码示例

📅  最后修改于: 2022-03-11 14:57:07.751000             🧑  作者: Mango

代码示例1
showTimePicker(
        context: context,
        initialTime: TimeOfDay.now(),
        builder: (context, _) {
          return MediaQuery(
              data: MediaQuery.of(context).copyWith(
                  // Using 24-Hour format
                  alwaysUse24HourFormat: true),
                  // If you want 12-Hour format, just change alwaysUse24HourFormat to false or remove all the builder argument
              child: _);
});