timeline_date_picker_plus 0.0.3 copy "timeline_date_picker_plus: ^0.0.3" to clipboard
timeline_date_picker_plus: ^0.0.3 copied to clipboard

A Flutter package for a horizontal scrollable date picker with support for custom styling and dots on the days.

example/lib/main.dart

import 'package:dateline/timeline_date_picker_plus.dart';
import 'package:example/example_one.dart';
import 'package:example/example_two.dart';
import 'package:flutter/material.dart';
import 'package:intl/intl.dart';

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

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Date Selector Demo',
      theme: ThemeData(primarySwatch: Colors.deepPurple, useMaterial3: true),
      home: const HomePage(),
    );
  }
}

class HomePage extends StatelessWidget {
  const HomePage({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: const Text('Example App')),
      body: Column(
        mainAxisAlignment: MainAxisAlignment.center,
        crossAxisAlignment: CrossAxisAlignment.center,
        children: [
          ElevatedButton(
            onPressed: () {
              Navigator.push(
                context,
                MaterialPageRoute(builder: (context) => ExampleTwo()),
              );
            },
            child: Text("Example 1"),
          ),
          ElevatedButton(
            onPressed: () {
              Navigator.push(
                context,
                MaterialPageRoute(builder: (context) => DateSelectorDemo()),
              );
            },
            child: Text("Example 2"),
          ),
        ],
      ),
    );
  }
}
3
likes
140
points
49
downloads
screenshot

Publisher

verified publishermabud.tech

Weekly Downloads

A Flutter package for a horizontal scrollable date picker with support for custom styling and dots on the days.

Repository (GitHub)

Topics

#date-picker #date-range-picker #scrollable-date-picker #flutter-date-picker #flutter-scrollable-date-picker

Documentation

API reference

License

MIT (license)

Dependencies

dotted_border, flutter, scrollable_positioned_list

More

Packages that depend on timeline_date_picker_plus