lightweight_calendar 1.0.0 copy "lightweight_calendar: ^1.0.0" to clipboard
lightweight_calendar: ^1.0.0 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: CalendarApp(
          startDate: DateTime(2022, 1, 1),
          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
0
points
31
downloads

Publisher

unverified uploader

Weekly Downloads

A simple fast table calendar for Flutter.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, intl

More

Packages that depend on lightweight_calendar