part of '../../settings.dart'; class CheckBoxSettingsTile extends InputSettingsTile { const CheckBoxSettingsTile({ required super.option, super.key, }); @override Widget build(final BuildContext context) => OptionBuilder( option: option, builder: (final context, final value) => value == null ? Container() : StreamBuilder( stream: option.enabled, builder: (final context, final enabledSnapshot) => !enabledSnapshot.hasData ? Container() : CheckboxListTile( title: Text(option.label(context)), value: value, onChanged: enabledSnapshot.data! ? (final value) async { await option.set(value!); } : null, ), ), ); }