PhysicalModal Widget
Project Preview
- Interested in seeing the live demo? Click here to explore.
- Want to view the source code? Visit the project on GitHub.
Code Snippet
import 'package:flutter/material.dart';
class PhysicalModalWidget extends StatelessWidget {
const PhysicalModalWidget({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Colors.white,
body: const Center(
child: PhysicalModel(
elevation: 20.0,
shadowColor: Colors.redAccent,
color: Colors.orangeAccent,
shape: BoxShape.circle,
child: SizedBox(
width: 200,
height: 200,
child: Center(
child: Icon(
Icons.flutter_dash,
size: 100,
),
),
),
),
),
);
}
}