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);
                  },
                )),
          )),
    );
  }
}
78
likes
110
pub points
81%
popularity

Publisher

verified publisherasoteam.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