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-10-26 19:26:09 +03:00
|
|
|
super.key,
|
2022-06-05 22:36:32 +03:00
|
|
|
});
|
2021-08-29 12:50:24 +03:00
|
|
|
|
|
|
|
final ValueChanged<bool> onChanged;
|
|
|
|
final bool value;
|
|
|
|
|
|
|
|
@override
|
2022-06-06 01:40:34 +03:00
|
|
|
Widget build(final BuildContext context) => Switch(
|
|
|
|
activeColor: Theme.of(context).colorScheme.primary,
|
|
|
|
value: value,
|
|
|
|
onChanged: onChanged,
|
|
|
|
);
|
2021-08-29 12:50:24 +03:00
|
|
|
}
|