flutter: Assert(0) when timeout only on DeveloperMode

This commit is contained in:
Calcitem 2021-04-10 09:41:00 +08:00
parent 115a7c7897
commit a0cee1bd06
1 changed files with 3 additions and 1 deletions

View File

@ -288,7 +288,9 @@ class _GamePageState extends State<GamePage> with RouteAware {
break;
case 'timeout':
changeStatus(S.of(context).timeout);
assert(false);
if (Config.developerMode) {
assert(false);
}
return;
default:
changeStatus('Error: ${response.type}');