awesome_side_sheet 0.0.3 awesome_side_sheet: ^0.0.3 copied to clipboard
Flutter package for Material Design 3 modal side sheets with customizable title, body, and actions.
import 'package:awesome_side_sheet/Enums/sheet_position.dart';
import 'package:awesome_side_sheet/side_sheet.dart';
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
useMaterial3: true,
),
home: const Example(),
);
}
}
class Example extends StatelessWidget {
const Example({
super.key,
});
@override
Widget build(BuildContext context) {
return Center(
child: ElevatedButton(
onPressed: () {
aweSideSheet(
context: context,
sheetPosition: SheetPosition.right,
);
},
child: const Text('Create a new mockup'),
),
);
}
}