Skip to content

Commit 2c1b929

Browse files
message when there are no associations (#405)
1 parent b0fff3c commit 2c1b929

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/samples/display_content_of_utility_network_container/display_content_of_utility_network_container.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,9 @@ class _DisplayContentOfUtilityNetworkContainerState
370370
// Remember the previous viewpoint and update the message banner.
371371
setState(() {
372372
_previousViewpoint = viewpoint;
373-
_message = 'Contained associations are shown.';
373+
_message = containedAssociations.isEmpty
374+
? 'This feature contains no associations.'
375+
: 'Contained associations are shown.';
374376
});
375377
}
376378

0 commit comments

Comments
 (0)