Search packages, repositories and app categories

drop_shadow_image cover
Package detailsv0.9.1

drop_shadow_image

A new Flutter package for creating drop shadow of image with a lot of properties to make it look much good.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
192
Likes
59
Pub points
160

Install package

flutter pub add drop_shadow_image

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

A Flutter package that enables developers to add customizable drop shadows to images with extensive styling options. It provides fine-grained control over shadow properties such as blur radius, offset, color, and spread, allowing for visually appealing image effects across multiple platforms. Ideal for enhancing UI elements with depth and dimension, it integrates seamlessly into Flutter applications. The package is open-source and actively maintained, supporting Android, iOS, Web, macOS, Windows, and Linux.

Use cases

  • Enhancing image cards with depth
  • Creating visually rich UI components
  • Adding dynamic shadows in app interfaces
  • Improving visual hierarchy in layouts
  • Designing modern app aesthetics

Key features

  • Customizable shadow blur radius
  • Adjustable shadow offset
  • Support for shadow color and spread
  • Cross-platform compatibility
  • Easy integration with existing widgets
  • Fine-tuned control over shadow appearance

Suitable for

  • UI designers seeking visual depth
  • Developers building modern Flutter apps
  • Projects requiring polished image effects
  • Apps targeting multiple platforms
  • Creative digital product interfaces

Considerations

  • Performance impact with heavy shadows
  • Requires careful tuning for optimal rendering
  • May need optimization on lower-end devices
  • Limited to image decoration, not full widget shadows

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

drop_shadow_image

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

Example

Installation

  1. Add this to your package's pubspec.yaml file:
dependencies:
  drop_shadow_image: ^0.9.0
  1. Import the package into your dart file:
import 'package:drop_shadow_image/drop_shadow_image.dart';

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,),
          ),
        )
      ),
    );
  }
}

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.

Categories

Source repository

Projects using this package

No data available yet.