material_calendar 0.0.4 copy "material_calendar: ^0.0.4" to clipboard
material_calendar: ^0.0.4 copied to clipboard

Power up your Flutter app with a sleek and intuitive Material calendar experience.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:material_calendar/widgets/calendar_widget.dart';

void main() {
  WidgetsFlutterBinding.ensureInitialized();
  runApp(const MyApp());
}

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      color: Colors.white,
      debugShowCheckedModeBanner: false,
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: CalendarWidget(
        initalDateTime: DateTime.now(),
        headerMargins: const EdgeInsets.only(
          top: 50,
        ),
        /* calendarDecorator: CalendarDecorator(
          backgroundColor: Colors.white,
        ),
        monthYearOverlayValueDecorator: CircularDecorator(
          textColor: Colors.black,
          selectedColor: Colors.black,
          selectedTextColor: Colors.white,
        ), */
        onTap: (DateTime dateTime) {
          /* if (kDebugMode) {
            print(dateTime);
          } */
        },
      ),
    );
  }
}
9
likes
0
points
34
downloads

Publisher

unverified uploader

Weekly Downloads

Power up your Flutter app with a sleek and intuitive Material calendar experience.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

dartx, flutter, intl

More

Packages that depend on material_calendar