Skip to content

feat: add FormBuilderCupertinoDateTimePicker #23

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 18 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,22 @@ Additional form inputs fields with Cupertino style for [flutter_form_builder](ht
[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/flutter-form-builder-ecosystem/form_builder_cupertino_fields/base.yaml?branch=main&logo=github&style=for-the-badge)](https://github.com/flutter-form-builder-ecosystem/form_builder_cupertino_fields/actions/workflows/base.yaml)
[![Codecov](https://img.shields.io/codecov/c/github/flutter-form-builder-ecosystem/form_builder_cupertino_fields?logo=codecov&style=for-the-badge)](https://codecov.io/gh/flutter-form-builder-ecosystem/form_builder_cupertino_fields/)
[![CodeFactor Grade](https://img.shields.io/codefactor/grade/github/flutter-form-builder-ecosystem/form_builder_cupertino_fields?logo=codefactor&style=for-the-badge)](https://www.codefactor.io/repository/github/flutter-form-builder-ecosystem/form_builder_cupertino_fields)
___

- [Features](#features)
- [Inputs](#inputs)
- [Use](#use)
- [Setup](#setup)
- [Basic use](#basic-use)
- [Support](#support)
- [Contribute](#contribute)
- [Questions and answers](#questions-and-answers)
- [Donations](#donations)
- [Roadmap](#roadmap)
- [Ecosystem](#ecosystem)
- [Thanks to](#thanks-to)

---

- [Form Builder Cupertino Fields](#form-builder-cupertino-fields)
- [Features](#features)
- [Inputs](#inputs)
- [Use](#use)
- [Setup](#setup)
- [Basic use](#basic-use)
- [Support](#support)
- [Contribute](#contribute)
- [Questions and answers](#questions-and-answers)
- [Donations](#donations)
- [Roadmap](#roadmap)
- [Ecosystem](#ecosystem)
- [Thanks to](#thanks-to)

## Features

Expand All @@ -31,6 +33,7 @@ ___
The currently supported fields include:

- `FormBuilderCupertinoCheckbox` - Single checkbox field
- `FormBuilderCupertinoDateTimePicker` - Date picker field
- `FormBuilderCupertinoSegmentedControl` - Segmented control using `CupertinoSegmentedControl`
- `FormBuilderCupertinoSlidingSegmentedControl` - Segmented control bar using `CupertinoSlidingSegmentedControl`
- `FormBuilderCupertinoSlider` - For selection of a numerical value on a slider
Expand Down Expand Up @@ -71,7 +74,7 @@ You have some ways to contribute to this packages
- Intermediate: Implement new features (from issues or not) and created pull requests
- Advanced: Join to [organization](#ecosystem) like a member and help coding, manage issues, dicuss new features and other things

See [contribution file](https://github.com/flutter-form-builder-ecosystem/.github/blob/main/CONTRIBUTING.md) for more details
See [contribution file](https://github.com/flutter-form-builder-ecosystem/.github/blob/main/CONTRIBUTING.md) for more details

### Questions and answers

Expand Down
2 changes: 2 additions & 0 deletions example/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@
*.swp
.DS_Store
.atom/
.build/
.buildlog/
.history
.svn/
.swiftpm/
migrate_working_dir/

# IntelliJ related
Expand Down
8 changes: 8 additions & 0 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,14 @@ class _MyHomePageState extends State<MyHomePage> {
? null
: 'Write a text',
),
const SizedBox(height: 16),
FormBuilderCupertinoDateTimePicker(
name: 'date',
prefix: const Icon(CupertinoIcons.calendar),
autovalidateMode: AutovalidateMode.onUserInteraction,
validator: (value) => value != null ? null : 'Required date',
initialValue: DateTime.now(),
),
],
),
),
Expand Down
1 change: 1 addition & 0 deletions lib/form_builder_cupertino_fields.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export 'src/fields/form_builder_cupertino_checkbox.dart';
export 'src/fields/form_builder_cupertino_datetime_picker.dart';
export 'src/fields/form_builder_cupertino_segmented_control.dart';
export 'src/fields/form_builder_cupertino_slider.dart';
export 'src/fields/form_builder_cupertino_sliding_segmented_control.dart';
Expand Down
Loading
Loading