custom_calendar 1.0.0 copy "custom_calendar: ^1.0.0" to clipboard
custom_calendar: ^1.0.0 copied to clipboard

outdated

calendar use a overlay window to select a range of date on mobile.

Flutter calendar use a overlay window to select a range of date on mobile.

Usage import 'package:calendar/custom_calendar.dart'; ... @override Widget build(BuildContext context) {

return Scaffold(
  body: Padding(
    padding: const EdgeInsets.all(50.0),
    child: GestureDetector(
      onTap:() => CustomCalendar(context,disabledDate: disabledDate),
      child: Container(
        width: 300,
        height: 50,
        decoration: BoxDecoration(
          borderRadius: const BorderRadius.all(Radius.circular(20)),
          border: Border.all(color: Colors.black),
        ),
        child: Center(
          child: StreamBuilder<List<DateTime>>(
            stream: selectedDates,
            builder: (context, snapshot) {
              if (snapshot != null && snapshot.hasData) {
                final text = dateFormat(snapshot);
                return Text(text);
              }
              return const Text('Выберите дату');
            },
          ),
        ),
      ),
    ),
  ),
);

}

2
likes
0
pub points
20%
popularity

Publisher

unverified uploader

calendar use a overlay window to select a range of date on mobile.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

cupertino_icons, flutter, intl, rxdart

More

Packages that depend on custom_calendar