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

A simple and flexible Flutter widget that allows users to select dates with a Cupertino-style date picker. Customize date format, initial date, and confirmation text.

example/main.dart

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

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'AppDatePicker Example',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const ExampleHomePage(),
    );
  }
}

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

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('AppDatePicker Demo'),
      ),
      body: Center(
        child: AppDatePicker(
          title: 'Select Birthday:',
          initDate: DateTime(2000, 1, 1),
          dateFormat: 'dd-MMMM-yyyy',
          doneTxt: 'Done',
          onSelectDateTime: (date) {
            debugPrint('Selected date: \$date');
          },
        ),
      ),
    );
  }
}
0
likes
140
points
26
downloads

Publisher

unverified uploader

Weekly Downloads

A simple and flexible Flutter widget that allows users to select dates with a Cupertino-style date picker. Customize date format, initial date, and confirmation text.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

app_style, flutter, flutter_cupertino_datetime_picker

More

Packages that depend on app_date_picker