2022-12-05 08:06:45 +00:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:fluttericon/font_awesome5_icons.dart';
|
|
|
|
|
|
|
|
import '../../../theme-data.dart/colors.dart';
|
|
|
|
|
|
|
|
class Mobile extends StatelessWidget {
|
|
|
|
final String title;
|
|
|
|
final String subtitle;
|
|
|
|
final Function onPressed;
|
|
|
|
const Mobile({
|
|
|
|
super.key,
|
|
|
|
required this.title,
|
|
|
|
required this.subtitle,
|
|
|
|
required this.onPressed,
|
|
|
|
});
|
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return ListTile(
|
|
|
|
leading: const Icon(
|
|
|
|
FontAwesome5.sim_card,
|
|
|
|
color: second,
|
|
|
|
),
|
|
|
|
title: Text(title),
|
|
|
|
subtitle: Text(
|
|
|
|
subtitle,
|
2024-07-11 01:27:35 +00:00
|
|
|
style: Theme.of(context).textTheme.bodyMedium,
|
2022-12-05 08:06:45 +00:00
|
|
|
),
|
|
|
|
trailing: IconButton(
|
|
|
|
icon: const Icon(Icons.edit),
|
|
|
|
onPressed: () {
|
|
|
|
onPressed();
|
|
|
|
},
|
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|