A Flutter package that provides claymorphic UI containers for a modern and aesthetic design.
- Easy-to-use claymorphic containers for UI design.
- Customizable properties to adjust the appearance of the containers.
- Provides various container shapes and styles.
- Compatible with Flutter web and mobile applications.
Add the following line to your pubspec.yaml
file:
dependencies:
claymorphism: ^0.1.2
class HomeScreen extends StatelessWidget {
const HomeScreen({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Colors.grey.shade300,
body: Center(
child: ClayCard(
height: MediaQuery.of(context).size.height * 0.35,
width: MediaQuery.of(context).size.height * 0.35,
),
),
);
}
}
|
|
class HomeScreen extends StatelessWidget {
const HomeScreen({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Colors.grey.shade300,
body: Center(
child: CardWithShadow(
height: MediaQuery.of(context).size.height * 0.35,
width: MediaQuery.of(context).size.height * 0.35,
),
),
);
}
}
|
|