Skip to content

Can't close bottomSheet by back button or swipe gesture #35

@abhinavsinghring

Description

@abhinavsinghring

bottom sheet is closing fine by backdrop and also with button onTap => Get.back() but not with back gesture or back button

showSlidingBottomSheet(
  context, 
  builder: (context) {
    return SlidingSheetDialog(
      color: Theme.of(context).colorScheme.surface,
      elevation: 0,
      duration: const Duration(milliseconds: 500),
      cornerRadius: 15,
      cornerRadiusOnFullscreen: 0,
      snapSpec: const SnapSpec(
        snap: true,
        snappings: [0.6, 0.7, 1.0],
        positioning: SnapPositioning.relativeToAvailableSpace,
      ),
      avoidStatusBar: true,
      builder: (context, state) {
        return const Material(
          type: MaterialType.transparency,
          child: UpdateNameBottomSheet()
        );
      },
    );
  }
);

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions