claymorphism 0.1.2 copy "claymorphism: ^0.1.2" to clipboard
claymorphism: ^0.1.2 copied to clipboard

A Flutter package that provides claymorphic UI containers for a modern and aesthetic design. With Claymorphism, you can easily create visually appealing and tactile user interfaces by leveraging the p [...]

example/lib/main.dart

import 'package:flutter/material.dart';

import 'screens/desktop.dart';
import 'screens/mobile.dart';
import 'screens/tablet.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatefulWidget {
  const MyApp({super.key});

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: const RoutePage(),
    );
  }
}

class RoutePage extends StatelessWidget {
  const RoutePage({super.key});

  @override
  Widget build(BuildContext context) {
    double screenWidth = MediaQuery.of(context).size.width;
    if(screenWidth<640){
    return const Mobile();
    } else if(screenWidth>=640&&screenWidth<1000){
      return const Tablet();
    }
    return const Desktop();
  }
}
1
likes
140
pub points
52%
popularity

Publisher

verified publisherbauhausresearch.com

A Flutter package that provides claymorphic UI containers for a modern and aesthetic design. With Claymorphism, you can easily create visually appealing and tactile user interfaces by leveraging the popular claymorphism design trend. This package offers a collection of claymorphic containers, that can be customized to suit your application's style and branding.

Homepage

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on claymorphism