showSurveyBottomSheet method

  1. @override
Future<bool> showSurveyBottomSheet(
  1. BuildContext context, {
  2. required String appId,
  3. required String linkOrToken,
  4. Map<String, String>? options,
})
override

Implementation

@override
Future<bool> showSurveyBottomSheet(
  BuildContext context, {
  required String appId,
  required String linkOrToken,
  Map<String, String>? options,
}) async {
  String url = "$_baseUrl$linkOrToken/${getParams(options)}";
  showModalBottomSheet(
    context: context,
    shape: const RoundedRectangleBorder(
      borderRadius: BorderRadius.vertical(top: Radius.circular(20)),
    ),
    builder: (context) {
      return CustomerPulseWebView(url: url);
    },
  );
  return true;
}