Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

Flutter Date Range Picker

A Flutter package for all platform which provides a custom date picker

image

Screen Shot

"Screen Shot 2022-03-01 at 15 36 31

Usage

Add the package to pubspec.yaml

dependencies:
  flutter_date_range_picker:
    git:
        url: linagora/flutter-date-range-picker.git
        ref: master

Import it

import 'package:flutter_date_range_picker/flutter_date_range_picker.dart';

Use the widget

void showDatePicker() {
  showGeneralDialog(
      context: context,
      barrierDismissible: true,
      barrierLabel: '',
      barrierColor: Colors.black54,
      pageBuilder: (context, animation, secondaryAnimation) {
        return Dialog(
            elevation: 0,
            backgroundColor: Colors.white,
            shape: RoundedRectangleBorder(
                borderRadius: BorderRadius.circular(18.0)),
            child: MultipleViewDateRangePicker(
              setDateActionCallback: ({startDate, endDate}) {
                setState(() {
                  startDateSelected = startDate;
                  endDateSelected = endDate;
                });
                Navigator.of(context).pop();
              },
            ));
      }
  );
}

 


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

Comments are closed.