Simple Widget to create Image with Shadow in Flutter.

Features

  • Able to adjust border radius size
  • Able to adjust blur radius size
  • Able to adjust scale of shadow
  • Able to adjust offset of shadow

Getting started

Add this line into your pubspec.yaml

dependencies:
  image_shadow: ^0.0.1

dont forget to refresh

$ flutter pub get

Usage

import 'package:image_shadow/image_shadow.dart';

...

ImageShadow(
  blurRadius: 6,
  borderRadius: 20,
  scale: 1,
  offset: Offset(5, 5),
  image: Image.asset(
    "assets/images/logo.jpg",
  ),
);

Params

NameTypeDefault ValueOption
blurRadiusdouble?8.0Nullable
borderRadiusdouble?0Nullable
scaledouble?1Nullable
offsetOffset?Offset(8.0, 8.0)Nullable
imageImage-Mandatory

Additional information

Please feel free to open the issue on the github repo or contribute if you found some bug.

Libraries

image_shadow
image_shadow