awesome_side_sheet 0.0.2 awesome_side_sheet: ^0.0.2 copied to clipboard
| A Flutter package for displaying a modal side sheet, following the Material Design 3 specification. This package provides a customizable side sheet with a title, body, and optional header and footer [...]
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'),
),
);
}
}