Commit d9c84e11 by Tecnicos

Clase del 14/03/2025

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