Atulização do quiz | Porcentagem na base de dados | Telas de Contrato com o usuario

This commit is contained in:
Carlos Correia
2026-07-13 22:28:01 +01:00
parent 824fdb8089
commit 4fcf3a475a
23 changed files with 2061 additions and 369 deletions

View File

@@ -143,9 +143,7 @@ class _LoggedHomeScreenState extends State<LoggedHomeScreen>
await prefs.remove(_kPendingQuizScopeKey);
if (!mounted) return;
await Navigator.of(context).push(
MaterialPageRoute<void>(builder: (_) => Quiz1Screen(scopeId: scopeId)),
);
await Navigator.of(context).push(quizStartRoute(scopeId: scopeId));
if (!mounted) return;
await _loadQuizResult();
} catch (_) {
@@ -721,9 +719,7 @@ class _InicioTab extends StatelessWidget {
final state = context.findAncestorStateOfType<_LoggedHomeScreenState>();
state?.selectChild(childName, scopeId);
await Navigator.of(context).push(
MaterialPageRoute<void>(builder: (_) => Quiz1Screen(scopeId: scopeId)),
);
await Navigator.of(context).push(quizStartRoute(scopeId: scopeId));
onQuizClosed();
}
@@ -1310,7 +1306,7 @@ class _HeroQuizCard extends StatelessWidget {
),
const SizedBox(height: 5),
Text(
'23 perguntas rápidas · menos de 3 minutos',
'26 perguntas rápidas · menos de 3 minutos',
style: TextStyle(
color: Colors.white.withValues(alpha: 0.92),
fontWeight: FontWeight.w600,