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

28 lines
593 B
Dart
Raw 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;
const MainMenu({
required this.icon,
required this.title,
Key? key,
}) : super(key: key);
@override
Widget build(BuildContext context) {
return ListTile(
leading: Icon(
icon,
color: primary,
),
title: Text(
title,
style: TextStyle(fontWeight: FontWeight.bold),
),
trailing: const Icon(Icons.keyboard_arrow_right),
);
}
}