diff --git a/assets/images/flux-logo-dark.svg b/assets/images/flux-logo-dark.svg
new file mode 100644
index 0000000..df29ca2
--- /dev/null
+++ b/assets/images/flux-logo-dark.svg
@@ -0,0 +1,5 @@
+
diff --git a/assets/images/flux-logo-light.svg b/assets/images/flux-logo-light.svg
new file mode 100644
index 0000000..ad9a53d
--- /dev/null
+++ b/assets/images/flux-logo-light.svg
@@ -0,0 +1,5 @@
+
diff --git a/lib/features/auth/ui/auth_screen.dart b/lib/features/auth/ui/auth_screen.dart
index 978b7a6..b5a97bf 100644
--- a/lib/features/auth/ui/auth_screen.dart
+++ b/lib/features/auth/ui/auth_screen.dart
@@ -1,5 +1,6 @@
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
+import 'package:flutter_svg/svg.dart';
import 'package:flux/core/theme/theme.dart';
import 'package:flux/core/widgets/flux_text_field.dart';
import 'package:flux/features/auth/bloc/auth_bloc.dart';
@@ -152,31 +153,14 @@ class _AuthScreenState extends State {
}
Widget _buildLogo(BuildContext context) {
- return Column(
- children: [
- Container(
- padding: const EdgeInsets.all(20),
- decoration: BoxDecoration(
- color: context.accent.withValues(alpha: 0.1),
- shape: BoxShape.circle,
- ),
- child: Icon(
- Icons.all_inclusive_rounded, // Simbolo dell'infinito/Flux
- size: 60,
- color: context.accent,
- ),
- ),
- const SizedBox(height: 16),
- Text(
- 'FLUX',
- style: TextStyle(
- color: context.primaryText,
- fontSize: 32,
- fontWeight: FontWeight.w900,
- letterSpacing: 10,
- ),
- ),
- ],
+ // Controlliamo se siamo in dark mode o light mode
+ bool isDark = Theme.of(context).brightness == Brightness.dark;
+
+ return SvgPicture.asset(
+ isDark
+ ? 'assets/images/flux_logo_light.svg'
+ : 'assets/images/flux_logo_dark.svg',
+ height: 80,
);
}
}
diff --git a/pubspec.lock b/pubspec.lock
index ebd2f93..0114c31 100644
--- a/pubspec.lock
+++ b/pubspec.lock
@@ -33,6 +33,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.0.4"
+ args:
+ dependency: transitive
+ description:
+ name: args
+ sha256: d0481093c50b1da8910eb0bb301626d4d8eb7284aa739614d2b394ee09e3ea04
+ url: "https://pub.dev"
+ source: hosted
+ version: "2.7.0"
async:
dependency: transitive
description:
@@ -166,6 +174,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "6.0.0"
+ flutter_svg:
+ dependency: "direct main"
+ description:
+ name: flutter_svg
+ sha256: "1ded017b39c8e15c8948ea855070a5ff8ff8b3d5e83f3446e02d6bb12add7ad9"
+ url: "https://pub.dev"
+ source: hosted
+ version: "2.2.4"
flutter_test:
dependency: "direct dev"
description: flutter
@@ -368,6 +384,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.9.1"
+ path_parsing:
+ dependency: transitive
+ description:
+ name: path_parsing
+ sha256: "883402936929eac138ee0a45da5b0f2c80f89913e6dc3bf77eb65b84b409c6ca"
+ url: "https://pub.dev"
+ source: hosted
+ version: "1.1.0"
path_provider:
dependency: transitive
description:
@@ -416,6 +440,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "2.3.0"
+ petitparser:
+ dependency: transitive
+ description:
+ name: petitparser
+ sha256: "91bd59303e9f769f108f8df05e371341b15d59e995e6806aefab827b58336675"
+ url: "https://pub.dev"
+ source: hosted
+ version: "7.0.2"
platform:
dependency: transitive
description:
@@ -693,6 +725,30 @@ packages:
url: "https://pub.dev"
source: hosted
version: "3.1.5"
+ vector_graphics:
+ dependency: transitive
+ description:
+ name: vector_graphics
+ sha256: "81da85e9ca8885ade47f9685b953cb098970d11be4821ac765580a6607ea4373"
+ url: "https://pub.dev"
+ source: hosted
+ version: "1.1.21"
+ vector_graphics_codec:
+ dependency: transitive
+ description:
+ name: vector_graphics_codec
+ sha256: "99fd9fbd34d9f9a32efd7b6a6aae14125d8237b10403b422a6a6dfeac2806146"
+ url: "https://pub.dev"
+ source: hosted
+ version: "1.1.13"
+ vector_graphics_compiler:
+ dependency: transitive
+ description:
+ name: vector_graphics_compiler
+ sha256: "5a88dd14c0954a5398af544651c7fb51b457a2a556949bfb25369b210ef73a74"
+ url: "https://pub.dev"
+ source: hosted
+ version: "1.2.0"
vector_math:
dependency: transitive
description:
@@ -741,6 +797,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.1.0"
+ xml:
+ dependency: transitive
+ description:
+ name: xml
+ sha256: "971043b3a0d3da28727e40ed3e0b5d18b742fa5a68665cca88e74b7876d5e025"
+ url: "https://pub.dev"
+ source: hosted
+ version: "6.6.1"
yaml:
dependency: transitive
description:
diff --git a/pubspec.yaml b/pubspec.yaml
index ca4d516..1162733 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -11,6 +11,7 @@ dependencies:
flutter:
sdk: flutter
flutter_bloc: ^9.1.1
+ flutter_svg: ^2.2.4
get_it: ^9.2.1
google_fonts: ^8.0.2
intl: ^0.20.2
@@ -24,3 +25,8 @@ dev_dependencies:
flutter:
uses-material-design: true
+
+assets:
+ - assets/images/
+
+