pikapika/lib/screens/components/RightClickPop.dart

16 lines
345 B
Dart
Raw Normal View History

2022-03-19 04:12:27 +00:00
import 'package:flutter/material.dart';
class RightClickPop extends StatelessWidget {
final Widget child;
const RightClickPop(this.child, {Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return GestureDetector(
onSecondaryTap: () => Navigator.of(context).pop(),
child: child,
);
}
}