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

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

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

Example

Installation #

  1. Add this to your package's pubspec.yaml file:
dependencies:
  shadowed_image: ^latest
copied to clipboard
  1. Import the package into your dart file:
import 'package:shadowed_image/shadowed_image.dart';
copied to clipboard

Usage #

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'))
      ),
    );
  }
}
copied to clipboard

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 blurRadius // Amount of blur in the shadow. 0 means no blur.

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

copied to clipboard

Note #

*If scale provided then offset should not be unchanged.

57
likes
160
points
59
downloads

Publisher

unverified uploader

Weekly Downloads

2024.09.08 - 2025.03.23

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

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on shadowed_image