Skip to content

Commit a952624

Browse files
Numoyzeshuaro
andauthored
Release 0.0.20 (QuickBirdEng#48)
* Fix views not being updated * Fix selection list tile to handle long text * Fix close survey with survey controller * doc/updated changelog * feature/json-serialization (QuickBirdEng#19) * feature/widget component for the title instead of just text * feature/add generated json files * feature/github-actions (QuickBirdEng#20) * Create .github-actions.yml * Update .github-actions.yml * Update .github-actions.yml * Update .github-actions.yml * feature/trigger build on every branch * Added Video-Step for supporting playing Video (QuickBirdEng#25) * feature/added video step * feature/only go fullscreen if its not already in this state * feature/changed handling of automatic page navigation * fix/fixed use of videoplayer after disposal * fix/video step json serilization test * fix/validation of isOptional * fix/default selection in singlechoiceanswer * fix/source of time picker widget * fix/reverse version * fix/formatting and remove none https links * fix/fix check of optionality (QuickBirdEng#30) * fix/fix check of optionality (QuickBirdEng#46) * feature/survey kit 0.2 (QuickBirdEng#47) * feature/progress-bar * feature/added way to style the progress bar * doc/added documentation of the progress configuration * fix/fixed test by adding missing provider * feature/added way to override the survey app bar * feature/added survey_progress for modification * feature/added way to add radius to the progressbar * fix/calculation of progress of current step * fix/calculation of progress of current step * fix/added events and state for observing to barrel file * fix/added video to exported files * feature/removed pop of route and leave it to the consumer of the survey * feature/show step until survey is finished * fix/added call to result function * feature/added dispose function * feature/navigation animation * feature/added way to override the appbar * fix/appbar parameter * fix/transitions * fix/finish questionnaire method * fix/set scaffold color to transparent * feature/show app bar * feature/added show app bar property * feature/initial step * fix/add value key for page transitions * feature/animated progressbar * fix/survey transitions * fix/progressbar * feature/update flutter 2.8 * feature/added way for localization * bugfx/is options on single choice * bugfix/breaking of text in selections tep * bugfix/update bloc dep Co-authored-by: Joshua <joshuaystang@gmail.com>
1 parent 8142754 commit a952624

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+792
-273
lines changed

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
# 0.0.20
2+
- BREAKING: Value identifier for Single-/Multiplechoice answers is now the value
3+
- BREAKING: You now have to close the survey yourself when finished in onResult
4+
5+
- FEATURE: Progressbar
6+
- FEATURE: Transition between questions
7+
- FEATURE: Localization of text
8+
9+
- BUGFIX: isOptional Flag works now as expected
10+
- BUGFIX: Textinput does not spit text in half anymore
11+
- BUGFIX: Text in Single-/Multiplechoice answers does now break the same if selected or unselected
12+
13+
- INFO: Updated dependencies
14+
115
# 0.0.12
216
- FEATURE: Video-Step
317

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,25 @@ The `SurveyResult` contains a list of `StepResult`s and the `FinishReason`. The
195195
There are already many adaptive elements for Android and IOS implemented. In the future development other parts will be adapted too.
196196
The styling can be adjusted by the build in Flutter theme.
197197

198+
### Localization
199+
If you want to override the fixed texts or adapt them to different languages like close, next, .... You need to provide SurveyKit a Map of translations
200+
201+
```dart
202+
SurveyKit(
203+
localizations: {
204+
'cancel': 'Cancel',
205+
}
206+
);
207+
```
208+
Here is a complete list of keys that can be overriden:
209+
210+
| key | value |
211+
|-------|--------|
212+
| cancel| |
213+
| next | |
214+
| | |
215+
216+
198217
### Start the survey
199218
All that's left is to insert the survey in the widget tree and enjoy.🎉🎊
200219
```dart

example/ios/Podfile.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ EXTERNAL SOURCES:
2424
:path: ".symlinks/plugins/wakelock/ios"
2525

2626
SPEC CHECKSUMS:
27-
Flutter: 434fef37c0980e73bb6479ef766c45957d4b510c
27+
Flutter: 50d75fe2f02b26cc09d224853bb45737f8b3214a
2828
survey_kit: fabd7496d806f0b9679e5a448414da27d8b1a731
29-
video_player: 9cc823b1d9da7e8427ee591e8438bfbcde500e6e
29+
video_player: ecd305f42e9044793efd34846e1ce64c31ea6fcb
3030
wakelock: d0fc7c864128eac40eba1617cb5264d9c940b46f
3131

3232
PODFILE CHECKSUM: aafe91acc616949ddb318b77800a7f51bffa2a4c
3333

34-
COCOAPODS: 1.10.1
34+
COCOAPODS: 1.11.2

example/ios/Runner.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
archiveVersion = 1;
44
classes = {
55
};
6-
objectVersion = 46;
6+
objectVersion = 50;
77
objects = {
88

99
/* Begin PBXBuildFile section */
@@ -156,7 +156,7 @@
156156
97C146E61CF9000F007C117D /* Project object */ = {
157157
isa = PBXProject;
158158
attributes = {
159-
LastUpgradeCheck = 1020;
159+
LastUpgradeCheck = 1300;
160160
ORGANIZATIONNAME = "";
161161
TargetAttributes = {
162162
97C146ED1CF9000F007C117D = {

example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1020"
3+
LastUpgradeVersion = "1300"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

example/lib/main.dart

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ class _MyAppState extends State<MyApp> {
3434
print(result.finishReason);
3535
},
3636
task: task,
37+
showProgress: true,
38+
localizations: {
39+
'cancel': 'Cancel',
40+
'next': 'Next',
41+
},
3742
themeData: Theme.of(context).copyWith(
3843
colorScheme: ColorScheme.fromSwatch(
3944
primarySwatch: Colors.cyan,
@@ -47,10 +52,8 @@ class _MyAppState extends State<MyApp> {
4752
iconTheme: IconThemeData(
4853
color: Colors.cyan,
4954
),
50-
textTheme: TextTheme(
51-
button: TextStyle(
52-
color: Colors.cyan,
53-
),
55+
titleTextStyle: TextStyle(
56+
color: Colors.cyan,
5457
),
5558
),
5659
iconTheme: const IconThemeData(
@@ -108,6 +111,9 @@ class _MyAppState extends State<MyApp> {
108111
),
109112
),
110113
),
114+
surveyProgressbarConfiguration: SurveyProgressConfiguration(
115+
backgroundColor: Colors.white,
116+
),
111117
);
112118
}
113119
return CircularProgressIndicator.adaptive();
@@ -168,6 +174,7 @@ class _MyAppState extends State<MyApp> {
168174
QuestionStep(
169175
title: 'Known allergies',
170176
text: 'Do you have any allergies that we should be aware of?',
177+
isOptional: false,
171178
answerFormat: MultipleChoiceAnswerFormat(
172179
textChoices: [
173180
TextChoice(text: 'Penicillin', value: 'Penicillin'),
@@ -180,6 +187,7 @@ class _MyAppState extends State<MyApp> {
180187
QuestionStep(
181188
title: 'Done?',
182189
text: 'We are done, do you mind to tell us more about yourself?',
190+
isOptional: true,
183191
answerFormat: SingleChoiceAnswerFormat(
184192
textChoices: [
185193
TextChoice(text: 'Yes', value: 'Yes'),

example/macos/Podfile.lock

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,22 @@
11
PODS:
22
- FlutterMacOS (1.0.0)
3+
- wakelock_macos (0.0.1):
4+
- FlutterMacOS
35

46
DEPENDENCIES:
57
- FlutterMacOS (from `Flutter/ephemeral`)
8+
- wakelock_macos (from `Flutter/ephemeral/.symlinks/plugins/wakelock_macos/macos`)
69

710
EXTERNAL SOURCES:
811
FlutterMacOS:
912
:path: Flutter/ephemeral
13+
wakelock_macos:
14+
:path: Flutter/ephemeral/.symlinks/plugins/wakelock_macos/macos
1015

1116
SPEC CHECKSUMS:
1217
FlutterMacOS: 57701585bf7de1b3fc2bb61f6378d73bbdea8424
18+
wakelock_macos: bc3f2a9bd8d2e6c89fee1e1822e7ddac3bd004a9
1319

1420
PODFILE CHECKSUM: 6eac6b3292e5142cfc23bdeb71848a40ec51c14c
1521

16-
COCOAPODS: 1.10.1
22+
COCOAPODS: 1.11.2

example/macos/Runner.xcodeproj/project.pbxproj

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@
184184
33CC10EB2044A3C60003C045 /* Resources */,
185185
33CC110E2044A8840003C045 /* Bundle Framework */,
186186
3399D490228B24CF009A79C7 /* ShellScript */,
187+
C279A6C9F7663753E8BD3C0D /* [CP] Embed Pods Frameworks */,
187188
);
188189
buildRules = (
189190
);
@@ -312,6 +313,23 @@
312313
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
313314
showEnvVarsInLog = 0;
314315
};
316+
C279A6C9F7663753E8BD3C0D /* [CP] Embed Pods Frameworks */ = {
317+
isa = PBXShellScriptBuildPhase;
318+
buildActionMask = 2147483647;
319+
files = (
320+
);
321+
inputFileListPaths = (
322+
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",
323+
);
324+
name = "[CP] Embed Pods Frameworks";
325+
outputFileListPaths = (
326+
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",
327+
);
328+
runOnlyForDeploymentPostprocessing = 0;
329+
shellPath = /bin/sh;
330+
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
331+
showEnvVarsInLog = 0;
332+
};
315333
/* End PBXShellScriptBuildPhase section */
316334

317335
/* Begin PBXSourcesBuildPhase section */

0 commit comments

Comments
 (0)