Skip to content

Instantly share code, notes, and snippets.

View tmaihoff's full-sized avatar

Tobias Maihoff tmaihoff

View GitHub Profile
@tmaihoff
tmaihoff / bottom_sheet_fix.dart
Last active May 14, 2026 08:14
Fix: Can't swipe to dismiss scrollable Bottom Sheet #36283
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
const Duration _bottomSheetEnterDuration = Duration(milliseconds: 250);
const Duration _bottomSheetExitDuration = Duration(milliseconds: 200);