47 lines
1.3 KiB
Dart
47 lines
1.3 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:info_popup/info_popup.dart';
|
|
import 'package:konectar_events/widgets/customhcpcard.dart';
|
|
|
|
class CustomInfoPopup extends StatelessWidget {
|
|
const CustomInfoPopup({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return InfoPopupWidget(
|
|
customContent: Container(
|
|
decoration: BoxDecoration(
|
|
color: Colors.white,
|
|
borderRadius: BorderRadius.circular(10),
|
|
),
|
|
padding: const EdgeInsets.all(10),
|
|
child: CustomHcpCard(),
|
|
),
|
|
arrowTheme: const InfoPopupArrowTheme(
|
|
color: Colors.white,
|
|
arrowDirection: ArrowDirection.up,
|
|
),
|
|
dismissTriggerBehavior: PopupDismissTriggerBehavior.anyWhere,
|
|
areaBackgroundColor: Colors.transparent,
|
|
indicatorOffset: Offset.zero,
|
|
contentOffset: Offset.zero,
|
|
onControllerCreated: (controller) {
|
|
print('Info Popup Controller Created');
|
|
},
|
|
onAreaPressed: (InfoPopupController controller) {
|
|
print('Area Pressed');
|
|
},
|
|
infoPopupDismissed: () {
|
|
// Navigator.pop(context);
|
|
print('Info Popup Dismissed');
|
|
},
|
|
onLayoutMounted: (Size size) {
|
|
print('Info Popup Layout Mounted');
|
|
},
|
|
child: Icon(
|
|
Icons.info,
|
|
color: Colors.blue,
|
|
),
|
|
);
|
|
}
|
|
}
|