cupertino/IOS bottom sheet

has anyone been able to get the cupertino style bottom sheet to work in flutterflow? I can make it but it doesnt do the shrinking background effect like the examples show.

see the cupertino examples here

https://jamesblasco.github.io/modal_bottom_sheet/#/

there is a package for it but seems not to be working in flutterflow

https://pub.dev/packages/modal_bottom_sheet/versions/3.0.0-pre

// Automatic FlutterFlow imports
import '/backend/backend.dart';
import '/backend/schema/structs/index.dart';
import '/flutter_flow/flutter_flow_theme.dart';
import '/flutter_flow/flutter_flow_util.dart';
import '/custom_code/actions/index.dart'; // Imports other custom actions
import '/flutter_flow/custom_functions.dart'; // Imports custom functions
import 'package:flutter/material.dart';
// Begin custom action code
// DO NOT REMOVE OR MODIFY THE CODE ABOVE!

import 'package:flutter/cupertino.dart';
import 'package:modal_bottom_sheet/modal_bottom_sheet.dart'; // Import modal_bottom_sheet package
import 'package:project/components/planloading_widget.dart';

Future<void> action2(BuildContext context) async {
  showCupertinoModalBottomSheet(
    expand: true,
    context: context,
    backgroundColor: Colors.transparent,
    builder: (context) => CupertinoPageScaffold(
      navigationBar: CupertinoNavigationBar(
        leading: Container(),
        middle: Text('Modal Title'),
      ),
      child: PlanloadingWidget(),
    ),
  );
}
4
4 replies