ente/lib/ui/common/bottomShadow.dart

25 lines
635 B
Dart
Raw Normal View History

import 'package:flutter/material.dart';
class BottomShadowWidget extends StatelessWidget {
2022-05-12 12:12:38 +00:00
final double offsetDy;
const BottomShadowWidget({this.offsetDy = 28, 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,
2022-05-12 12:12:38 +00:00
offset: Offset(0, offsetDy) // changes position of shadow
),
],
),
);
}
}