date_picker_plus 3.0.2 copy "date_picker_plus: ^3.0.2" to clipboard
date_picker_plus: ^3.0.2 copied to clipboard

A Flutter library that provides a customizable Material Design date and range picker widgets.

example/lib/main.dart

import 'package:date_picker_plus/date_picker_plus.dart';
import 'package:flutter/material.dart';
import 'package:flutter_localizations/flutter_localizations.dart';

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      locale: const Locale('en', 'US'),
      localizationsDelegates: GlobalMaterialLocalizations.delegates,
      supportedLocales: const [
        Locale('en', 'GB'),
        Locale('en', 'US'),
        Locale('ar'),
        Locale('zh'),
      ],
      home: Builder(
        builder: (context) {
          return Scaffold(
            appBar: AppBar(),
            body: Center(
              child: Column(
                mainAxisAlignment: MainAxisAlignment.center,
                children: [
                  RangeDatePicker(
                    centerLeadingDate: true,
                    minDate: DateTime(2020, 10, 10),
                    maxDate: DateTime(2024, 10, 30),
                  ),
                ],
              ),
            ),
          );
        },
      ),
    );
  }
}
50
likes
140
pub points
96%
popularity
screenshot

Publisher

unverified uploader

A Flutter library that provides a customizable Material Design date and range picker widgets.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

cupertino_icons, flutter, intl

More

Packages that depend on date_picker_plus