shadowed_image 1.0.0 copy "shadowed_image: ^1.0.0" to clipboard
shadowed_image: ^1.0.0 copied to clipboard

outdated

A new Flutter package for creating shadow of same color scheme as the image..

ShadowedImage 1.0.0 #

Package for creating shadow of same color scheme as the image.

Example 1 Example 2 Example 3

Installation #

  1. Add this to your package's pubspec.yaml file:
shadow ^1.0.0
  1. Import the dependency into your dart file:
import 'package:flutter/shadow.dart';

Usage #

import 'shadow.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'))
      ),
    );
  }
}

Properties #

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 opacity  // Decides how much opaque the shadow must be.

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

6. Image image (@required) // The image.

Note #

*If scale provided then offset should not be unchanged.

56
likes
0
pub points
69%
popularity

Publisher

unverified uploader

A new Flutter package for creating shadow of same color scheme as the image..

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on shadowed_image