flutter_date_picker_timeline 0.3.2
flutter_date_picker_timeline: ^0.3.2 copied to clipboard

A Gregorian and Jalali customizable date picker as a horizontal timeline

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter_date_picker_timeline/flutter_date_picker_timeline.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter date picker timeline example',
      theme: ThemeData(
        primarySwatch: Colors.blueGrey,
      ),
      home: Scaffold(
          backgroundColor: Colors.white,
          body: Center(
            child: Container(
                padding: const EdgeInsets.only(top: 11, bottom: 11),
                decoration: BoxDecoration(color: const Color(0xFFF5F5F5)),
                child: FlutterDatePickerTimeline(
                  startDate: DateTime(2020, 07, 01),
                  endDate: DateTime(2020, 12, 30),
                  initialSelectedDate: DateTime(2020, 07, 24),
                  onSelectedDateChange: (DateTime dateTime) {
                    print(dateTime);
                  },
                )),
          )),
    );
  }
}
37
likes
130
pub points
81%
popularity

Publisher

asoteam.ir

A Gregorian and Jalali customizable date picker as a horizontal timeline

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, intl, scroll_to_index, shamsi_date

More

Packages that depend on flutter_date_picker_timeline