flutter_modal_date_picker 0.1.1 copy "flutter_modal_date_picker: ^0.1.1" to clipboard
flutter_modal_date_picker: ^0.1.1 copied to clipboard

A fancy and highly customizable date picker for Flutter

A fancy and highly customizable date picker for Flutter.

Features #

Supports manual input with format checking and picking a date from the provided calendar.

flutter_modal_date_picker is still on the development phase and customization features are yet to be added to this package.

Getting started #

Supports all platforms.

Usage #

Just call the showModalDatePicker function and wait for it to return an string.

class MyApp extends StatelessWidget {

  @override
  Widget build(BuildContext context) {
    return SafeArea(
      child: Scaffold(
          backgroundColor: Colors.white,
          body: ElevatedButton(
                child: Text(
                    'show date picker',
                    style: TextStyle(fontSize: 30),
                ),
                onPressed: () async {
                    String chosenDate =
                        await showModalDatePicker(context, DateTime.now());
                    print(chosenDate);
                },
            ), 
        ),
    );
  }
}

Additional information #

For more info on this package, head onto our github repository. Feel free to open issues and request additional features.

1
likes
110
pub points
0%
popularity

Publisher

unverified uploader

A fancy and highly customizable date picker for Flutter

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

auto_size_text, flutter, flutter_svg, intl

More

Packages that depend on flutter_modal_date_picker