revanced-manager/lib/ui/widgets/settingsView/settings_tile_dialog.dart

32 lines
686 B
Dart
Raw Normal View History

import 'package:flutter/material.dart';
class SettingsTileDialog extends StatelessWidget {
const SettingsTileDialog({
2023-11-11 13:07:32 +01:00
super.key,
required this.title,
required this.subtitle,
2022-09-07 03:37:25 +02:00
required this.onTap,
this.padding,
2023-11-11 13:07:32 +01:00
});
final String title;
final String subtitle;
final Function()? onTap;
final EdgeInsetsGeometry? padding;
@override
Widget build(BuildContext context) {
return ListTile(
contentPadding: padding ?? EdgeInsets.zero,
title: Text(
title,
style: const TextStyle(
fontSize: 20,
fontWeight: FontWeight.w500,
),
),
subtitle: Text(subtitle),
2022-09-07 03:37:25 +02:00
onTap: onTap,
);
}
}