selfprivacy.org.app/lib/ui/components/brand_switch/brand_switch.dart

20 lines
431 B
Dart

import 'package:flutter/material.dart';
class BrandSwitch extends StatelessWidget {
const BrandSwitch({
required this.onChanged,
required this.value,
super.key,
});
final ValueChanged<bool> onChanged;
final bool value;
@override
Widget build(final BuildContext context) => Switch(
activeColor: Theme.of(context).colorScheme.primary,
value: value,
onChanged: onChanged,
);
}