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

21 lines
493 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';
ListTile subMenu(IconData icon, String title,Function() onTap) {
2023-01-26 02:15:00 +00:00
return ListTile(
leading: Container(
margin: const EdgeInsets.only(left: 20),
child: Icon(
icon,
size: 20,
color: primary,
)),
title: Text(
title,
style: const TextStyle(),
),
trailing: const Icon(Icons.keyboard_arrow_right),
onTap: onTap,
2023-01-26 02:15:00 +00:00
);
}