horizontalcalender 0.0.3 copy "horizontalcalender: ^0.0.3" to clipboard
horizontalcalender: ^0.0.3 copied to clipboard

Horizontal Calendar

Flutter Horizontal Date Picker Library that provides a calendar as a horizontal scolling with center selection

How To Use #

Use this package as a library

dependencies:
     horizontalcalender: ^0.0.2

Import the following package in your dart file

import 'package:horizontalcalender/horizontalcalender.dart';

Usage #

This version is breaking backwards compatibility

Use the HorizontalCalendar Widget

  @override
  Widget build(BuildContext context) {
    final FixedExtentScrollController itemController =
        FixedExtentScrollController();
    return Container(
        height: 200,
        width: MediaQuery.of(context).size.width,
        padding: EdgeInsets.all(10.0),
        child: HorizontalCalendar(DateTime.now(),
            width: MediaQuery.of(context).size.width*.25,
            height: 120,
            selectionColor: Colors.red,
            itemController: itemController));
  }
Constructor:
  HorizontalCalendar(
    this.startDate, {
    Key? key,
    this.width = 40,
    this.height = 80,
    this.controller,
    this.monthTextStyle,
    this.dayTextStyle,
    this.dateTextStyle,
    this.selectedTextColor,
    this.selectionColor,
    this.deactivatedColor,
    this.initialSelectedDate,
    this.activeDates,
    this.inactiveDates,
    this.daysCount = 500,
    this.onDateChange,
    this.locale = "en_US",
    this.selectedDayStyle,
    this.selectedDateStyle,
    required this.itemController,
  });
6
likes
110
points
36
downloads

Publisher

unverified uploader

Weekly Downloads

Horizontal Calendar

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (license)

Dependencies

auto_size_text, flutter, intl

More

Packages that depend on horizontalcalender