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

discontinued
outdated

A new flutter plugin project.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:vertical_calendar/vertical_calendar.dart';

//ignore_for_file: avoid_print
void main() {
  runApp(
    MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Vertical calendar'),
        ),
        body: VerticalCalendar(
          minDate: DateTime.now(),
          maxDate: DateTime.now().add(const Duration(days: 365)),
          onDayPressed: (DateTime date) {
            print('Date selected: $date');
          },
          onRangeSelected: (DateTime d1, DateTime d2) {
            print('Range: from $d1 to $d2');
          },
        ),
      ),
    ),
  );
}