Files
FlClash/lib/ui/activate_box.dart
chen08209 9bd2286eb5 feat(ui): layer surfaces with fills and follow the iOS type scale
Changelog: iOS-style surfaces, alerts and sheets; clearer TV focus
2026-10-17 17:21:43 +08:00

14 lines
329 B
Dart

import 'package:material_ui/material_ui.dart';
class ActivateBox extends StatelessWidget {
final Widget child;
final bool active;
const ActivateBox({super.key, required this.child, this.active = false});
@override
Widget build(BuildContext context) {
return IgnorePointer(ignoring: !active, child: child);
}
}