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

This package provides a flexible bottom sheet, built on top of the flutter_appbar package, that syncs with scroll events instead of relying only on gestures.

example/main.dart

import 'package:flutter/material.dart' hide BottomSheet;
import 'package:flutter_scroll_bottom_sheet/flutter_bottom_sheet.dart';

void main() {
  runApp(MyApp());
}

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      home: Scaffold(
        body: SafeArea(child: TestView())
      ),
    );
  }
}

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

  @override
  Widget build(BuildContext context) {
    return Center(
      child: TextButton(
        onPressed: () {
          BottomSheet.open(context, ListView.builder(
            padding: EdgeInsets.all(20),
            itemCount: 100,
            itemBuilder: (context, index) {
              return Text("Hello, World!");
            },
          ));
        },
        child: Text("Oepn Bottom Sheet"),
      ),
    );
  }
}
1
likes
0
points
75
downloads

Publisher

verified publisherttangkong.dev

Weekly Downloads

This package provides a flexible bottom sheet, built on top of the flutter_appbar package, that syncs with scroll events instead of relying only on gestures.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, flutter_appbar

More

Packages that depend on flutter_scroll_bottom_sheet