algunos iconos PRO

This commit is contained in:
2026-05-12 00:11:43 +02:00
parent 532e3b84f1
commit be255d5ea3
16 changed files with 116 additions and 6 deletions
+12 -1
View File
@@ -233,6 +233,7 @@ class LogoFarolero extends StatelessWidget {
class BotonFarolero extends StatelessWidget {
final String texto;
final IconData icono;
final String? assetIconPath;
final VoidCallback? onPressed;
final LinearGradient gradient;
final Color foreground;
@@ -242,6 +243,7 @@ class BotonFarolero extends StatelessWidget {
super.key,
required this.texto,
required this.icono,
this.assetIconPath,
required this.onPressed,
this.gradient = TemaApp.gradientePrimario,
this.foreground = Colors.black,
@@ -252,6 +254,7 @@ class BotonFarolero extends StatelessWidget {
super.key,
required this.texto,
required this.icono,
this.assetIconPath,
required this.onPressed,
}) : gradient = const LinearGradient(
colors: [TemaApp.colorPurpura, Color(0xFF2B1736)],
@@ -265,6 +268,7 @@ class BotonFarolero extends StatelessWidget {
super.key,
required this.texto,
required this.icono,
this.assetIconPath,
required this.onPressed,
}) : gradient = const LinearGradient(
colors: [Color(0xFF151F27), Color(0xFF090E13)],
@@ -303,7 +307,14 @@ class BotonFarolero extends StatelessWidget {
children: [
SizedBox(
width: 44,
child: Icon(icono, color: colorTexto, size: 30),
height: 40,
child: assetIconPath == null
? Icon(icono, color: colorTexto, size: 30)
: Image.asset(
assetIconPath!,
fit: BoxFit.contain,
filterQuality: FilterQuality.medium,
),
),
const SizedBox(width: 10),
Expanded(