resizable_bottom_sheet 0.0.2 copy "resizable_bottom_sheet: ^0.0.2" to clipboard
resizable_bottom_sheet: ^0.0.2 copied to clipboard

A Flutter package to show resizable modal bottom sheets that auto-fit their content height.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:resizable_bottom_sheet/resizable_bottom_sheet.dart';

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Resizeable Bottom Sheet Example',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
      ),
      home: const MyHomePage(),
    );
  }
}

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

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: ElevatedButton(
          onPressed: () {
            showResizableBottomSheet(
              context: context,
              elevation: 20,
              enableDrag: false,
              child: Column(
                children: [
                  TextFormField(),
                  SizedBox(height: 30),
                  ElevatedButton(onPressed: () {}, child: Text('Submit')),
                ],
              ),
            );
          },
          child: Text('Open'),
        ),
      ),
    );
  }
}
4
likes
150
points
6
downloads

Publisher

verified publisherdharmikjoshi.in

Weekly Downloads

A Flutter package to show resizable modal bottom sheets that auto-fit their content height.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on resizable_bottom_sheet