diff --git a/assets/images/logo.png b/assets/images/logo.png deleted file mode 100644 index 0b62d1c..0000000 Binary files a/assets/images/logo.png and /dev/null differ diff --git a/assets/images/m8logo.svg b/assets/images/m8logo.svg new file mode 100644 index 0000000..20041b4 --- /dev/null +++ b/assets/images/m8logo.svg @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/lib/features/auth/presentation/login_screen.dart b/lib/features/auth/presentation/login_screen.dart index ade32fa..6a3fe4f 100644 --- a/lib/features/auth/presentation/login_screen.dart +++ b/lib/features/auth/presentation/login_screen.dart @@ -1,9 +1,10 @@ -// Version: 1.1.0 | Created: 2026-04-01 | Updated: 2026-04-02 +// Version: 1.2.0 | Created: 2026-04-01 | Updated: 2026-04-03 // Login screen. Username + password only. No registration link. // Respects system theme preference. import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; +import 'package:flutter_svg/flutter_svg.dart'; import '../../../core/config/app_config.dart'; import 'login_controller.dart'; @@ -102,15 +103,10 @@ class _LogoSection extends StatelessWidget { Widget build(BuildContext context) { return Column( children: [ - Image.asset( - 'assets/images/logo.png', + SvgPicture.asset( + 'assets/images/m8logo.svg', width: 96, height: 96, - errorBuilder: (_, __, ___) => CircleAvatar( - radius: 48, - backgroundColor: theme.colorScheme.primary, - child: const Icon(Icons.chat_bubble, size: 48, color: Colors.white), - ), ), const SizedBox(height: 20), Text( diff --git a/pubspec.yaml b/pubspec.yaml index 5925ac9..6b063e2 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -46,6 +46,7 @@ dependencies: cached_network_image: ^3.4.0 timeago: ^3.7.0 intl: ^0.20.0 + flutter_svg: ^2.2.4 dev_dependencies: flutter_test: