img_cut_pro 0.0.1 copy "img_cut_pro: ^0.0.1" to clipboard
img_cut_pro: ^0.0.1 copied to clipboard

A Flutter package for cutting and clipping images into custom shapes with 1:1 aspect ratio, offering over 30 shape types, and supporting any Image widget (network, asset, or memory).

example/lib/main.dart

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

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

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

  static const String img =
      'https://images.pexels.com/photos/32838840/pexels-photo-32838840.jpeg';

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'img_cut_pro Example',
      home: Scaffold(
        appBar: AppBar(title: const Text('img_cut_pro Example')),
        body: Center(
          child: SizedBox(
            width: 200,
            height: 200,
            child: ImgCutPro(
              image: const NetworkImage(img),
              type: ImgCutProType.roundedSlantedRectangle1,
            ),
          ),
        ),
      ),
    );
  }
}
1
likes
140
points
0
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package for cutting and clipping images into custom shapes with 1:1 aspect ratio, offering over 30 shape types, and supporting any Image widget (network, asset, or memory).

Documentation

API reference

License

MIT (license)

Dependencies

flutter, polygon

More

Packages that depend on img_cut_pro