flutter_calendar_kit 0.0.1+1 copy "flutter_calendar_kit: ^0.0.1+1" to clipboard
flutter_calendar_kit: ^0.0.1+1 copied to clipboard

A highly customizable calendar widget for Flutter applications.

example/lib/main.dart

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

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: const Text('Custom Calendar Example')),
        body: CustomCalendar(
          initialBlockedDates: [ DateTime(2024, 10, 16), DateTime(2024, 10, 17),DateTime(2024, 10, 17)],
          initialBookedDates: [DateTime(2024, 10, 20), DateTime(2024, 10, 21),DateTime(2024, 10, 22)],
          onDatesSelected: (dates) {

          },
          bookedColor: Colors.orange,
          primaryColor: Colors.green,
          blockedColor: Colors.red.withOpacity(0.5),
          blockedTextColor: Colors.black,
          bookedTextColor: Colors.white,
          pastDateColor: Colors.grey[200]!,
          pastDateTextColor: Colors.grey,
          currentMonthTextColor: Colors.black,
          otherMonthTextColor: Colors.red,
          selectedDateTextColor: Colors.white,
          todayColor: Colors.blue.withOpacity(0.3),
          todayTextColor: Colors.blue,
          fontFamily: 'Roboto',
          allowBlockedSelection: false,
          showAdjacentMonths: false,
          weekdayTextStyle: const TextStyle(
            color: Colors.black,
            fontWeight: FontWeight.bold,
          ),

        ),
      ),
    );
  }
}
8
likes
140
points
7
downloads

Publisher

verified publisheryudiz.com

Weekly Downloads

A highly customizable calendar widget for Flutter applications.

Repository (GitHub)
View/report issues

Topics

#calendar #date-picker #custom-widget #flutter-calendar #booking-system

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on flutter_calendar_kit