ente/mobile/lib/ui/common/bottom_shadow.dart

27 lines
699 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;
final Color? shadowColor;
const BottomShadowWidget({this.offsetDy = 28, this.shadowColor, Key? key})
2022-07-03 09:49:33 +00:00
: super(key: key);
@override
Widget build(BuildContext context) {
return Container(
height: 8,
decoration: BoxDecoration(
color: Colors.transparent,
boxShadow: [
BoxShadow(
color: shadowColor ?? Theme.of(context).colorScheme.background,
2022-06-11 08:23:52 +00:00
spreadRadius: 42,
blurRadius: 42,
offset: Offset(0, offsetDy), // changes position of shadow
),
],
),
);
}
}