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