experimental_settings.dart 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. import 'package:easy_localization/easy_localization.dart';
  2. import 'package:flutter/material.dart';
  3. import 'package:hooks_riverpod/hooks_riverpod.dart';
  4. class ExperimentalSettings extends HookConsumerWidget {
  5. const ExperimentalSettings({
  6. Key? key,
  7. }) : super(key: key);
  8. @override
  9. Widget build(BuildContext context, WidgetRef ref) {
  10. return ExpansionTile(
  11. textColor: Theme.of(context).primaryColor,
  12. title: const Text(
  13. 'experimental_settings_title',
  14. style: TextStyle(
  15. fontWeight: FontWeight.bold,
  16. ),
  17. ).tr(),
  18. subtitle: const Text(
  19. 'experimental_settings_subtitle',
  20. style: TextStyle(
  21. fontSize: 13,
  22. ),
  23. ).tr(),
  24. children: const [
  25. // SwitchListTile.adaptive(
  26. // activeColor: Theme.of(context).primaryColor,
  27. // title: const Text(
  28. // "experimental_settings_new_asset_list_title",
  29. // style: TextStyle(
  30. // fontSize: 12,
  31. // fontWeight: FontWeight.bold,
  32. // ),
  33. // ).tr(),
  34. // subtitle: const Text(
  35. // "experimental_settings_new_asset_list_subtitle",
  36. // style: TextStyle(
  37. // fontSize: 12,
  38. // ),
  39. // ).tr(),
  40. // value: useExperimentalAssetGrid.value,
  41. // onChanged: changeUseExperimentalAssetGrid,
  42. // ),
  43. ],
  44. );
  45. }
  46. }