Skip to content

Commit

Permalink
lint: fixed lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
nuilewis committed Jan 3, 2025
1 parent 49879d5 commit 0a2178a
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 37 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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



Expand Down
13 changes: 8 additions & 5 deletions ios/Runner/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="10117" systemVersion="15F34" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="BYZ-38-t0r">
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="23504" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="BYZ-38-t0r">
<device id="retina6_12" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="10085"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="23506"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
<!--Flutter View Controller-->
Expand All @@ -14,13 +16,14 @@
<viewControllerLayoutGuide type="bottom" id="wfy-db-euE"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
<rect key="frame" x="0.0" y="0.0" width="393" height="852"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="-17" y="-40"/>
</scene>
</scenes>
</document>
25 changes: 5 additions & 20 deletions lib/features/profile/screens/profile_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 0a2178a

Please sign in to comment.