Skip to main content

calendarview_flutter 0.2.1 copy "calendarview_flutter: ^0.2.1" to clipboard
calendarview_flutter: ^0.2.1 copied to clipboard

A customizable Flutter calendar view with single selection, range selection, multi-selection, year view, and pluggable calendar cell builders.

example/main.dart

import 'package:calendarview_flutter/calendarview_flutter.dart';
import 'package:flutter/widgets.dart';

void main() => runApp(const _CalendarExample());

class _CalendarExample extends StatefulWidget {
  const _CalendarExample();

  @override
  State<_CalendarExample> createState() => _CalendarExampleState();
}

class _CalendarExampleState extends State<_CalendarExample> {
  final _controller = CalendarController();

  @override
  void dispose() {
    _controller.dispose();
    super.dispose();
  }

  @override
  Widget build(BuildContext context) {
    return WidgetsApp(
      color: const Color(0xFF1565C0),
      builder: (context, child) => ColoredBox(
        color: const Color(0xFFFFFFFF),
        child: SafeArea(
          child: SingleChildScrollView(
            child: CalendarView(
              controller: _controller,
              pageOrientation: CalendarPageOrientation.horizontal,
              onDaySelected: _controller.selectDay,
            ),
          ),
        ),
      ),
    );
  }
}
5
likes
160
points
59
downloads
screenshot

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A customizable Flutter calendar view with single selection, range selection, multi-selection, year view, and pluggable calendar cell builders.

Repository (GitHub)
View/report issues

Topics

#calendar #flutter #date-picker #calendar-view

License

MIT (license)

Dependencies

cupertino_icons, flutter, lunar

More

Packages that depend on calendarview_flutter