-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This feature will add agreement view for the survey (#140)
* 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 * Fixed consistent focus in non textfield views There was a problem that keyboard was not hiding after navigating to next question when the view is not text/double answer view * added showCancelButton flag * added fluter_markdown and url_launcher packge * url_launcher * added Agreement feature/view * SingleCheckbox -> Agreement * Fixed tapping text to set the agreement to true * added result parsing for AgreementQuestionResult * 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 * refactor: add flutter generated files * refactor: update example_json with proper ids * refactor: update styles for agreement answer view * refactor: update pubspec.lock * fix: remove duplicate ids for steps * refactor: add toggling radio button state for agreement
- Loading branch information
Showing
22 changed files
with
504 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
sdk.dir=/Users/marvin/Library/Android/sdk | ||
flutter.sdk=/Users/marvin/flutter | ||
sdk.dir=/Users/saifulislam/Library/Android/sdk | ||
flutter.sdk=/Users/saifulislam/Development/flutter_sdk/flutter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import 'package:json_annotation/json_annotation.dart'; | ||
import 'package:survey_kit/src/answer_format/answer_format.dart'; | ||
import 'package:survey_kit/src/answer_format/boolean_answer_format.dart'; | ||
|
||
part 'agreement_answer_format.g.dart'; | ||
|
||
@JsonSerializable() | ||
class AgreementAnswerFormat implements AnswerFormat { | ||
final BooleanResult result; | ||
final BooleanResult? defaultValue; | ||
final String? markdownDescription; | ||
final String? markdownAgreementText; | ||
|
||
const AgreementAnswerFormat({ | ||
this.result = BooleanResult.NEGATIVE, | ||
this.defaultValue, | ||
this.markdownDescription, | ||
this.markdownAgreementText, | ||
}) : super(); | ||
|
||
factory AgreementAnswerFormat.fromJson(Map<String, dynamic> json) => | ||
_$AgreementAnswerFormatFromJson(json); | ||
Map<String, dynamic> toJson() => _$AgreementAnswerFormatToJson(this); | ||
} |
Oops, something went wrong.