Pakete, Repositories und App-Kategorien suchen

GitHub-Repositoryboring-km/dynamic_image_crop

dynamic_image_crop

Ein Flutter-Paket, das das Bild durch Zeichnen von Linien oder Schneiden in verschiedenen Formen zuschneidet

Projektcover von dynamic_image_crop
Sterne
3
Forks
2
Letzter Push (UTC)
02.09.2023
Projektstatus
Aktiv

Original-README

Englischer Projektschnappschuss. Aktuelle Inhalte auf GitHub.

dynamic_image_crop

Pub Flutter Demo License: MIT


A Flutter package to crop images into various shapes.

Introduction

demo

You can test the package by this link: demo_link

Features

dynamic_image_crop supports the following features:

  • Crop an image into user drawing shapes.
  • Crop an image into rectangle, circle, triangle shapes.
  • Change the color of the crop shape line.
  • Change the width of the crop shape line.

Usage

import 'package:dynamic_image_crop/dynamic_image_crop.dart';

final controller = CropController();

DynamicImageCrop(
  controller: controller,
  image: image!,  // Uint8List
  onResult: (image, width, height) {
    // cropped Image (Uint8List), width and height
  },
  cropLineColor: Colors.red, // (Optional)
  cropLineWidth: 1.0, // (Optional)
)

DynamicImageCrop.fromFile(
  imageFile: file,  // File
  controller: controller,
  onResult: (image, width, height) {
    // cropped Image (Uint8List), width and height
  },
)

CropController has the following methods:

void cropImage() {}
void changeType(CropType type) {}
void changeImage(Uint8List image) {}
void clearCropArea() {}

CropType has the following types:

enum CropType {
  rectangle, circle, triangle, drawing, none
}
Kangmin GitHub avatar
GitHub-Autor

Kangmin ↗

열등감을 극복중인 사람

Woongjin Thinkbig Co.Republic of KoreaOffizielle Website ↗
SprachenDartC++CMakeRubyHTMLSwiftCShellKotlinObjective-C

Von diesem Repository veröffentlichte Pakete

Verwendete Abhängigkeiten

Abhängigkeiten 3 Einträge

  • flutter{"sdk":"flutter"}
  • flutter_testEntwicklung{"sdk":"flutter"}
  • very_good_analysisEntwicklung—

Wie wähle ich ein passendes Repository?

Nach Anwendungsfall filtern, Aktivität vergleichen und vor der Nutzung das Originalprojekt prüfen.

  1. Nach Name, Autor oder Beschreibung suchen und nach Thema eingrenzen.
  2. Sterne, Forks und letzte Pushes vergleichen. Sterne zeigen Interesse, garantieren aber keine Qualität.
  3. Vor der Nutzung README, Lizenz und Issues auf GitHub prüfen.

Quellen und Pflege

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗