date_picker_bottom_sheet 1.0.1 copy "date_picker_bottom_sheet: ^1.0.1" to clipboard
date_picker_bottom_sheet: ^1.0.1 copied to clipboard

A Flutter package providing a customizable TextFormField with an integrated date picker presented in a bottom sheet, ideal for seamless date selection in forms and applications.

example/lib/main.dart

import 'dart:developer';

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

void main() => runApp(const MyApp());

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: const Text('DatePickerBottomSheet Example')),
        body: Padding(
          padding: const EdgeInsets.all(16.0),
          child: DatePickerBottomSheet(
            validator: (value) {
              if (value == null || value.isEmpty) {
                return 'Please select a date';
              }
              return null;
            },
            onChanged: (value) => log('Selected date: $value'),
          ),
        ),
      ),
    );
  }
}
2
likes
160
points
205
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package providing a customizable TextFormField with an integrated date picker presented in a bottom sheet, ideal for seamless date selection in forms and applications.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, intl

More

Packages that depend on date_picker_bottom_sheet