Skip to content

Commit

Permalink
Merge pull request #16 from sanifhimani/release-candidate
Browse files Browse the repository at this point in the history
Release v2.2.0
  • Loading branch information
sanifhimani authored May 6, 2023
2 parents f084b1b + ccd2249 commit 17511d0
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## [2.2.0]
- Add support for auto fill hints

## [2.1.0]
- Add support for input formatters

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ A Flutter package to generate customizable pin code fields.
* Responsive
* Supports animations
* Supports autofocus
* Supports autofill
* Supports obscuring text with custom character

# Usage
Expand Down
4 changes: 4 additions & 0 deletions lib/src/flutter_pin_code_fields.dart
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ class PinCodeFields extends StatefulWidget {
/// Default is false
final bool autofocus;

/// A list of strings that helps the autofill service identify the type of this text input.
final Iterable<String>? autofillHints;

/// Custom text style
final TextStyle textStyle;

Expand Down Expand Up @@ -147,6 +150,7 @@ class PinCodeFields extends StatefulWidget {
this.focusNode,
this.onChange,
required this.onComplete,
this.autofillHints,
});

@override
Expand Down
1 change: 1 addition & 0 deletions lib/src/pin_code_fields_state.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ class PinCodeFieldsState extends State<PinCodeFields> {
controller: _textEditingController,
focusNode: _focusNode,
enabled: widget.enabled,
autofillHints: widget.autofillHints,
autofocus: widget.autofocus,
autocorrect: false,
keyboardType: widget.keyboardType,
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: flutter_pin_code_fields
description: A flutter package which will help you generate customizable pin code fields. Can be used for login pins or OTP.
version: 2.1.0
version: 2.2.0
homepage: https://github.com/sanifhimani/flutter_pin_code_fields
repository: https://github.com/sanifhimani/flutter_pin_code_fields
issue_tracker: https://github.com/sanifhimani/flutter_pin_code_fields/issues
Expand Down

0 comments on commit 17511d0

Please sign in to comment.