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
af477fbf
authored
Apr 04, 2025
by
Diego Pérez Peña
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Finalizada carpeta widget, sin probar
parent
c0293fdf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
16 deletions
lib/widgets/carpeta_widget.dart
lib/widgets/carpeta_widget.dart
View file @
af477fbf
...
...
@@ -110,17 +110,9 @@ class _CarpetaWidgetState extends State<CarpetaWidget>
}
List
<
Widget
>
buildSecondaryContainers
(){
return
widget
.
carpeta
.
formatos
.
map
((
formato
)
{
final
Icon
icon
;
if
(
formato
.
formatoOriginal
.
tipoMultimedia
==
TipoMultimedia
.
imagen
){
icon
=
Icon
(
Icons
.
image_search
);
}
else
if
(
formato
.
formatoOriginal
.
tipoMultimedia
==
TipoMultimedia
.
audio
){
icon
=
Icon
(
Icons
.
manage_search
);
}
else
{
icon
=
Icon
(
Icons
.
screen_search_desktop_outlined
);
}
return
widget
.
carpeta
.
formatos
.
map
((
elemento
)
{
String
texto
=
elemento
.
formatoOriginal
.
name
.
toUpperCase
();
if
(
elemento
.
formatoDestino
!=
null
)
texto
+=
" >
${elemento.formatoDestino!.name.toUpperCase()}
"
;
return
ClipRect
(
clipper:
_MyRectClipper
(
_controller
),
...
...
@@ -132,7 +124,7 @@ class _CarpetaWidgetState extends State<CarpetaWidget>
child:
Row
(
crossAxisAlignment:
CrossAxisAlignment
.
center
,
children:
<
Widget
>[
Icon
(
Icons
.
image_search
),
Icon
(
Icons
.
find_in_page_outlined
),
const
SizedBox
(
width:
10
),
Expanded
(
child:
Column
(
...
...
@@ -145,6 +137,12 @@ class _CarpetaWidgetState extends State<CarpetaWidget>
fontWeight:
FontWeight
.
bold
)
),
Text
(
texto
,
style:
Theme
.
of
(
context
).
textTheme
.
bodyLarge
?.
copyWith
(
fontWeight:
FontWeight
.
bold
)
),
],
)
),
...
...
@@ -155,10 +153,12 @@ class _CarpetaWidgetState extends State<CarpetaWidget>
MaterialPageRoute
(
builder:
(
context
)
{
return
PaginaConfiguracion
(
indice:
widget
.
indice
,
elemento:
widget
.
carpeta
,
lista:
widget
.
lista
elemento:
elemento
.
conversion
,
lista:
widget
.
lista
,
carpeta:
widget
.
carpeta
);
}));
}
));
},
)
]
...
...
@@ -183,6 +183,6 @@ class _MyRectClipper extends CustomClipper<Rect> {
@override
bool
shouldReclip
(
covariant
CustomClipper
<
Rect
>
oldClipper
)
{
return
true
;
return
!(
_controller
.
isDismissed
||
_controller
.
isCompleted
)
;
}
}
\ No newline at end of file
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