Skip to content

Commit

Permalink
Added displaying units in numeric answer input
Browse files Browse the repository at this point in the history
v0.9.0-dev.1
  • Loading branch information
sp-nazar committed May 25, 2023
1 parent 8c2eda6 commit 347bf1a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.9.0-dev.1
### Faiadashu
* Added displaying units in numeric answer input

## 0.9.0-alpha.1
**[Breaking]** This alpha release is beginning to use Flutter 3.10.0 and fhir 0.11.0.

Expand Down
2 changes: 1 addition & 1 deletion faiadashu_online/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: Faiadashu Online - Functionalities for faiadashu that connect to FH
# pub.dev using `pub publish`. This is preferred for private packages.
publish_to: none

version: 0.9.0-alpha.1
version: 0.9.0-dev.1
homepage: https://tiloc.github.io/faiadashu/
repository: https://github.com/tiloc/faiadashu
issue_tracker: https://github.com/tiloc/faiadashu/issues
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,8 @@ class _NumberFieldInputControl

final theme = QuestionnaireTheme.of(context);

final displayUnits = answerModel.qi.computableUnit?.display;

return Container(
padding: const EdgeInsets.only(top: 8, bottom: 8),
child: SizedBox(
Expand Down Expand Up @@ -218,6 +220,9 @@ class _NumberFieldInputControl
),
)
: null,
suffix: displayUnits != null
? Text(' $displayUnits')
: null,
),
inputFormatters: [numberInputFormatter],
keyboardType: TextInputType.numberWithOptions(
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ description: Faiadashu FHIRDash - Build beautiful healthcare apps fast — use t
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 0.9.0-alpha.1
version: 0.9.0-dev.1
homepage: https://tiloc.github.io/faiadashu/
repository: https://github.com/tiloc/faiadashu
issue_tracker: https://github.com/tiloc/faiadashu/issues
Expand Down

0 comments on commit 347bf1a

Please sign in to comment.