things™️

This commit is contained in:
Kima
2024-06-18 14:44:53 +02:00
parent 92f16e054d
commit b5b0046ef5
5 changed files with 151 additions and 22 deletions

View File

@@ -128,13 +128,34 @@ class SettingsHelper {
// }
// }
static void fontFamily(BuildContext context) {
static void fontFamily(BuildContext context,
{required Function() showDialog}) {
SettingsProvider settings =
Provider.of<SettingsProvider>(context, listen: false);
showBottomSheetMenu(
context,
items: List.generate(fontList.length, (index) {
// if (index == fontList.length) {
// return BottomSheetMenuItem(
// onPressed: showDialog,
// title: Row(
// mainAxisAlignment: MainAxisAlignment.spaceBetween,
// children: [
// Text(
// SettingsLocalization('custom').i18n,
// ),
// if (fontList.contains(settings.fontFamily) == false &&
// settings.fontFamily != '')
// Icon(
// Icons.check_circle,
// color: Theme.of(context).colorScheme.secondary,
// ),
// ],
// ),
// );
// }
String font = fontList[index];
return BottomSheetMenuItem(
onPressed: () {