f
This commit is contained in:
@@ -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<AuthScreen> {
|
||||
}
|
||||
|
||||
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,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user