GithubHelp home page GithubHelp logo

reju1021 / flutter_multi_date_range_picker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gungun974/flutter_multi_date_range_picker

0.0 0.0 0.0 74 KB

License: MIT License

Java 2.24% Objective-C 3.70% Dart 94.06%

flutter_multi_date_range_picker's Introduction

Multi Date Range Picker

A simple and customize Date range picker with multi range

Features

  • Create Multi Range picker
  • Support multi language (with intl localization)

Getting Started

In the pubspec.yaml of your flutter project, add the following dependency:

dependencies:
  ...
  multi_date_range_picker: "^0.0.5"

In your library add the following import:

import 'package:flutter_slidable/flutter_slidable.dart';

and use MultiDateRangePicker Widget to show

MultiDateRangePicker(
  initialValue: [],
  onChanged: (List<List<DateTime>> intervals) {
    
  },
);

Customization

You can change colors of selection and background and more.

onlyOne = false // Allow only one selection
selectionColor = Colors.lightGreenAccent // Sets the color of the selection
buttonColor = Colors.lightGreenAccent // Sets the color of the buttons
buttonTextColor = Colors.black // Sets the color of text in buttons
primaryTextColor = Colors.black // Sets the color of UI text
dateTextColor = Colors.black // Sets the color of calendar date
ignoreTextColor = Colors.grey // Sets the color of external calendar date
selectedDateTextColor = Colors.black // Sets the color of calendar date when is selected
selectedIgnoreTextColor = Colors.black // Sets the color of external calendar date when is selected
backgroundTextColor = Colors.white // Sets the background color

Note

For the customization of the local you will need at the start of your application to define the default local in intl

Intl.defaultLocale = 'fr';
initializeDateFormatting();

flutter_multi_date_range_picker's People

Contributors

gungun974 avatar reju1021 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.