icon_craft
IconCraft는 두 개의 아이콘을 하나의 위젯으로 결합할 수 있는 기능을 통해 개발자가 더 풍부한 아이콘 그래픽을 만들 수 있도록 합니다
IconCraft는 두 개의 아이콘을 하나의 위젯으로 결합할 수 있는 기능을 통해 개발자가 더 풍부한 아이콘 그래픽을 만들 수 있도록 합니다
{"sdk":"flutter"}{"sdk":"flutter"}^2.0.0아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
https://raw.githubusercontent.com/vicenterusso/icon_craft/main/example/assets/banner.png
IconCraft is a Flutter plugin designed to extend the functionality of the standard Icon widget. It allows developers to create richer iconography with the ability to combine two icons into a single widget with alignment and scaling options.
To start using IconCraft, add it to your Flutter project by including it in your pubspec.yaml file:
dependencies:
icon_craft: ^0.1.0
Run flutter pub get to install the new dependency.
Here's how you can use the IconCraft widget in your Flutter application:
IconCraft(
Icon(Icons.email),
Icon(Icons.notifications),
alignment: Alignment.topRight,
decoration: IconDecoration(
border: IconBorder(color: Colors.white),
),
)
The border width of the secondary icon automatically adjusts to the basic icon size. However, you can override this by using the width parameter.
decoration: IconDecoration(
border: IconBorder(
color: Colors.white,
width: 10,
),
)
IconCraft(
Icon(
CupertinoIcons.car_detailed,
color: Colors.grey.shade500,
),
Icon(
CupertinoIcons.checkmark_square_fill,
color: Colors.green.shade200,
),
alignment: Alignment.bottomLeft,
decoration: IconDecoration(
border: IconBorder(
color: Colors.green.shade900,
width: 8.0,
),
),
)
You can color all the three elements: base icon, secondary icon and the color of the stroke/border effect, and its width
Here are a few examples demonstrating what you can accomplish with IconCraft:
https://raw.githubusercontent.com/vicenterusso/icon_craft/main/example/assets/example01.png
This package is inspired by Roux Guillame's work. His original code can be found in this repository
Distributed under the BSD 3-Clause License. See LICENSE for more information.