Skip to content

Commit ded4677

Browse files
committed
chore(demo): disable text suggestions in AppTextField
and location settings for android demo
1 parent 36effd0 commit ded4677

3 files changed

Lines changed: 7 additions & 0 deletions

File tree

examples/demo/android/app/src/main/AndroidManifest.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
2+
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
3+
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
24
<application
35
android:label="OneSignal Demo"
46
android:name="${applicationName}"

examples/demo/lib/widgets/app_text_field.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,8 @@ class AppTextField extends TextField {
1111
super.style,
1212
super.maxLines,
1313
super.autocorrect = false,
14+
super.enableSuggestions = false,
15+
super.smartQuotesType = SmartQuotesType.disabled,
16+
super.smartDashesType = SmartDashesType.disabled,
1417
});
1518
}

examples/demo_spm/android/app/src/main/AndroidManifest.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
2+
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
3+
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
24
<application
35
android:label="demo"
46
android:name="${applicationName}"

0 commit comments

Comments
 (0)