lightweight_calendar 1.0.4 copy "lightweight_calendar: ^1.0.4" to clipboard
lightweight_calendar: ^1.0.4 copied to clipboard

A simple fast table calendar for Flutter.

example/lib/main.dart

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

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
        debugShowCheckedModeBanner: false,
        home: Scaffold(
          body: CalendarApp(
            startDate: DateTime(2022, 1, 1),
            onSelectedDate: (date) {
              print(date);
            },
            endDate: DateTime(2024, 1, 1),
            enablePredicate: (date) {
              if (date.isAfter(DateTime.now())) {
                return true;
              } else {
                if (checkSameDay(date, DateTime.now())) {
                  return true;
                }
                return false;
              }
            },
          ),
        ));
  }
}
1
likes
120
points
31
downloads

Publisher

unverified uploader

Weekly Downloads

A simple fast table calendar for Flutter.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, intl

More

Packages that depend on lightweight_calendar