Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Rafa Castillo Passols
/
Prototipo-Multimedia
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
d9c84e11
authored
Mar 14, 2025
by
Tecnicos
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Clase del 14/03/2025
parent
6f38edde
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
12 deletions
lib/modelo/seleccionables.dart
lib/widget/seleccionable_widget.dart
lib/modelo/seleccionables.dart
View file @
d9c84e11
...
@@ -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
...
...
lib/widget/seleccionable_widget.dart
View file @
d9c84e11
...
@@ -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:
()
{},
)
)
],
],
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment