bar_calendar 0.0.7 copy "bar_calendar: ^0.0.7" to clipboard
bar_calendar: ^0.0.7 copied to clipboard

outdated

A package that allows the creation of event-based project calendars.

example/lib/main.dart

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

main() {
  runApp(const MaterialApp(
    debugShowCheckedModeBanner: false,
    home: Scaffold(
      body: HomePage(),
    ),
  ));
}

class HomePage extends StatelessWidget {
  const HomePage({
    Key? key,
  }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Center(
        child: SizedBox(
      width: MediaQuery.of(context).size.width,
      child: BarCalendar(
        backgroundColor: const Color(0xFFE2F1FF),
        headerDecoration:
            CalendarHeaderDecoration(backgroundColor: const Color(0xFFBADFFF)),
        events: [
          CalendarEvent(
              title: 'Project 1',
              eventBarSize: EventBarSize.large,
              decoration: EventBarDecoration(progressionBarColor: Colors.red),
              start: null,
              end: DateTime.now().add(const Duration(days: 6))),
          CalendarEvent(
              title: 'Project 2',
              eventBarSize: EventBarSize.large),
        ],
      ),
    ));
  }
}
16
likes
0
points
19
downloads

Publisher

unverified uploader

Weekly Downloads

A package that allows the creation of event-based project calendars.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, intl

More

Packages that depend on bar_calendar