CTK 1.0.0
This commit is contained in:
@@ -813,6 +813,20 @@ class _InicioTab extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 14),
|
||||
FadeSlideIn(
|
||||
delay: const Duration(milliseconds: 150),
|
||||
child: Center(
|
||||
child: Text(
|
||||
'Mais funcionalidades em breve',
|
||||
style: TextStyle(
|
||||
fontWeight: FontWeight.w700,
|
||||
fontSize: 12.5,
|
||||
color: Colors.black.withValues(alpha: 0.35),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 16),
|
||||
],
|
||||
),
|
||||
@@ -1095,7 +1109,7 @@ Future<Map<String, dynamic>?> _requireFirstChild(
|
||||
) async {
|
||||
final proceed = await showConfirmDialog(
|
||||
context,
|
||||
title: 'Cadastre uma criança',
|
||||
title: 'Registe uma criança',
|
||||
message: 'Antes de iniciar o quiz, adicione uma criança ao seu perfil.',
|
||||
confirmLabel: 'Adicionar criança',
|
||||
);
|
||||
@@ -1636,7 +1650,7 @@ class _PerfilTabState extends State<_PerfilTab> {
|
||||
),
|
||||
onPressed: () =>
|
||||
Navigator.of(ctx).pop(ImageSource.camera),
|
||||
child: const Text('Câmera'),
|
||||
child: const Text('Câmara'),
|
||||
),
|
||||
),
|
||||
),
|
||||
@@ -1729,7 +1743,7 @@ class _PerfilTabState extends State<_PerfilTab> {
|
||||
context,
|
||||
title: 'Remover criança',
|
||||
message:
|
||||
'Tem certeza que deseja remover "$childName"? Essa ação não pode ser desfeita.',
|
||||
'Tem a certeza que quer remover "$childName"? Esta ação não pode ser desfeita.',
|
||||
confirmLabel: 'Remover',
|
||||
confirmColor: const Color(0xFFFF55A7),
|
||||
);
|
||||
@@ -2160,7 +2174,7 @@ class _PerfilTabState extends State<_PerfilTab> {
|
||||
: 'Criança ${i + 1}';
|
||||
final subtitle = [
|
||||
if (childAge != null) 'Idade: $childAge',
|
||||
if (childGender.isNotEmpty) 'Gênero: $childGender',
|
||||
if (childGender.isNotEmpty) 'Género: $childGender',
|
||||
].join(' • ');
|
||||
final bool selected = i == selectedIndex;
|
||||
|
||||
@@ -2389,7 +2403,7 @@ class _AddChildSheetState extends State<_AddChildSheet> {
|
||||
final formOk = _formKey.currentState?.validate() ?? false;
|
||||
setState(() {
|
||||
_birthDateError = _birthDate == null
|
||||
? 'Informe a data de nascimento'
|
||||
? 'Indique a data de nascimento'
|
||||
: null;
|
||||
});
|
||||
if (!formOk || _birthDate == null) return;
|
||||
@@ -2442,7 +2456,7 @@ class _AddChildSheetState extends State<_AddChildSheet> {
|
||||
),
|
||||
validator: (v) {
|
||||
final value = (v ?? '').trim();
|
||||
if (value.isEmpty) return 'Informe o nome';
|
||||
if (value.isEmpty) return 'Indique o nome';
|
||||
if (value.length < 2) return 'Nome muito curto';
|
||||
if (!_namePattern.hasMatch(value)) {
|
||||
return 'O nome não pode conter números';
|
||||
@@ -2490,10 +2504,10 @@ class _AddChildSheetState extends State<_AddChildSheet> {
|
||||
DropdownMenuItem(value: 'Outro', child: Text('Outro')),
|
||||
],
|
||||
onChanged: (v) => setState(() => _gender = v),
|
||||
decoration: const InputDecoration(labelText: 'Gênero'),
|
||||
decoration: const InputDecoration(labelText: 'Género'),
|
||||
validator: (v) {
|
||||
if (v == null || v.trim().isEmpty) {
|
||||
return 'Selecione o gênero';
|
||||
return 'Selecione o género';
|
||||
}
|
||||
return null;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user