drop_shadow_image

Creator: coderz1093

Last updated:

0 purchases

drop_shadow_image Image
drop_shadow_image Images

Languages

Categories

Add to Cart

Description:

drop shadow image

drop_shadow_image #
Package for creating drop shadow effect of an image, with lots of properties to apply.

Installation #

Add this to your package's pubspec.yaml file:

dependencies:
drop_shadow_image: ^0.9.0
copied to clipboard

Import the package into your dart file:

import 'package:drop_shadow_image/drop_shadow_image.dart';
copied to clipboard
Example #
import 'dart:ui';

import 'package:drop_shadow_image/drop_shadow_lib.dart';
import 'package:flutter/material.dart';

main() => runApp(MyApp());

class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
home: Scaffold(
body:
Center(
child: DropShadowImage(
offset: Offset(10,10),
scale: 1,
blurRadius: 12,
borderRadius: 20,
image: Image.asset('assets/cat.png',
width: 300,),
),
)
),
);
}
}

copied to clipboard
Properties of the lass #
1. Key key

2. double scale // Size to parent.

3. Offset offset // Position of shadow. (dx) for horizontal displacement (dy) for vertical displacement.

4. double blurRadius // Amount of blur in the shadow. 0 means no blur.

5. double borderRadius // border radius of image

6. Image image (@required) // The image.
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.