scrollable_clean_calendar 0.5.1 copy "scrollable_clean_calendar: ^0.5.1" to clipboard
scrollable_clean_calendar: ^0.5.1 copied to clipboard

outdated

A clean widget calendar with vertical scroll, locale, and range selection date

example/lib/main.dart

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

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

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Scrollable clean calendar',
      theme: ThemeData(
        primarySwatch: Colors.blue,
        visualDensity: VisualDensity.adaptivePlatformDensity,
      ),
      home: Scaffold(
        appBar: AppBar(
          title: Text('ScrollableCleanCalendar'),
        ),
        body: ScrollableCleanCalendar(
          onRangeSelected: (firstDate, secondDate) {
            print('onRangeSelected first $firstDate');
            print('onRangeSelected second $secondDate');
          },
          onTapDate: (date) {
            print('onTap $date');
          },
          locale: 'pt', //default is en
          minDate: DateTime.now(),
          maxDate: DateTime.now().add(
            Duration(days: 365),
          ),
          renderPostAndPreviousMonthDates: true,
        ),
      ),
    );
  }
}
154
likes
0
pub points
94%
popularity

Publisher

unverified uploader

A clean widget calendar with vertical scroll, locale, and range selection date

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, intl

More

Packages that depend on scrollable_clean_calendar