import 'package:fis_ui/index.dart';
import 'package:fis_ui/interface/interactive_container.dart';
import 'package:flutter/material.dart';
import 'package:fis_measure/values/unit_desc.dart';
import 'package:fis_measure/view/cursor.dart';
import 'package:fis_jsonrpc/services/remedical.m.dart';
import 'package:flyinsono/lab/color/lab_colors.dart';
import 'package:fis_theme/theme.dart';

import '../measure_configuration_style.dart';
import 'common.dart';

class PatternItemSwitch extends FStatelessWidget {
  const PatternItemSwitch({
    Key? key,
    required this.onChanged,
    required this.value,
  }) : super(key: key);
  final ValueCallback onChanged;
  final bool value;

  @override
  FWidget build(BuildContext context) {
    return FSwitch(
      inactiveThumbColor: LabColors.white,
      inactiveTrackColor: LabColors.base900,
      activeColor: LabColors.white,
      activeTrackColor: LabColors.base400,
      splashRadius: 0,
      onChanged: (value) => onChanged.call(value),
      value: value,
    );
  }
}
