Skip to content

Commit

Permalink
Improved migration guide
Browse files Browse the repository at this point in the history
  • Loading branch information
Tkko committed Jun 7, 2024
1 parent bb62783 commit 3047de3
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions MIGRATION.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
#### Migration to 5.0.0+
- If you need SMS autofill on Android, you need to add the smart_auth package directly to your project.
### Migration to 5.0.0+

- If you need SMS autofill on Android, you need to add the smart_auth (or similar) package directly
to your project.

Before 5.0.0:

```dart
class Example extends StatelessWidget {
const Example({Key? key}) : super(key: key);
Expand All @@ -11,15 +13,15 @@ class Example extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Pinput(
androidSmsAutofillMethod:
AndroidSmsAutofillMethod.smsUserConsentApi,
androidSmsAutofillMethod: AndroidSmsAutofillMethod.smsUserConsentApi,
listenForMultipleSmsOnAndroid: true,
);
}
}
```

After 5.0.0:

```agsl
dependencies:
smart_auth: 2.0.0
Expand Down

0 comments on commit 3047de3

Please sign in to comment.