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

outdated

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

example/lib/main.dart

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

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

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

  @override
  Widget build(BuildContext context) {
    return Center(
        child: SizedBox(
      width: MediaQuery.of(context).size.width,
      child: BarCalendar(
        backgroundColor: Colors.grey.withOpacity(.4),
        events: [
          CalendarEvent(
              title: 'First Event',
              color: Colors.white,
              start: DateTime.now(),
              end: DateTime.now().add(const Duration(days: 8))),
          CalendarEvent(
              title: 'First Event',
              color: Colors.white,
              start: DateTime.now(),
              end: DateTime.now().add(const Duration(days: 8))),
          CalendarEvent(
              title: 'Second Event',
              color: Colors.white,
              eventBarType: EventBarType.large,
              start: DateTime.now().subtract(const Duration(days: 3)),
              end: DateTime.now().add(const Duration(days: 10)))
        ],
      ),
    ));
  }
}
16
likes
0
points
19
downloads

Publisher

unverified uploader

Weekly Downloads

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

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, google_fonts, intl

More

Packages that depend on bar_calendar