Skip to content

Commit

Permalink
improvements to make documentation work (#247)
Browse files Browse the repository at this point in the history
the file 'intl.dart' was exported; and I changed FormBuilder Stepper by FormBuilderTouchSpin so that the example works
  • Loading branch information
zkmark committed Mar 27, 2020
1 parent aa080f7 commit 3b9323d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ final GlobalKey<FormBuilderState> _fbKey = GlobalKey<FormBuilderState>();
```
**Note:** Avoid defining the GlobalKey inside your build method because this will create a new GlobalKey on every build cycle bringing about some erratic behavior.

**Note:** If you use FormBuilderDateTimePicker
```dart
import 'package:intl/intl.dart';
```


```dart
Column(
children: <Widget>[
Expand Down Expand Up @@ -85,7 +91,7 @@ Column(
attribute: "accept_terms_switch",
initialValue: true,
),
FormBuilderStepper(
FormBuilderTouchSpin(
decoration: InputDecoration(labelText: "Stepper"),
attribute: "stepper",
initialValue: 10,
Expand Down Expand Up @@ -387,4 +393,4 @@ Form's `reset()` doesn't clear SignaturePad - You'll be forced to clear manually
## SUPPORT
If this package was helpful to you in delivering on your project or you just wanna to support this project, a cup of coffee would be highly appreciated ;-)

[![Buy me a coffee](https://www.buymeacoffee.com/assets/img/custom_images/purple_img.png)](https://buymeacoff.ee/wb5M9y2Sz)
[![Buy me a coffee](https://www.buymeacoffee.com/assets/img/custom_images/purple_img.png)](https://buymeacoff.ee/wb5M9y2Sz)

0 comments on commit 3b9323d

Please sign in to comment.