v1.0.3shadowed_image
이미지의 색상 구성과 동일한 그림자를 만드는 새로운 Flutter 패키지입니다.
58좋아요 1530일 다운로드160Pub 점수
AndroidiOSWebmacOSWindowsLinux
lalitjarwal/shadowed_image open-source repository details.
{"sdk":"flutter"}{"sdk":"flutter"}아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
Package for creating shadow of same color scheme as the image.
Example
pubspec.yaml file:dependencies:
shadowed_image: ^latest
import 'package:shadowed_image/shadowed_image.dart';
import 'package:shadowed_image/shadowed_image.dart';
import 'package:flutter/material.dart';
void main() => runApp(AppBody());
class _AppBodyState extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: ShadowedImage(image: Image.asset('assets/images/download.jpg'))
),
);
}
}
1. Key key
2. double scale // Size to parent.
3. Offset offset // Position of shadow. Takes 2 arguments- first one (dx) for horizontal component and second (dy) for vertical component.
4. double blurRadius // Amount of blur in the shadow. 0 means no blur.
5. Image image (@required) // The image.
*If scale provided then offset should not be unchanged.