File tree Expand file tree Collapse file tree 3 files changed +9
-1
lines changed
Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 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 ✨
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments