diff --git a/flutter/lib/common.dart b/flutter/lib/common.dart index d294cb573..7827ee13c 100644 --- a/flutter/lib/common.dart +++ b/flutter/lib/common.dart @@ -999,7 +999,7 @@ Widget msgboxIcon(String type) { // title should be null Widget msgboxContent(String type, String title, String text) { String translateText(String text) { - if (text.indexOf('Failed') == 0 && text.contains(': ')) { + if (text.indexOf('Failed') == 0 && text.indexOf(': ') > 0) { List words = text.split(': '); for (var i = 0; i < words.length; ++i) { words[i] = translate(words[i]);