diff --git a/assets/icon.svg b/assets/icon.svg new file mode 100644 index 0000000..fad3900 --- /dev/null +++ b/assets/icon.svg @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/lib/components/app_bar.dart b/lib/components/app_bar.dart index db6d080..c2079f7 100644 --- a/lib/components/app_bar.dart +++ b/lib/components/app_bar.dart @@ -1,4 +1,5 @@ import 'package:flutter/material.dart'; +import 'package:flutter_svg/flutter_svg.dart'; class GymLinkAppBar extends StatelessWidget implements PreferredSizeWidget { const GymLinkAppBar({super.key}); @@ -10,14 +11,18 @@ class GymLinkAppBar extends StatelessWidget implements PreferredSizeWidget { shadowColor: null, automaticallyImplyLeading: false, elevation: 0, - scrolledUnderElevation: 4, + scrolledUnderElevation: 0, title: Row( mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ - const Padding( - padding: EdgeInsets.only(right: 8), - child: Image( - image: AssetImage('assets/logo.png'), width: 24, height: 24), + Padding( + padding: const EdgeInsets.only(right: 8), + child: SvgPicture.asset( + 'assets/icon.svg', + width: 24, + height: 24, + semanticsLabel: 'GymLink Logo', + ), ), Align( alignment: Alignment.centerRight, diff --git a/pubspec.yaml b/pubspec.yaml index 50b373c..0d90d93 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -31,16 +31,15 @@ dependencies: flutter: sdk: flutter - - # The following adds the Cupertino Icons font to your application. - # Use with the CupertinoIcons class for iOS style icons. - cupertino_icons: ^1.0.6 url_launcher: ^6.2.6 shared_preferences: ^2.2.3 flutter_markdown: ^0.7.1 http: ^1.2.1 universal_html: ^2.2.4 provider: ^6.1.2 + lazy_load_scrollview: ^1.3.0 + cupertino_icons: ^1.0.8 + flutter_svg: ^2.0.10+1 dev_dependencies: flutter_test: @@ -66,6 +65,7 @@ flutter: assets: - assets/logo.png - assets/product.png + - assets/icon.svg # To add assets to your application, add an assets section, like this: # assets: