Claymorphism Package

Pub License

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

Features

Installation

Add the following line to your pubspec.yaml file:

dependencies:
  claymorphism: ^0.1.1```

```dart

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.

Example

Clay Card

class HomeScreen extends StatelessWidget {
  const HomeScreen({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    Size size = MediaQuery.of(context).size;
    return Scaffold(
      backgroundColor: Colors.grey.shade300,
      body: Center(
          child:ClayCard(
            height: (MediaQuery.of(context).size.height*.35),
            width: (MediaQuery.of(context).size.height*.35),)
    );
  }
}

Clay Card with Shadow

class HomeScreen extends StatelessWidget {
  const HomeScreen({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    Size size = MediaQuery.of(context).size;
    return Scaffold(
      backgroundColor: Colors.grey.shade300,
      body: Center(
          child:CardWithShadow(
            height: (MediaQuery.of(context).size.height*.35),
            width: (MediaQuery.of(context).size.height*.35),)
    );
  }
}

Libraries

claymorphism