Solucionado (ver solução)
Solucionado
(ver solução)
1
resposta

Erro com condição do assert

Alguém poderia me ajudar com este erro por favor?

════════ Exception caught by widgets library ═══════════════════════════════════════════════════════
The following assertion was thrown building DashboardView(dirty):
'package:bytebank/components/localization.dart': Failed assertion: line 77 pos 12: '_messages.containsKey(key)': is not true.

The relevant error-causing widget was: 
  DashboardView file:///C:/Users/stras/OneDrive/Documentos/ALURA_CURSOS/mobile/flutter-internationalization-3.0/lib/screens/dashboard.dart:16:23
When the exception was thrown, this was the stack: 
#2      I18NMessages.get (package:bytebank/components/localization.dart:77:12)
#3      DashboardViewLazyI18N.transactionFeed (package:bytebank/screens/dashboard.dart:106:43)
#4      DashboardView.build (package:bytebank/screens/dashboard.dart:56:27)
#5      StatelessElement.build (package:flutter/src/widgets/framework.dart:4701:28)
#6      ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4627:15)
...
1 resposta
solução!

Bom dia! Se tratava apenas de meu antí-virus. Desabilitando ele temporariamente para compilar o app, o mesmo funcionou. ATT.

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software