Mejorado un poco los diálogos y añadido algo sencillo en creadores

parent 94d88125
Showing with 43 additions and 13 deletions
......@@ -24,10 +24,6 @@ class _PaginaAjustesState extends State<PaginaAjustes> {
int incluirSubcarpeta = 0;
int carpetaSalida = 0;
String subtituloModoConversion = "Copiar / Comprimir / Preguntar siempre";
String subtituloIncluirSubcarpetas = "Siempre / Nunca";
String subtituloCarpetaSalida = "Preguntar siempre / Elegir";
@override
Widget build(BuildContext context) {
return Scaffold(
......@@ -98,7 +94,33 @@ class _PaginaAjustesState extends State<PaginaAjustes> {
),
),
InkWell(
onTap: () {},
onTap: () {
showDialog(context: context, builder: (context) {
TextTheme textTheme = Theme.of(context).textTheme;
return SimpleDialog(
children: [
Column(
children: [
Text(
"Convertex",
style: textTheme.titleLarge,
),
const SizedBox(height: 8.0,),
Text(
"Diego Pérez Peña",
style: textTheme.bodyLarge,
),
const SizedBox(height: 4.0,),
Text(
"Rafael Castillo Passols",
style: textTheme.bodyLarge,
),
],
)
],
);
});
},
child: ListTile(
title: const Text("Creadores"),
),
......@@ -116,14 +138,22 @@ class _PaginaAjustesState extends State<PaginaAjustes> {
var listaOpciones = <Widget>[];
opciones.asMap().forEach((index, opcion) {
listaOpciones.add(
ListTile(
leading: Radio<int>(
value: index,
groupValue: seleccionado,
onChanged: (int? changed) {callbacks[index]();}
),
title: Text(opcion),
)
// Me gustaria que al pulsar en cualquier sitio se hiciese splash
// solo en el Radio pero no se como todavia
GestureDetector(
behavior: HitTestBehavior.translucent,
onTap: callbacks[index],
child: Row(
children: [
Radio<int>(
value: index,
groupValue: seleccionado,
onChanged: (int? changed) {callbacks[index]();}
),
Text(opcion)
],
),
)
);
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment