Claymorphism Package

Pub License

A Flutter package that provides claymorphic UI containers for a modern and aesthetic design.

Features

  • 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.

Installation

Add the following line to your pubspec.yaml file:

dependencies:
  claymorphism: ^0.1.2

Example

Clay Card

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,
        ),
      ),
    );
  }
}

Clay Card with Shadow

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,
        ),
      ),
    );
  }
}

Libraries

claymorphism