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/custom_material_button.dart'; // ignore: must_be_immutable class PatchItem extends StatefulWidget { PatchItem({ Key? 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, }) : super(key: key); final String name; final String simpleName; final String description; final String packageVersion; final List supportedPackageVersions; final bool isUnsupported; final bool hasUnsupportedPatchOption; final List