calendar_day 0.1.0 copy "calendar_day: ^0.1.0" to clipboard
calendar_day: ^0.1.0 copied to clipboard

This is a Widget that is use to customize a day date, by having a start and end date

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:calendar_day/calendar_day.dart';
import 'package:intl/intl.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatefulWidget {
  const MyApp({super.key});

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Calendar Day'),
        ),
        body: Center(
          child: CalendarDayWidget(
            startDate: DateTime(2024, 5, 1),
            endDate: DateTime(2024, 5, 7),
            leftIcon: const Icon(
              Icons.arrow_left,
              size: 30,
            ),
            rightIcon: const Icon(
              Icons.arrow_right,
              size: 30,
            ),
            dateFormat: DateFormat("EEEE, MMMM dd"),
            onDateSelected: (value) {
              debugPrint(value.toString());
            },
          ),
        ),
      ),
    );
  }
}
3
likes
150
points
32
downloads

Publisher

unverified uploader

Weekly Downloads

This is a Widget that is use to customize a day date, by having a start and end date

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, intl

More

Packages that depend on calendar_day