first commit
Build / Build for Android (push) Has been cancelled
Build / Build for iOS (push) Has been cancelled

This commit is contained in:
Zakaria
2026-05-18 14:15:38 -04:00
commit 1563409cb1
382 changed files with 45347 additions and 0 deletions
@@ -0,0 +1,32 @@
import 'package:flutter/material.dart';
import 'package:hive/hive.dart';
import '../../services/finamp_settings_helper.dart';
import '../../models/finamp_models.dart';
class HideTabToggle extends StatelessWidget {
const HideTabToggle({
Key? key,
required this.tabContentType,
}) : super(key: key);
final TabContentType tabContentType;
@override
Widget build(BuildContext context) {
return ValueListenableBuilder<Box<FinampSettings>>(
valueListenable: FinampSettingsHelper.finampSettingsListener,
builder: (_, box, __) {
return SwitchListTile.adaptive(
title: Text(tabContentType.toLocalisedString(context)),
// secondary: const Icon(Icons.drag_handle),
// This should never be null, but it gets set to true if it is.
value: FinampSettingsHelper.finampSettings.showTabs[tabContentType] ??
true,
onChanged: (value) =>
FinampSettingsHelper.setShowTab(tabContentType, value),
);
},
);
}
}