flutter_linear_datepicker 1.0.4 copy "flutter_linear_datepicker: ^1.0.4" to clipboard
flutter_linear_datepicker: ^1.0.4 copied to clipboard

outdated

A flutter package providing Gregorian and Jalaali (Persian) date picker

Flutter Linear Date Picker #

Flutter Gregorian and Jalaali (Persian) linear date picker #



[package at pub.dev](https://pub.dev/packages/flutter_linear_datepicker/versions/1.0.0)

Screenshot 2


Use this package as a library #

1. Depend on it

Add this to your package's pubspec.yaml file:

dependencies:
  flutter_linear_datepicker: ^1.0.4

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter pub get

Alternatively, your editor might support pub get or flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:flutter_linear_datepicker/flutter_datepicker.dart';
import 'package:flutter_linear_datepicker/number_picker.dart';

## How to use? #### simple usage just simply infalate following snippet in your flutter code:

LinearDatePicker();

advanced usage

You can customize widget using below parameters:

LinearDatePicker(
    startDate: "1396/12/12",
    endDate: "1398/01/14",
    initialDate: "1397/05/05",
    dateChangeListener: (String selectedDate) {
      print(selectedDate);
    },
    showDay: true,
    fontFamily: 'iran',
    textColor: Colors.black,
    selectedColor: Colors.deepOrange,
    unselectedColor: Colors.blueGrey,
    yearText: "سال | year",
    monthText: "ماه | month",
    dayText: "روز | day",
    showLabels: true,
    columnWidth: 100, 
    isJalaali: false
    ),
61
likes
0
pub points
87%
popularity

Publisher

unverified uploader

A flutter package providing Gregorian and Jalaali (Persian) date picker

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, shamsi_date

More

Packages that depend on flutter_linear_datepicker