bottom_sheet_scroll_wrapper 1.0.0 copy "bottom_sheet_scroll_wrapper: ^1.0.0" to clipboard
bottom_sheet_scroll_wrapper: ^1.0.0 copied to clipboard

Just wrap the Scrollable Widget with the BottomSheetScrollWrapper so that dragging the bottom sheet works properly

example/lib/main.dart

import 'package:example/example_bottom_modal_sheet.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(const MainApp());
}

class MainApp extends StatelessWidget {
  const MainApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Builder(builder: (context) {
        return Scaffold(
          body: SizedBox(
            width: double.infinity,
            child: Column(
              mainAxisAlignment: MainAxisAlignment.center,
              children: [
                const Text('Hello World!'),
                const SizedBox(height: 20),
                ElevatedButton(
                  onPressed: () =>
                      const ExampleBottomModalSheet().show(context),
                  child: const Text('Open bottom sheet'),
                )
              ],
            ),
          ),
        );
      }),
    );
  }
}
3
likes
140
points
298
downloads

Publisher

unverified uploader

Weekly Downloads

Just wrap the Scrollable Widget with the BottomSheetScrollWrapper so that dragging the bottom sheet works properly

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on bottom_sheet_scroll_wrapper