Skip to content

Commit b2989b2

Browse files
committed
added documentations
1 parent da91bfc commit b2989b2

File tree

4 files changed

+49
-27
lines changed

4 files changed

+49
-27
lines changed

CHANGELOG.md

+43-25
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
# [4.0.0]
2+
3+
### Features ✨
4+
5+
- Added support for flutter-web
6+
7+
### Breaking changes ⚠️
8+
9+
- Replaced internal automatic OS selection for dialog styles, you can select which style you want by configuring with the DialogConfig
10+
111
[3.1.2] Documentation update
212

313
[3.1.1] Documentation update
@@ -6,37 +16,42 @@
616

717
Better performance overall
818

9-
### Features ✨
10-
- Added new parameter called `validator`, `autoValidate` & `errorTextSpace`.
19+
### Features ✨
20+
21+
- Added new parameter called `validator`, `autoValidate` & `errorTextSpace`.
22+
23+
### Breaking changes ⚠️
1124

12-
### Breaking changes ⚠️
1325
- The internal `TextField` has been changed to `TextFormField` to work with `Form`
1426
- The debug logs will not be printed in release builds.
1527

1628
## [3.0.1]
1729

1830
Better Performance overall
1931

20-
### Updates
21-
- Fixed bug where calling setState will not reflect the change on the parent view
22-
32+
### Updates ✨
33+
34+
- Fixed bug where calling setState will not reflect the change on the parent view
2335

2436
---
2537

2638
## [3.0.0]
2739

2840
Better performance overall
2941

30-
### Features ✨
31-
- Added new parameter called `bool Function(String text) beforeTextPaste`, a callback method to validate if text can be pasted.
42+
### Features ✨
43+
44+
- Added new parameter called `bool Function(String text) beforeTextPaste`, a callback method to validate if text can be pasted.
3245
- Introduced `PinTheme` & `DialogConfig`
3346
- Added an optional constructor parameter: `void Function(String) onCompleted`. which triggers when all fields are filled.
3447

35-
### Fixes 🐛
48+
### Fixes 🐛
49+
3650
- When pressing the back button to close the keyboard, you can't open the keyboard back up again. #51
3751
- When we long press on the OTP field to paste the code & if clipboard data is NULL, it gets crashed. #45
3852

39-
### Breaking changes ⚠️
53+
### Breaking changes ⚠️
54+
4055
- Removed all the color, cell height, width & dialogconfiguration and moved them in `PinTheme` and `DialogConfig`
4156

4257
[2.5.1] Documentation update
@@ -45,24 +60,24 @@ Better performance overall
4560

4661
Better Performance overall
4762

48-
### Updates
49-
- Added errorAnimationController to trigger shake animation. Can be used for errors.
50-
- Added autoDisposeControllers which can be set to true for auto TextEidtingController and FocusNode disposal.
51-
- Fixed typos & Optimzied code
52-
63+
### Updates ✨
64+
65+
- Added errorAnimationController to trigger shake animation. Can be used for errors.
66+
- Added autoDisposeControllers which can be set to true for auto TextEidtingController and FocusNode disposal.
67+
- Fixed typos & Optimzied code
5368

5469
---
5570

5671
## [2.4.0]
5772

5873
Better Performance overall
5974

60-
### Updates
61-
- Optional: Exposed TextCapitalization, TextInputAction.
62-
- Added background color customization for each cell(SelectedCell, UnselectedCell and InactiveCell). But you must set `enableActiveFill = true`.
63-
- Added warning messages
64-
- Fixed typos & Optimzied code
65-
75+
### Updates ✨
76+
77+
- Optional: Exposed TextCapitalization, TextInputAction.
78+
- Added background color customization for each cell(SelectedCell, UnselectedCell and InactiveCell). But you must set `enableActiveFill = true`.
79+
- Added warning messages
80+
- Fixed typos & Optimzied code
6681

6782
---
6883

@@ -76,7 +91,7 @@ Better Performance overall
7691

7792
Better Performance overall
7893

79-
### Updates
94+
### Updates ✨
8095

8196
- Optional: Exposed `controller` so that one can control the texts programmatically
8297
- Updated the example code with clear and set manual text buttons.
@@ -102,7 +117,8 @@ Better Performance overall
102117

103118
Better performance overall
104119

105-
### Features ✨
120+
### Features ✨
121+
106122
- Colors:
107123
- `selectedColor` is the color set on the current index. Default is `Colors.blue`
108124
- `disabledColor` is the color if the TextField is disabled. Default is `Colors.grey`
@@ -111,12 +127,14 @@ Better performance overall
111127
- Added a new constructor parameter called `enabled`. Default is true
112128
- Added an optional constructor parameter: `void Function(String) onCompleted`. which triggers when all fields are filled.
113129

114-
### Fixes 🐛
130+
### Fixes 🐛
131+
115132
- Colors:
116133
- `activeColor` and `inactiveColor` were swapped
117134
- Keyboard does not show up onTap #4
118135

119-
### Breaking changes ⚠️
136+
### Breaking changes ⚠️
137+
120138
- Renamed `currentText` to `onChanged`
121139

122140
---

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,9 @@ A flutter package which will help you to generate pin code fields with beautiful
170170
171171
/// Negative action text for the [AlertDialog]. Default to "Cancel"
172172
final String negativeText;
173+
174+
/// The default dialog theme, should it be iOS or other(including web and Android)
175+
final Platform platform; //enum Platform { iOS, other } other indicates for web and android
173176
```
174177

175178
## Contributors ✨
@@ -191,6 +194,7 @@ Thanks to everyone whoever suggested their thoughts to improve this package. And
191194
<tr>
192195
<td align="center"><a href="https://github.com/JeffryHermanto"><img src="https://avatars0.githubusercontent.com/u/35820325?v=3" width="100px;" alt="Jeffry Hermanto"/><br /><sub><b>Jeffry Hermanto</b></sub></a><br /><a href="https://github.com/adar2378/pin_code_fields/commits?author=JeffryHermanto" title="Code">💻</a></td>
193196
<td align="center"><a href="https://github.com/ItamarMu"><img src="https://avatars3.githubusercontent.com/u/27651221?v=3" width="100px;" alt="ItamarMu"/><br /><sub><b>ItamarMu</b></sub></a><br /><a href="https://github.com/adar2378/pin_code_fields/commits?author=ItamarMu" title="Code">💻</a></td>
197+
<td align="center"><a href="https://github.com/ened"><img src="https://avatars0.githubusercontent.com/u/269860?v=3" width="100px;" alt="Sebastian Roth"/><br /><sub><b>Sebastian Roth</b></sub></a><br /><a href="https://github.com/adar2378/pin_code_fields/commits?author=ened" title="Code">💻</a></td>
194198
</tr>
195199
</table>
196200

lib/src/models/platform.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
enum Platform { iOS, other }
1+
enum Platform { iOS, other } //other indicates for web and android

pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: pin_code_fields
22
description: A flutter package which will help you to generate pin code fields. Can be useful for OTP for example.
3-
version: 3.1.2
3+
version: 4.0.0
44
homepage: https://github.com/adar2378
55
repository: https://github.com/adar2378/pin_code_fields
66

0 commit comments

Comments
 (0)