Last updated:
0 purchases
flutter 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
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.