import 'package:flutter/material.dart'; import 'package:flutter_i18n/flutter_i18n.dart'; import 'package:revanced_manager/app/app.locator.dart'; import 'package:revanced_manager/models/patch.dart'; import 'package:revanced_manager/services/manager_api.dart'; import 'package:revanced_manager/services/toast.dart'; import 'package:revanced_manager/ui/widgets/shared/custom_card.dart'; import 'package:revanced_manager/ui/widgets/shared/haptics/haptic_checkbox.dart'; import 'package:revanced_manager/ui/widgets/shared/haptics/haptic_custom_card.dart'; // ignore: must_be_immutable class PatchItem extends StatefulWidget { PatchItem({ super.key, required this.name, required this.simpleName, required this.description, required this.packageVersion, required this.supportedPackageVersions, required this.isUnsupported, required this.hasUnsupportedPatchOption, required this.options, required this.isSelected, required this.onChanged, required this.navigateToOptions, required this.isChangeEnabled, }); final String name; final String simpleName; final String description; final String packageVersion; final List supportedPackageVersions; final bool isUnsupported; final bool hasUnsupportedPatchOption; final List