flutter_inset_box_shadow 1.0.2 copy "flutter_inset_box_shadow: ^1.0.2" to clipboard
flutter_inset_box_shadow: ^1.0.2 copied to clipboard

outdated

This package extends BoxShadow and BoxDecoration to support the inset property.

Flutter Inset Box Shadow #

Flutter currently does not support the inset property for shadows. This type of shadow is for example used in Neumorphism.

This package extends BoxShadow and BoxDecoration to support the inset property.

Usage #

To use this package, import it as follows:

import 'package:flutter/material.dart' hide BoxDecoration, BoxShadow;
import 'package:flutter_inset_box_shadow/flutter_inset_box_shadow.dart';

It is necessary to hide BoxDecoration and BoxShadow because this library replaces them.

The BoxShadow now has a boolean inset property, which is set to false by default.

Container(
  decoration: BoxDecoration(
    boxShadow: [
      BoxShadow(
        blurRadius: 5,
        color: Colors.red,
      ),
      BoxShadow(
        offset: Offset(1, 2),
        blurRadius: 5,
        spreadRadius: 2,
        color: Colors.green,
        inset: true,
      ),
    ],
  ),
),
76
likes
0
pub points
96%
popularity

Publisher

verified publisherqoumo.dev

This package extends BoxShadow and BoxDecoration to support the inset property.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_inset_box_shadow