FondleTalk/lib/tools/home/test_page.dart
2024-07-23 17:57:57 +08:00

61 lines
1.4 KiB
Dart

import 'package:flutter/material.dart';
import '../../custom/custom_popup.dart';
class TestPage extends StatefulWidget {
const TestPage({super.key});
@override
State<TestPage> createState() => _TestPageState();
}
class _TestPageState extends State<TestPage> {
@override
Widget build(BuildContext context) {
return Scaffold(
body: Stack(
children: [
Positioned(
top: 400,
left: 50,
child: CustomPopup(
menuBuilder: () {
return Container(
width: 50,
height: 150,
color: Colors.lightBlue,
);
},
pressType: PressType.singleClick,
child: Container(
width: 50,
height: 50,
color: Colors.black,
),
),
),
Positioned(
top: 400,
left: 150,
child: CustomPopup(
menuBuilder: () {
return Container(
width: 50,
height: 150,
color: Colors.lightBlue,
);
},
pressType: PressType.singleClick,
child: Container(
width: 50,
height: 50,
color: Colors.black,
),
),
),
],
),
);
}
}