date_only_field 0.0.14 date_only_field: ^0.0.14 copied to clipboard
A Date only flutter field (Pure dart). It helps with splitting the datetime object to date and time fields to be picked easily and saved to database separated for easy queries.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add date_only_field
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
date_only_field: ^0.0.14
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:date_only_field/date_only_field.dart';