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> { ...@@ -24,10 +24,6 @@ class _PaginaAjustesState extends State<PaginaAjustes> {
int incluirSubcarpeta = 0; int incluirSubcarpeta = 0;
int carpetaSalida = 0; int carpetaSalida = 0;
String subtituloModoConversion = "Copiar / Comprimir / Preguntar siempre";
String subtituloIncluirSubcarpetas = "Siempre / Nunca";
String subtituloCarpetaSalida = "Preguntar siempre / Elegir";
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return Scaffold(
...@@ -98,7 +94,33 @@ class _PaginaAjustesState extends State<PaginaAjustes> { ...@@ -98,7 +94,33 @@ class _PaginaAjustesState extends State<PaginaAjustes> {
), ),
), ),
InkWell( 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( child: ListTile(
title: const Text("Creadores"), title: const Text("Creadores"),
), ),
...@@ -116,14 +138,22 @@ class _PaginaAjustesState extends State<PaginaAjustes> { ...@@ -116,14 +138,22 @@ class _PaginaAjustesState extends State<PaginaAjustes> {
var listaOpciones = <Widget>[]; var listaOpciones = <Widget>[];
opciones.asMap().forEach((index, opcion) { opciones.asMap().forEach((index, opcion) {
listaOpciones.add( listaOpciones.add(
ListTile( // Me gustaria que al pulsar en cualquier sitio se hiciese splash
leading: Radio<int>( // solo en el Radio pero no se como todavia
value: index, GestureDetector(
groupValue: seleccionado, behavior: HitTestBehavior.translucent,
onChanged: (int? changed) {callbacks[index]();} onTap: callbacks[index],
), child: Row(
title: Text(opcion), 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