mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-09-19 01:47:51 +00:00
20 lines
437 B
Dart
20 lines
437 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
class BrandSwitch extends StatelessWidget {
|
|
const BrandSwitch({
|
|
required this.onChanged,
|
|
required this.value,
|
|
final 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,
|
|
);
|
|
}
|