Skip to content

Commit 4457f80

Browse files
committed
updated documents
1 parent af1e80b commit 4457f80

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
- Added PastedTextStyle.
77
- Added iOS autofill added wtih Flutter version 1.20.0
88

9+
### Breaking changes ⚠️
10+
11+
- Must provide context in the `appContext` parameter.
12+
913
# [4.0.0]
1014

1115
### Features ✨

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ A flutter package which will help you to generate pin code fields with beautiful
4242
## Properties 🔖
4343

4444
```Dart
45+
/// The [BuildContext] of the application
46+
final BuildContext appContext;
47+
4548
/// length of how many cells there should be. 3-8 is recommended by me
4649
final int length;
4750

test/pin_code_fields_test.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ void main() {
1010
TestWidgetsFlutterBinding.ensureInitialized();
1111

1212
/// This test demonstrates that a application can set a InputDecorationTheme
13-
/// which specifies a background color for input fields. When this happens,
13+
/// which specifies a background color for input fields. When this happens,
1414
/// the PinCodeFields should override the theme setting with the users chosen
1515
/// background color.
1616
testWidgets('transparent background', (WidgetTester tester) async {
@@ -28,6 +28,7 @@ void main() {
2828
backgroundColor: Colors.black,
2929
body: Builder(builder: (context) {
3030
return PinCodeTextField(
31+
appContext: context,
3132
autoFocus: true,
3233
backgroundColor: Colors.transparent,
3334
length: 6,

0 commit comments

Comments
 (0)