From 0a2178a079fda968d6a5b92a503c216b0fa6ebf9 Mon Sep 17 00:00:00 2001 From: Lewis Date: Fri, 3 Jan 2025 22:09:02 +0100 Subject: [PATCH] lint: fixed lint warnings --- .github/workflows/build.yml | 24 +++++++++--------- ios/Runner/Base.lproj/Main.storyboard | 13 ++++++---- .../profile/screens/profile_screen.dart | 25 ++++--------------- 3 files changed, 25 insertions(+), 37 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f5dfcc2..2af8c89 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -56,18 +56,18 @@ jobs: name: apk path: build/app/outputs/flutter-apk - # Build the iOS application and provide build artifacts - build-ios: - name: Build iOS - runs-on: macos-latest - steps: - - uses: actions/checkout@v4 - - uses: subosito/flutter-action@v2 - with: - channel: ${{ env.FLUTTER_CHANNEL }} - architecture: x64 - - run: flutter pub get - - run: flutter build ios --simulator --debug +# # Build the iOS application and provide build artifacts +# build-ios: +# name: Build iOS +# runs-on: macos-latest +# steps: +# - uses: actions/checkout@v4 +# - uses: subosito/flutter-action@v2 +# with: +# channel: ${{ env.FLUTTER_CHANNEL }} +# architecture: x64 +# - run: flutter pub get +# - run: flutter build ios --debug --no-codesign diff --git a/ios/Runner/Base.lproj/Main.storyboard b/ios/Runner/Base.lproj/Main.storyboard index f3c2851..04713cb 100644 --- a/ios/Runner/Base.lproj/Main.storyboard +++ b/ios/Runner/Base.lproj/Main.storyboard @@ -1,8 +1,10 @@ - - + + + - + + @@ -14,13 +16,14 @@ - + - + + diff --git a/lib/features/profile/screens/profile_screen.dart b/lib/features/profile/screens/profile_screen.dart index 530c28d..70c4e8d 100644 --- a/lib/features/profile/screens/profile_screen.dart +++ b/lib/features/profile/screens/profile_screen.dart @@ -65,28 +65,13 @@ class ProfileScreen extends ConsumerWidget { ), const Gap(16), Row( + spacing: 8, mainAxisAlignment: MainAxisAlignment.center, children: [ - UserInfoChip( - label: "${userProfile.age} Yrs", - icon: FluentIcons.food_cake_20_regular, - backgroundColor: theme.colorScheme.primary, - color: Colors.white, - ), - const Gap(8), - UserInfoChip( - label: "${userProfile.gender?.name}", - icon: FluentIcons.person_20_regular, - color: Colors.white, - backgroundColor: theme.colorScheme.secondary, - ), - const Gap(8), - UserInfoChip( - label: "${userProfile.genotype?.name.toUpperCase()}", - iconPath: "assets/svg/dna.svg", - color: Colors.white, - backgroundColor: theme.colorScheme.tertiary, - ), + ///Todo: Properly reimplement these chips. + AppChip(label: "${userProfile.age} Yrs"), + AppChip(label: "${userProfile.gender?.name}"), + AppChip(label: "${userProfile.genotype?.name.toUpperCase()}"), ], ), // const Gap(16),