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

A Flutter package that provides a simple and customizable button to open a bottom modal sheet.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:st_bottom_modal_sheet/st_bottom_sheet_button.dart';

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      home: Scaffold(
        body: Center(
            child: STBottomSheetButton(
          sheetBackgroundColor: Colors.white,
          contentHeight: 150,
          content: Column(
            children: [
              SizedBox(
                width: double.infinity,
                child: ElevatedButton(
                  style: ElevatedButton.styleFrom(
                    shape: RoundedRectangleBorder(
                      borderRadius: BorderRadius.circular(10),
                    ),
                    backgroundColor: Colors.red,
                    foregroundColor: Colors.white,
                  ),
                  onPressed: () {},
                  child: const Text("Logout from this Device"),
                ),
              ),
              SizedBox(
                width: double.infinity,
                child: ElevatedButton(
                  style: ElevatedButton.styleFrom(
                    shape: RoundedRectangleBorder(
                      borderRadius: BorderRadius.circular(10),
                    ),
                    backgroundColor: Colors.black,
                    foregroundColor: Colors.white,
                  ),
                  onPressed: () {},
                  child: const Text("Logout from all devices"),
                ),
              ),
            ],
          ),
          child: const Text(
            "Logout",
            style: TextStyle(color: Colors.white, fontSize: 20),
          ),
        )),
      ),
    );
  }
}
1
likes
150
points
7
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package that provides a simple and customizable button to open a bottom modal sheet.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSL-1.0 (license)

Dependencies

flutter

More

Packages that depend on st_bottom_sheet_button