v0.1.1insta_like_button
Flutter용 인스타그램 게시물 스타일의 사용자 정의 가능한 카드 위젯
43좋아요 2830일 다운로드160Pub 점수
AndroidiOSWebmacOSWindowsLinux
인스타그램 게시물 스타일의 사용자 정의 가능한 카드 위젯, 기본 좋아요 기능 포함
아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
Add this to your package's pubspec.yaml file:
dependencies:
insta_like_button: ^0.1.1
You can install packages from the command line:
$ flutter pub get
...
Now in your Dart code, you can use:
import 'package:insta_like_button/insta_like_button.dart';
InstaLikeButton(
image: AssetImage("example/overview/img.jpg"),
onChanged: () {
// Do something...
},
),
InstaLikeButton(
image: NetworkImage("https://picsum.photos/200/300"),
onChanged: () {
// Do something...
},
icon: Icons.favorite_border,
iconSize: 80,
iconColor: Colors.red,
curve: Curves.fastLinearToSlowEaseIn,
height: 200,
width: MediaQuery.of(context).size.width - 20,
duration: const Duration(seconds: 1),
onImageError: (e, _) {
// Do something...
},
imageAlignment: Alignment.topLeft,
imageBoxfit: BoxFit.fill,
imageScale: 2.0,
imageColorFilter: ColorFilter.mode(
Colors.black.withOpacity(0.5),
BlendMode.dstATop,
),
),
의존성 목록 2 개
{"sdk":"flutter"}{"sdk":"flutter"}사용 목적에 따라 검색하고 개발 활동을 비교한 뒤 원본 저장소에서 요구 사항을 확인하세요.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗