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

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(
      height: 600,
      width: 1000,
      child: BarCalendar(
        backgroundColor: Colors.white,
        headerDecoration:
            CalendarHeaderDecoration(backgroundColor: Colors.white),
        events: [
          CalendarEvent(
              title: 'Introducing: Boxing.',
              eventBarSize: EventBarSize.large,
              start: DateTime(2022, 3, 4),
              end: DateTime(2022, 3, 23)),
          CalendarEvent(
              title: 'hitlist', end: DateTime(2022, 5, 31), start: null),
          CalendarEvent(title: 'update', start: null, end: null),
          CalendarEvent(
              title: 'Curated Content For You',
              start: DateTime(2022, 3, 4),
              end: DateTime(2022, 3, 31)),
          CalendarEvent(
              title: 'Parkrun Launch',
              end: DateTime(2059, 1, 31),
              start: DateTime(2022, 3, 4)),
        ],
      ),
    ));
  }
}
14
likes
110
pub points
12%
popularity

Publisher

unverified uploader

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

flutter, intl

More

Packages that depend on bar_calendar