|
@@ -63,18 +63,13 @@ class _LeftSelectInputState extends FState<LeftSelectInput> {
|
|
|
color: Colors.transparent,
|
|
|
child: FIconButton(
|
|
|
onPressed: () async {
|
|
|
- List<CommentItemDTO> measureCommentItemList =
|
|
|
- measureData.measureCommentItemResult;
|
|
|
if (commentItem.isEmpty) {
|
|
|
PromptBox.toast(i18nBook.measure.pleaseAddCcomment.t);
|
|
|
} else {
|
|
|
- measureCommentItemList.add(
|
|
|
- CommentItemDTO(text: commentItem),
|
|
|
- );
|
|
|
var result = await measureData.saveUserDefinedCommentsAsync(
|
|
|
application.applicationName,
|
|
|
application.categoryName,
|
|
|
- measureCommentItemList,
|
|
|
+ [CommentItemDTO(text: commentItem)],
|
|
|
);
|
|
|
if (result ?? false) {
|
|
|
measureHandler.changedTab = TagEnum.MeasureTool;
|