24 lines
584 B
Dart
24 lines
584 B
Dart
|
import 'package:flutter/material.dart';
|
||
|
|
||
|
class BottomShadowWidget extends StatelessWidget {
|
||
|
const BottomShadowWidget({Key key}) : super(key: key);
|
||
|
|
||
|
@override
|
||
|
Widget build(BuildContext context) {
|
||
|
return Container(
|
||
|
height: 8,
|
||
|
decoration: BoxDecoration(
|
||
|
color: Colors.transparent,
|
||
|
boxShadow: [
|
||
|
BoxShadow(
|
||
|
color: Theme.of(context).backgroundColor,
|
||
|
spreadRadius: 42,
|
||
|
blurRadius: 42,
|
||
|
offset: Offset(0, 28) // changes position of shadow
|
||
|
),
|
||
|
],
|
||
|
),
|
||
|
);
|
||
|
}
|
||
|
}
|