mirror of
https://github.com/revanced/revanced-manager
synced 2024-05-14 13:56:57 +02:00
a54ca799b9
* update rules of analysis_options.yaml. and solved all problems * refactor: fix remaining problems --------- Co-authored-by: Ushie <ushiekane@gmail.com>
36 lines
814 B
Dart
36 lines
814 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:flutter_i18n/flutter_i18n.dart';
|
|
|
|
class SettingsTileDialog extends StatelessWidget {
|
|
const SettingsTileDialog({
|
|
Key? key,
|
|
required this.title,
|
|
required this.subtitle,
|
|
required this.onTap,
|
|
this.padding,
|
|
}) : super(key: key);
|
|
final String title;
|
|
final String subtitle;
|
|
final Function()? onTap;
|
|
final EdgeInsetsGeometry? padding;
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return ListTile(
|
|
contentPadding: padding ?? EdgeInsets.zero,
|
|
title: I18nText(
|
|
title,
|
|
child: const Text(
|
|
'',
|
|
style: TextStyle(
|
|
fontSize: 20,
|
|
fontWeight: FontWeight.w500,
|
|
),
|
|
),
|
|
),
|
|
subtitle: I18nText(subtitle),
|
|
onTap: onTap,
|
|
);
|
|
}
|
|
}
|