passo_mobile_app/lib/screens/profile/components/main_menu.dart

31 lines
670 B
Dart
Raw Permalink Normal View History

2023-01-26 02:15:00 +00:00
import 'package:flutter/material.dart';
import 'package:unit2/theme-data.dart/colors.dart';
class MainMenu extends StatelessWidget {
final IconData icon;
final String title;
final Function() onTap;
2023-01-26 02:15:00 +00:00
const MainMenu({
required this.icon,
required this.title,
required this.onTap,
2023-01-26 02:15:00 +00:00
Key? key,
}) : super(key: key);
@override
Widget build(BuildContext context) {
return ListTile(
leading: Icon(
icon,
color: primary,
),
title: Text(
title,
style: const TextStyle(fontWeight: FontWeight.bold),
2023-01-26 02:15:00 +00:00
),
trailing: const Icon(Icons.keyboard_arrow_right),
onTap: onTap,
2023-01-26 02:15:00 +00:00
);
}
}