update
This commit is contained in:
parent
57b8bdc067
commit
7e1ad68433
3 changed files with 33 additions and 29 deletions
|
|
@ -7,34 +7,36 @@ class MenuWidget extends StatelessWidget {
|
|||
final String text;
|
||||
final IconData? icon;
|
||||
final VoidCallback? onPressed;
|
||||
final Color? borderColor;
|
||||
|
||||
const MenuWidget({
|
||||
super.key,
|
||||
required this.text,
|
||||
this.icon,
|
||||
this.onPressed,
|
||||
});
|
||||
const MenuWidget({super.key, required this.text, this.icon, this.onPressed, this.borderColor});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return GestureDetector(
|
||||
onTap: onPressed,
|
||||
child: Container(
|
||||
width: MediaQuery.of(context).size.width - 64,
|
||||
height: 80,
|
||||
decoration: BoxDecoration(
|
||||
borderRadius: BorderRadius.circular(10),
|
||||
color: Colors.grey[200],
|
||||
),
|
||||
child: Row(mainAxisAlignment: MainAxisAlignment.start, children: [
|
||||
width: MediaQuery.of(context).size.width - 96,
|
||||
padding: EdgeInsets.only(top: 16, bottom: 16),
|
||||
decoration: BoxDecoration(
|
||||
borderRadius: BorderRadius.circular(12),
|
||||
border: Border.all(color: borderColor ?? const Color.fromARGB(255, 255, 255, 255), width: 2),
|
||||
),
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.start,
|
||||
children: [
|
||||
const Gap(32),
|
||||
Icon(icon, size: 32, color: const Color.fromRGBO(34, 51, 69, 1)),
|
||||
Icon(icon, size: 24, color: const Color.fromRGBO(255, 255, 255, 1)),
|
||||
const Gap(64),
|
||||
Text(
|
||||
text,
|
||||
style: GoogleFonts.outfit(textStyle: const TextStyle(fontSize: 20)),
|
||||
style: GoogleFonts.outfit(
|
||||
color: const Color.fromRGBO(255, 255, 255, 1),
|
||||
textStyle: const TextStyle(fontSize: 16, fontWeight: FontWeight.w500)),
|
||||
),
|
||||
])),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue