ente/auth/lib/ui/common/bottom_shadow.dart
Kishan Dhankecha 8b43f18f6a
[AUTH] Made dart analyzer happy (#3226)
## Description
Updated some deprecated stuff to its replacements to make analyzer happy

## Tests
Changes are not affecting any tests
2024-09-12 11:35:43 +05:30

26 lines
673 B
Dart

import 'package:flutter/material.dart';
class BottomShadowWidget extends StatelessWidget {
final double offsetDy;
final Color? shadowColor;
const BottomShadowWidget({this.offsetDy = 28, this.shadowColor, super.key});
@override
Widget build(BuildContext context) {
return Container(
height: 8,
decoration: BoxDecoration(
color: Colors.transparent,
boxShadow: [
BoxShadow(
color: shadowColor ?? Theme.of(context).colorScheme.surface,
spreadRadius: 42,
blurRadius: 42,
offset: Offset(0, offsetDy), // changes position of shadow
),
],
),
);
}
}