v2.1.1image_stack
image_stack은 플러터에서 이미지 스택을 생성하기 위한 순수한 다트 패키지입니다. 이 패키지는 필요에 따라 쉽게 이미지 스택을 만들 수 있는 위젯을 제공합니다.
158좋아요 4.5천30일 다운로드150Pub 점수
AndroidiOSWebmacOSWindowsLinux
이미지를 옆으로 나란히 정렬하여 하나가 다른 것 아래에 오도록 스택 생성
{"sdk":"flutter"}{"sdk":"flutter"}아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
image_stack is a pure dart package for creating image stack in Flutter. This package give you a widget to easily create image stack for your need.
UI created by this package is mainly found in profile picture stacks in so many apps but it can be used at any place where you feel it will look good.
Pub Package: image_stack
Medium Article: Building profile image stack in Flutter
In the dependencies: section of your pubspec.yaml, add the following line:
image_stack: <latest_version>
import 'package:image_stack/image_stack.dart';
class MyWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
List<string> images = ["image1Link", "image2Link", "image3Link", "image4Link"];
return ImageStack(
imageList: images,
totalCount: images.length // If larger than images.length, will show extra empty circle
imageRadius: 25, // Radius of each images
imageCount: 3, // Maximum number of images to be shown in stack
imageBorderWidth: 3, // Border width around the images
);
}
}
View the Flutter app in the example directory.
Image Stack Screenshot