curve_clipper 0.1.0 copy "curve_clipper: ^0.1.0" to clipboard
curve_clipper: ^0.1.0 copied to clipboard

A Flutter package for cutting widgets into wavy, wavy sin, wavy curtain, convex, concave, and... shapes

example/curve_clipper_example.dart

import 'package:curve_clipper/curve_clipper.dart';
import 'package:flutter/material.dart';

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Curve Clipper Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const MyHomePage(),
      // home: const WorkWithProgressLineScreen(),
    );
  }
}

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

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: SafeArea(
        child: Column(
          children: [
            CustomClipperWidget(
              mode: ClipperMode.concave,
              heightFromOrigin: 180,
              curvePoint: 80,
              child: Container(
                width: double.infinity,
                height: 200,
                decoration: const BoxDecoration(
                  color: Colors.cyan,
                ),
              ),
            ),
          ],
        ),
      ),
    );
  }
}
8
likes
140
points
32
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package for cutting widgets into wavy, wavy sin, wavy curtain, convex, concave, and... shapes

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on curve_clipper