简体   繁体   English

如何在 flutter 中添加自定义日历?

[英]how can I add a custom calendar in flutter?

I want to develop an application that help elderly like remind them medication time, and I want to add custom calendar in home screen that show the day number and name.我想开发一个应用程序,帮助老年人提醒他们服药时间,我想在主屏幕中添加自定义日历,显示日期和名称。 So, how can I add this calendar in flutter?那么,如何在 flutter 中添加此日历? enter image description here在此处输入图像描述

similar to this package, date_picker_timeline类似于此 package, date_picker_timeline

DatePicker(
        DateTime.now(),
        initialSelectedDate: DateTime.now(),
        selectionColor: Colors.black,
        selectedTextColor: Colors.white,
        onDateChange: (date) {
          // New date selected
          setState(() {
            _selectedValue = date;
          });
        },
      ),

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM