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

Horizontal Calendar

Flutter Horizontal Date Picker Library that provides a calendar center selection of items.

How To Use #

Use this package as a library

dependencies:
     horizontalcalender: ^0.0.4

Import the following package in your dart file

import 'package:horizontalcalendar/horizontalcalendar.dart';

Usage #

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
100
pub points
52%
popularity

Publisher

unverified uploader

Horizontal Calendar

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (LICENSE)

Dependencies

auto_size_text, flutter, intl

More

Packages that depend on horizontalcalender