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