day_calendar_flutter 1.0.1 copy "day_calendar_flutter: ^1.0.1" to clipboard
day_calendar_flutter: ^1.0.1 copied to clipboard

discontinued
outdated

Package of hours of day for flutter.

Table Calendar #

github-small github-small
Day calendar with custom styles

Usage #

Make sure to check out example project.

Installation #

Attention use of package flutter_localizations is required

Add to pubspec.yaml:

dependencies:
  day_calendar_flutter: ^1.0.0

flutter_localizations:
  sdk: flutter

Implements the code below in your MaterialApp

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      localizationsDelegates: [
        GlobalMaterialLocalizations.delegate,
        GlobalWidgetsLocalizations.delegate,
      ],
      supportedLocales: [const Locale('pt', 'BR')],
      locale: Locale('pt', 'BR'),
    );
  }

Import the package in your projetct

import 'package:day_calendar_flutter/day_calendar_flutter.dart';

Use the package in your project

@override
  Widget build(BuildContext context) {
    return Scaffold(
      body: DayCalendarFlutter(
        currentDate: DateTime.now(),
        onEventTap: (ev) {
          print(ev.title);
        },
        events: [
          new Event(
            color: Colors.cyan,
            initialDate: DateTime(DateTime.now().year, DateTime.now().month,
                DateTime.now().day, 10, 05),
            finalDate: DateTime(DateTime.now().year, DateTime.now().month,
                DateTime.now().day, 11, 05),
            title: "Reunião",
            eventTitleStyle: TextStyle(
              fontSize: 22,
              fontWeight: FontWeight.bold,
            ),
            showHours: true,
          ),
        ],
        onTap: (date) {
          print(DateFormat('HH:mm').format(date));
        },
      ),
    );
  }
7
likes
0
pub points
0%
popularity

Publisher

unverified uploader

Package of hours of day for flutter.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

date_util, flutter, flutter_mobx, intl, mobx

More

Packages that depend on day_calendar_flutter