mirror of
https://github.com/ReVanced/revanced-manager.git
synced 2024-11-10 01:01:56 +01:00
f82c439b26
Co-authored-by: validcube <pun.butrach@gmail.com>
31 lines
686 B
Dart
31 lines
686 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
class SettingsTileDialog extends StatelessWidget {
|
|
const SettingsTileDialog({
|
|
super.key,
|
|
required this.title,
|
|
required this.subtitle,
|
|
required this.onTap,
|
|
this.padding,
|
|
});
|
|
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),
|
|
onTap: onTap,
|
|
);
|
|
}
|
|
}
|