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
copied to clipboard

Import the package.

import 'package:flutter_inner_shadow/flutter_inner_shadow.dart';
copied to clipboard

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,
            ),
          ),
        ),
      ),
    ),
  );
}
copied to clipboard
15
likes
140
points
1.99k
downloads

Publisher

unverified uploader

Weekly Downloads

2024.12.04 - 2025.10.29

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