Skip to content

Commit

Permalink
feat: ✨ Add boxfit in param
Browse files Browse the repository at this point in the history
  • Loading branch information
redDwarf03 committed Oct 17, 2024
1 parent 0ec69fb commit 1f0e30b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/src/ui/util/components/app_background.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@ class AppBackground extends StatelessWidget {
const AppBackground({
required this.backgroundImage,
this.withAnimation = false,
this.boxFit = BoxFit.cover,
super.key,
});

final bool withAnimation;
final String backgroundImage;
final BoxFit boxFit;

@override
Widget build(BuildContext context) {
Expand All @@ -27,7 +29,7 @@ class AppBackground extends StatelessWidget {
image: AssetImage(
backgroundImage,
),
fit: BoxFit.cover,
fit: boxFit,
),
),
),
Expand Down

0 comments on commit 1f0e30b

Please sign in to comment.