flutter_date_picker_timeline 0.3.3 copy "flutter_date_picker_timeline: ^0.3.3" to clipboard
flutter_date_picker_timeline: ^0.3.3 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);
                  },
                )),
          )),
    );
  }
}
80
likes
130
points
74
downloads

Publisher

verified publisherasoteam.ir

Weekly Downloads

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