Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| f64f36b78f | |||
| 0772ec526e | |||
| 08235999d3 |
@@ -14,9 +14,6 @@ class PantallaAjustes extends StatefulWidget {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class _PantallaAjustesState extends State<PantallaAjustes> {
|
class _PantallaAjustesState extends State<PantallaAjustes> {
|
||||||
double _volumen = 0.7;
|
|
||||||
bool _vibracion = true;
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
final l10n = AppLocalizations.of(context)!;
|
final l10n = AppLocalizations.of(context)!;
|
||||||
@@ -84,73 +81,6 @@ class _PantallaAjustesState extends State<PantallaAjustes> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(height: 12),
|
const SizedBox(height: 12),
|
||||||
|
|
||||||
// Volumen de efectos de sonido
|
|
||||||
Card(
|
|
||||||
child: Padding(
|
|
||||||
padding: const EdgeInsets.all(16),
|
|
||||||
child: Column(
|
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
|
||||||
children: [
|
|
||||||
Text(l10n.soundVolume,
|
|
||||||
style: Theme.of(context).textTheme.titleLarge),
|
|
||||||
const SizedBox(height: 8),
|
|
||||||
Slider(
|
|
||||||
value: _volumen,
|
|
||||||
onChanged: (v) => setState(() => _volumen = v),
|
|
||||||
activeColor: TemaApp.colorAcento,
|
|
||||||
inactiveColor: TemaApp.colorTarjeta,
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
const SizedBox(height: 12),
|
|
||||||
|
|
||||||
// Vibración
|
|
||||||
Card(
|
|
||||||
child: SwitchListTile(
|
|
||||||
title: Text(l10n.vibration),
|
|
||||||
value: _vibracion,
|
|
||||||
onChanged: (v) => setState(() => _vibracion = v),
|
|
||||||
contentPadding:
|
|
||||||
const EdgeInsets.symmetric(horizontal: 16, vertical: 4),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
const SizedBox(height: 12),
|
|
||||||
|
|
||||||
// Acerca de
|
|
||||||
Card(
|
|
||||||
child: Padding(
|
|
||||||
padding: const EdgeInsets.all(16),
|
|
||||||
child: Column(
|
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
|
||||||
children: [
|
|
||||||
Text(l10n.about,
|
|
||||||
style: Theme.of(context).textTheme.titleLarge),
|
|
||||||
const SizedBox(height: 12),
|
|
||||||
_filaInfo(context, l10n.version, '1.0.0'),
|
|
||||||
const SizedBox(height: 8),
|
|
||||||
_filaInfo(context, l10n.developer, 'FreeTTimeLab'),
|
|
||||||
const SizedBox(height: 8),
|
|
||||||
SizedBox(
|
|
||||||
width: double.infinity,
|
|
||||||
child: OutlinedButton(
|
|
||||||
onPressed: () {
|
|
||||||
showLicensePage(
|
|
||||||
context: context,
|
|
||||||
applicationName: 'Farolero',
|
|
||||||
applicationVersion: '1.0.0',
|
|
||||||
);
|
|
||||||
},
|
|
||||||
child: Text(l10n.licenses),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
const SizedBox(height: 16),
|
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -180,16 +110,6 @@ class _PantallaAjustesState extends State<PantallaAjustes> {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
Widget _filaInfo(BuildContext context, String etiqueta, String valor) {
|
|
||||||
return Row(
|
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
||||||
children: [
|
|
||||||
Text(etiqueta, style: Theme.of(context).textTheme.bodyMedium),
|
|
||||||
Text(valor, style: Theme.of(context).textTheme.bodyLarge),
|
|
||||||
],
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
Future<void> _editarPerfil(BuildContext context) async {
|
Future<void> _editarPerfil(BuildContext context) async {
|
||||||
final servicioPerfil = context.read<ServicioPerfilUsuario>();
|
final servicioPerfil = context.read<ServicioPerfilUsuario>();
|
||||||
final actual = servicioPerfil.perfil;
|
final actual = servicioPerfil.perfil;
|
||||||
|
|||||||
Reference in New Issue
Block a user