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

20 lines
437 B
Dart
Raw Normal View History

2021-08-29 12:50:24 +03:00
import 'package:flutter/material.dart';
class BrandSwitch extends StatelessWidget {
const BrandSwitch({
required this.onChanged,
required this.value,
2022-06-05 22:36:32 +03:00
final super.key,
});
2021-08-29 12:50:24 +03:00
final ValueChanged<bool> onChanged;
final bool value;
@override
Widget build(final BuildContext context) => Switch(
activeColor: Theme.of(context).colorScheme.primary,
value: value,
onChanged: onChanged,
);
2021-08-29 12:50:24 +03:00
}