Files
FlClash/lib/ui/activate_box.dart
T

14 lines
329 B
Dart
Raw Normal View History

import 'package:material_ui/material_ui.dart';
2024-12-09 01:40:39 +08:00
class ActivateBox extends StatelessWidget {
final Widget child;
final bool active;
2026-05-27 15:16:51 +08:00
const ActivateBox({super.key, required this.child, this.active = false});
2024-12-09 01:40:39 +08:00
@override
Widget build(BuildContext context) {
2026-05-27 15:16:51 +08:00
return IgnorePointer(ignoring: !active, child: child);
2024-12-09 01:40:39 +08:00
}
}