configuracion - sugerencias - soporte

This commit is contained in:
Felipe
2024-03-13 23:55:48 -05:00
parent cde7e72f1a
commit 66125235dd
23 changed files with 547 additions and 100 deletions
+9 -3
View File
@@ -2,24 +2,26 @@ import 'package:flutter/material.dart';
class GeneralDrawerItem extends StatelessWidget {
final String label;
final String? subtitle;
final IconData? leading;
final bool trailing;
final Color? color;
final VoidCallback onTap;
final VoidCallback? onTap;
const GeneralDrawerItem({
super.key,
required this.label,
this.subtitle,
this.leading,
this.trailing = false,
this.color,
required this.onTap,
this.onTap,
});
@override
Widget build(BuildContext context) {
return ListTile(
onTap: onTap,
onTap: onTap == null ? null : () => onTap!(),
leading: leading == null
? null
: Icon(
@@ -36,6 +38,10 @@ class GeneralDrawerItem extends StatelessWidget {
label,
style: TextStyle(fontSize: 15, color: color),
),
subtitle: subtitle == null
? null
: Text(subtitle ?? "", style: const TextStyle(color: Colors.black54)),
// dense: true,
);
}
}