Commit d9c84e11 by Tecnicos

Clase del 14/03/2025

parent 6f38edde
......@@ -18,8 +18,8 @@ class Carpeta extends Seleccionable {
final bool recursiva;
Carpeta(this.directory, this.recursiva): super(
nombre: directory.path,
icono: const Icon(Icons.description_outlined)
nombre: directory.path.split('/').last,
icono: const Icon(Icons.folder)
)
{
// TODO: mirar recursividad y Link objects
......
......@@ -11,10 +11,7 @@ class SeleccionableWidget extends StatelessWidget {
Widget build(BuildContext context) {
return Row(
children: <Widget>[
const Icon(
Icons.file_open,
size: 30,
),
seleccionable.icono,
const SizedBox(width: 10,),
Expanded(
child: Column(
......@@ -27,12 +24,10 @@ class SeleccionableWidget extends StatelessWidget {
],
)
),
/* Algo como esto para una carpeta
if (convertible is carpeta)
IconButton(onPressed: () {}, icon: Icon(Icons.edit)),
*/
if (seleccionable is Carpeta)
IconButton(onPressed: () {}, icon: Icon(Icons.menu)),
IconButton(
icon: seleccionable.icono,
icon: const Icon(Icons.edit),
onPressed: () {},
)
],
......
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