Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

Commit

Permalink
feat: update game background (#162)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsgalarraga authored Nov 15, 2023
1 parent cfa61b4 commit 111b2c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
Binary file modified assets/images/game_background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 2 additions & 9 deletions lib/game/widgets/game_background.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import 'dart:ui';

import 'package:dash_run/gen/assets.gen.dart';
import 'package:flutter/material.dart';

Expand All @@ -9,13 +7,8 @@ class GameBackground extends StatelessWidget {
@override
Widget build(BuildContext context) {
return SizedBox.expand(
child: ImageFiltered(
imageFilter: ImageFilter.blur(sigmaX: 2, sigmaY: 2),
child: Assets.images.gameBackground.image(
fit: BoxFit.cover,
color: Colors.black54,
colorBlendMode: BlendMode.darken,
),
child: Assets.images.gameBackground.image(
fit: BoxFit.cover,
),
);
}
Expand Down

0 comments on commit 111b2c9

Please sign in to comment.