Skip to content

Commit cd75004

Browse files
saiful-apxadar2378
andauthored
Added/Fixed default values for TextAnswerView and BooleanAnswerView (#93)
* added missing MultipleChoiceQuestionResult toJson * Updated PlatformAppbar with default AppBar widget * Updated IconButton -> BackButton * Added other field in Multiple choice answers * added Multiple choice autocomplete * Customized the builder * added comment * DRY refactor * Updated other field label behavior * Added clear button and added tick mark check on dropdown * Updated example * Removed comment * json file updated * added default value for text question * Boolean Answer defaultValue * put back actual example_json.json * update build_runner dependency * update flutter changes for android directory * update flutter changes for ios directory * update example pubspec.lock * add missing JsonSerializable annotation for ImageQuestionResult * re-run build_runner latest verson * remove duplicate imports --------- Co-authored-by: Adar <[email protected]> Co-authored-by: saiful_apx <[email protected]>
1 parent 559c31d commit cd75004

23 files changed

+580
-283
lines changed

android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import io.flutter.plugins.camera.CameraPlugin;
55
import io.flutter.plugins.flutter_plugin_android_lifecycle.FlutterAndroidLifecyclePlugin;
66
import io.flutter.plugins.imagepicker.ImagePickerPlugin;
7+
import dev.flutter.plugins.integration_test.IntegrationTestPlugin;
78
import io.flutter.plugins.videoplayer.VideoPlayerPlugin;
89

910
/**
@@ -17,6 +18,7 @@ public static void registerWith(PluginRegistry registry) {
1718
CameraPlugin.registerWith(registry.registrarFor("io.flutter.plugins.camera.CameraPlugin"));
1819
FlutterAndroidLifecyclePlugin.registerWith(registry.registrarFor("io.flutter.plugins.flutter_plugin_android_lifecycle.FlutterAndroidLifecyclePlugin"));
1920
ImagePickerPlugin.registerWith(registry.registrarFor("io.flutter.plugins.imagepicker.ImagePickerPlugin"));
21+
IntegrationTestPlugin.registerWith(registry.registrarFor("dev.flutter.plugins.integration_test.IntegrationTestPlugin"));
2022
VideoPlayerPlugin.registerWith(registry.registrarFor("io.flutter.plugins.videoplayer.VideoPlayerPlugin"));
2123
}
2224

android/local.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
sdk.dir=/Users/marvin/Library/Android/sdk
2-
flutter.sdk=/Users/marvin/fvm/versions/3.3.10
1+
sdk.dir=/Users/saifulislam/Library/Android/sdk
2+
flutter.sdk=/Users/saifulislam/Development/flutter_sdk/flutter

example/assets/example_json.json

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
{
22
"id": "123",
33
"type": "navigable",
4-
"rules": [
5-
{
4+
"rules": [{
65
"type": "conditional",
76
"triggerStepIdentifier": {
87
"id": "7"
@@ -53,8 +52,7 @@
5352
}
5453
}
5554
],
56-
"steps": [
57-
{
55+
"steps": [{
5856
"stepIdentifier": {
5957
"id": "1"
6058
},
@@ -126,8 +124,7 @@
126124
"title": "Known allergies",
127125
"answerFormat": {
128126
"type": "multiple",
129-
"textChoices": [
130-
{
127+
"textChoices": [{
131128
"text": "Penicillin",
132129
"value": "Penicillin"
133130
},
@@ -155,8 +152,7 @@
155152
"text": "We are done, do you mind to tell us more about yourself?",
156153
"answerFormat": {
157154
"type": "single",
158-
"textChoices": [
159-
{
155+
"textChoices": [{
160156
"text": "Yes",
161157
"value": "Yes"
162158
},
@@ -272,8 +268,7 @@
272268
"text": "What type of pet(s) do you have?",
273269
"answerFormat": {
274270
"type": "multiple",
275-
"textChoices": [
276-
{
271+
"textChoices": [{
277272
"text": "Dog",
278273
"value": "Dog"
279274
},

0 commit comments

Comments
 (0)