feat: add App Icon

This commit is contained in:
Patryk Hegenberg 2026-02-14 18:47:46 +01:00
parent 6092692c54
commit d731c31200
11 changed files with 56 additions and 11 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

BIN
assets/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 670 KiB

BIN
assets/icons/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 MiB

View file

@ -46,6 +46,7 @@ class AssetPaths {
static const String audioBeepShort = 'audio/beep_short.ogg';
static const String audioBeepLong = 'audio/beep_long.ogg';
static const String appLogo = 'assets/icons/icon.png';
}
class PlateColors {

View file

@ -3,6 +3,7 @@ import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:go_router/go_router.dart';
import 'package:slrpg_app/l10n/app_localizations.dart';
import 'package:slrpg_app/src/core/utils/error_handler.dart';
import 'package:slrpg_app/src/core/constants/asset_paths.dart';
import '../../data/repositories/auth_repository.dart';
import '../../../../core/theme/app_theme.dart';
@ -106,11 +107,10 @@ class _LoginScreenState extends ConsumerState<LoginScreen> {
children: [
const Spacer(),
Container(
width: 100,
height: 100,
width: 120,
height: 220,
decoration: BoxDecoration(
color: AppTheme.primaryColor,
borderRadius: BorderRadius.circular(20),
borderRadius: BorderRadius.circular(24),
boxShadow: [
BoxShadow(
color: AppTheme.primaryColor
@ -120,10 +120,12 @@ class _LoginScreenState extends ConsumerState<LoginScreen> {
),
],
),
child: const Icon(
Icons.fitness_center,
size: 56,
color: Colors.black,
child: ClipRRect(
borderRadius: BorderRadius.circular(24),
child: Image.asset(
AssetPaths.appLogo,
fit: BoxFit.cover,
),
),
),
const SizedBox(height: 32),

View file

@ -25,6 +25,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "0.1.11"
archive:
dependency: transitive
description:
name: archive
sha256: "2fde1607386ab523f7a36bb3e7edb43bd58e6edaf2ffb29d8a6d578b297fdbbd"
url: "https://pub.dev"
source: hosted
version: "4.0.7"
args:
dependency: transitive
description:
@ -398,6 +406,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "5.2.1"
flutter_launcher_icons:
dependency: "direct dev"
description:
name: flutter_launcher_icons
sha256: "10f13781741a2e3972126fae08393d3c4e01fa4cd7473326b94b72cf594195e7"
url: "https://pub.dev"
source: hosted
version: "0.14.4"
flutter_lints:
dependency: "direct dev"
description:
@ -565,6 +581,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "4.1.2"
image:
dependency: transitive
description:
name: image
sha256: "492bd52f6c4fbb6ee41f781ff27765ce5f627910e1e0cbecfa3d9add5562604c"
url: "https://pub.dev"
source: hosted
version: "4.7.2"
intl:
dependency: "direct main"
description:
@ -809,10 +833,10 @@ packages:
dependency: "direct main"
description:
name: pocketbase
sha256: e6aca23d3181a23d367c6650fc4ebe6855bfba4d18b3746ceb1974fb152d8cf9
sha256: b94e63f00ce29c5f465e8122ae63cdf4e3c37f9b3dc6d04f0dfe6625bcdb8839
url: "https://pub.dev"
source: hosted
version: "0.19.1"
version: "0.23.2"
pool:
dependency: transitive
description:
@ -821,6 +845,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.5.2"
posix:
dependency: transitive
description:
name: posix
sha256: "6323a5b0fa688b6a010df4905a56b00181479e6d10534cecfecede2aa55add61"
url: "https://pub.dev"
source: hosted
version: "6.0.3"
pretty_dio_logger:
dependency: "direct main"
description:

View file

@ -28,7 +28,7 @@ dependencies:
# Networking
dio: ^5.4.3+1
pretty_dio_logger: ^1.3.1
pocketbase: ^0.19.0
pocketbase: ^0.23.2
# Storage
flutter_secure_storage: ^10.0.0
@ -62,6 +62,7 @@ dev_dependencies:
drift_dev: ^2.16.0
freezed: ^3.2.3
json_serializable: ^6.8.0
flutter_launcher_icons: ^0.14.4
flutter:
uses-material-design: true
@ -75,6 +76,7 @@ flutter:
- assets/images/enemies/
- assets/images/backgrounds/
- assets/audio/
- assets/icons/
- .env
- .env.development
- .env.production
@ -83,3 +85,11 @@ flutter:
# - family: PixelFont
# fonts:
# - asset: assets/fonts/pixel.ttf
flutter_launcher_icons:
android: "launcher_icon"
ios: true
image_path: "assets/icon.png"
min_sdk_android: 21 # Optional, verhindert Fehler bei alten Android-Versionen
# Optional: Für Android Adaptive Icons (Android 8+)
# adaptive_icon_background: "#000000" # Hintergrundfarbe (Hex-Code)
# adaptive_icon_foreground: "assets/icon/icon.png"