weekly_calendar 0.1.2 copy "weekly_calendar: ^0.1.2" to clipboard
weekly_calendar: ^0.1.2 copied to clipboard

Effortlessly integrate this straightforward weekly calendar widget into your Flutter app for a seamless user experience.

example/lib/main.dart

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

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        backgroundColor: Colors.grey[200],
        appBar: AppBar(),
        body: Column(
          children: [
            WeeklyCalendar(
              calendarStyle: const CalendarStyle(
                locale: "en_US",
                padding: EdgeInsets.symmetric(vertical: 14, horizontal: 20),
                margin: EdgeInsets.all(14),
                decoration: BoxDecoration(
                    color: Colors.black,
                    borderRadius: BorderRadius.all(Radius.circular(14))),
                headerDateTextColor: Colors.white,
                headerDateTextAlign: Alignment.center,
                isShowHeaderDateText: false,
                footerDateTextColor: Colors.white,
                footerDateTextAlign: Alignment.center,
                isShowFooterDateText: false,
                selectedCircleColor: Colors.white,
                todaySelectedCircleColor: Colors.greenAccent,
                dayTextColor: Colors.white,
                todayDayTextColor: Colors.greenAccent,
                selectedDayTextColor: Colors.black,
                weekendDayTextColor: Colors.grey,
                dayOfWeekTextColor: Colors.white,
                weekendDayOfWeekTextColor: Colors.grey,
              ),
              isAutoSelect: true,
              onChangedSelectedDate: (date) {
                debugPrint("onChangedSelectedDate: $date");
              },
              onChangedPage: (date, state) {
                debugPrint("onChangedPage: $date ${state.name}");
              },
            ),
          ],
        ),
      ),
    );
  }
}
15
likes
160
pub points
75%
popularity

Publisher

unverified uploader

Effortlessly integrate this straightforward weekly calendar widget into your Flutter app for a seamless user experience.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, intl, plugin_platform_interface

More

Packages that depend on weekly_calendar