flutter_inner_shadow 0.0.1 copy "flutter_inner_shadow: ^0.0.1" to clipboard
flutter_inner_shadow: ^0.0.1 copied to clipboard

This package wraps any flutter widget inside InnerShadow widget with specified inner shadow

Features #

This package wraps any flutter widget inside InnerShadow widget with specified inner shadow

Getting started #

Add the following to your pubspec.yaml file.

dependencies:
  flutter_inner_shadow: 0.0.1

Import the package.

import 'package:flutter_inner_shadow/flutter_inner_shadow.dart';

Usage #

Wrap any widget with InnerShadow widget. provide List

@override
Widget build(BuildContext context) {
  return Scaffold(
    body: Center(
      child: SizedBox(
        height: 100,
        width: 100,
        child: InnerShadow(
          shadows: [
            Shadow(
                color: Colors.black.withOpacity(0.25),
                blurRadius: 10,
                offset: Offset(2, 5))
          ],
          child: Container(
            decoration: BoxDecoration(
              borderRadius: BorderRadius.circular(10),
              color: Colors.red,
            ),
          ),
        ),
      ),
    ),
  );
}
9
likes
140
points
1.4k
downloads

Publisher

unverified uploader

Weekly Downloads

This package wraps any flutter widget inside InnerShadow widget with specified inner shadow

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on flutter_inner_shadow