feat: add App Icon
BIN
android/app/src/main/res/mipmap-hdpi/launcher_icon.png
Normal file
|
After Width: | Height: | Size: 6.6 KiB |
BIN
android/app/src/main/res/mipmap-mdpi/launcher_icon.png
Normal file
|
After Width: | Height: | Size: 3.3 KiB |
BIN
android/app/src/main/res/mipmap-xhdpi/launcher_icon.png
Normal file
|
After Width: | Height: | Size: 11 KiB |
BIN
android/app/src/main/res/mipmap-xxhdpi/launcher_icon.png
Normal file
|
After Width: | Height: | Size: 23 KiB |
BIN
android/app/src/main/res/mipmap-xxxhdpi/launcher_icon.png
Normal file
|
After Width: | Height: | Size: 38 KiB |
BIN
assets/icon.png
Normal file
|
After Width: | Height: | Size: 670 KiB |
BIN
assets/icons/icon.png
Normal file
|
After Width: | Height: | Size: 6.4 MiB |
|
|
@ -46,6 +46,7 @@ class AssetPaths {
|
||||||
|
|
||||||
static const String audioBeepShort = 'audio/beep_short.ogg';
|
static const String audioBeepShort = 'audio/beep_short.ogg';
|
||||||
static const String audioBeepLong = 'audio/beep_long.ogg';
|
static const String audioBeepLong = 'audio/beep_long.ogg';
|
||||||
|
static const String appLogo = 'assets/icons/icon.png';
|
||||||
}
|
}
|
||||||
|
|
||||||
class PlateColors {
|
class PlateColors {
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@ import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||||
import 'package:go_router/go_router.dart';
|
import 'package:go_router/go_router.dart';
|
||||||
import 'package:slrpg_app/l10n/app_localizations.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/utils/error_handler.dart';
|
||||||
|
import 'package:slrpg_app/src/core/constants/asset_paths.dart';
|
||||||
|
|
||||||
import '../../data/repositories/auth_repository.dart';
|
import '../../data/repositories/auth_repository.dart';
|
||||||
import '../../../../core/theme/app_theme.dart';
|
import '../../../../core/theme/app_theme.dart';
|
||||||
|
|
@ -106,11 +107,10 @@ class _LoginScreenState extends ConsumerState<LoginScreen> {
|
||||||
children: [
|
children: [
|
||||||
const Spacer(),
|
const Spacer(),
|
||||||
Container(
|
Container(
|
||||||
width: 100,
|
width: 120,
|
||||||
height: 100,
|
height: 220,
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: AppTheme.primaryColor,
|
borderRadius: BorderRadius.circular(24),
|
||||||
borderRadius: BorderRadius.circular(20),
|
|
||||||
boxShadow: [
|
boxShadow: [
|
||||||
BoxShadow(
|
BoxShadow(
|
||||||
color: AppTheme.primaryColor
|
color: AppTheme.primaryColor
|
||||||
|
|
@ -120,10 +120,12 @@ class _LoginScreenState extends ConsumerState<LoginScreen> {
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
child: const Icon(
|
child: ClipRRect(
|
||||||
Icons.fitness_center,
|
borderRadius: BorderRadius.circular(24),
|
||||||
size: 56,
|
child: Image.asset(
|
||||||
color: Colors.black,
|
AssetPaths.appLogo,
|
||||||
|
fit: BoxFit.cover,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(height: 32),
|
const SizedBox(height: 32),
|
||||||
|
|
|
||||||
36
pubspec.lock
|
|
@ -25,6 +25,14 @@ packages:
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.1.11"
|
version: "0.1.11"
|
||||||
|
archive:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: archive
|
||||||
|
sha256: "2fde1607386ab523f7a36bb3e7edb43bd58e6edaf2ffb29d8a6d578b297fdbbd"
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "4.0.7"
|
||||||
args:
|
args:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
|
@ -398,6 +406,14 @@ packages:
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "5.2.1"
|
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:
|
flutter_lints:
|
||||||
dependency: "direct dev"
|
dependency: "direct dev"
|
||||||
description:
|
description:
|
||||||
|
|
@ -565,6 +581,14 @@ packages:
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "4.1.2"
|
version: "4.1.2"
|
||||||
|
image:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: image
|
||||||
|
sha256: "492bd52f6c4fbb6ee41f781ff27765ce5f627910e1e0cbecfa3d9add5562604c"
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "4.7.2"
|
||||||
intl:
|
intl:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
|
|
@ -809,10 +833,10 @@ packages:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
name: pocketbase
|
name: pocketbase
|
||||||
sha256: e6aca23d3181a23d367c6650fc4ebe6855bfba4d18b3746ceb1974fb152d8cf9
|
sha256: b94e63f00ce29c5f465e8122ae63cdf4e3c37f9b3dc6d04f0dfe6625bcdb8839
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.19.1"
|
version: "0.23.2"
|
||||||
pool:
|
pool:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
|
@ -821,6 +845,14 @@ packages:
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.5.2"
|
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:
|
pretty_dio_logger:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
|
|
|
||||||
12
pubspec.yaml
|
|
@ -28,7 +28,7 @@ dependencies:
|
||||||
# Networking
|
# Networking
|
||||||
dio: ^5.4.3+1
|
dio: ^5.4.3+1
|
||||||
pretty_dio_logger: ^1.3.1
|
pretty_dio_logger: ^1.3.1
|
||||||
pocketbase: ^0.19.0
|
pocketbase: ^0.23.2
|
||||||
|
|
||||||
# Storage
|
# Storage
|
||||||
flutter_secure_storage: ^10.0.0
|
flutter_secure_storage: ^10.0.0
|
||||||
|
|
@ -62,6 +62,7 @@ dev_dependencies:
|
||||||
drift_dev: ^2.16.0
|
drift_dev: ^2.16.0
|
||||||
freezed: ^3.2.3
|
freezed: ^3.2.3
|
||||||
json_serializable: ^6.8.0
|
json_serializable: ^6.8.0
|
||||||
|
flutter_launcher_icons: ^0.14.4
|
||||||
|
|
||||||
flutter:
|
flutter:
|
||||||
uses-material-design: true
|
uses-material-design: true
|
||||||
|
|
@ -75,6 +76,7 @@ flutter:
|
||||||
- assets/images/enemies/
|
- assets/images/enemies/
|
||||||
- assets/images/backgrounds/
|
- assets/images/backgrounds/
|
||||||
- assets/audio/
|
- assets/audio/
|
||||||
|
- assets/icons/
|
||||||
- .env
|
- .env
|
||||||
- .env.development
|
- .env.development
|
||||||
- .env.production
|
- .env.production
|
||||||
|
|
@ -83,3 +85,11 @@ flutter:
|
||||||
# - family: PixelFont
|
# - family: PixelFont
|
||||||
# fonts:
|
# fonts:
|
||||||
# - asset: assets/fonts/pixel.ttf
|
# - 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"
|
||||||
|
|
|
||||||