mirror of
https://github.com/revanced/revanced-manager
synced 2024-05-14 13:56:57 +02:00
35 lines
749 B
Dart
35 lines
749 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:flutter_i18n/flutter_i18n.dart';
|
|
|
|
class SettingsTileDialog extends StatelessWidget {
|
|
final String title;
|
|
final String subtitle;
|
|
final Function()? onTap;
|
|
|
|
const SettingsTileDialog({
|
|
Key? key,
|
|
required this.title,
|
|
required this.subtitle,
|
|
required this.onTap,
|
|
}) : super(key: key);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return ListTile(
|
|
contentPadding: EdgeInsets.zero,
|
|
title: I18nText(
|
|
title,
|
|
child: const Text(
|
|
'',
|
|
style: TextStyle(
|
|
fontSize: 20,
|
|
fontWeight: FontWeight.w500,
|
|
),
|
|
),
|
|
),
|
|
subtitle: I18nText(subtitle),
|
|
onTap: onTap,
|
|
);
|
|
}
|
|
}
|