Skip to content
This repository was archived by the owner on Jan 23, 2026. It is now read-only.

Commit ffe3a72

Browse files
authored
Merge pull request #121 from Tendwa-T/dev
fix: Create IOS Configuration
2 parents 9943230 + bd5cd9c commit ffe3a72

File tree

6 files changed

+35
-8
lines changed

6 files changed

+35
-8
lines changed

ios/Runner.xcodeproj/project.pbxproj

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,6 @@
161161
A880AF19321A3205D1352C30 /* Pods-RunnerTests.release.xcconfig */,
162162
656DC895D99CD4091764CC20 /* Pods-RunnerTests.profile.xcconfig */,
163163
);
164-
name = Pods;
165164
path = Pods;
166165
sourceTree = "<group>";
167166
};
@@ -199,6 +198,7 @@
199198
9705A1C41CF9048500538489 /* Embed Frameworks */,
200199
3B06AD1E1E4923F5004D2608 /* Thin Binary */,
201200
9142C8359A9E84EE8C4098E7 /* [CP] Embed Pods Frameworks */,
201+
A2EA953805F1E55FFA6CE6C5 /* [CP] Copy Pods Resources */,
202202
);
203203
buildRules = (
204204
);
@@ -318,6 +318,23 @@
318318
shellPath = /bin/sh;
319319
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
320320
};
321+
A2EA953805F1E55FFA6CE6C5 /* [CP] Copy Pods Resources */ = {
322+
isa = PBXShellScriptBuildPhase;
323+
buildActionMask = 2147483647;
324+
files = (
325+
);
326+
inputFileListPaths = (
327+
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-input-files.xcfilelist",
328+
);
329+
name = "[CP] Copy Pods Resources";
330+
outputFileListPaths = (
331+
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-output-files.xcfilelist",
332+
);
333+
runOnlyForDeploymentPostprocessing = 0;
334+
shellPath = /bin/sh;
335+
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n";
336+
showEnvVarsInLog = 0;
337+
};
321338
B4ED5157EE5F3B4506EEA398 /* [CP] Check Pods Manifest.lock */ = {
322339
isa = PBXShellScriptBuildPhase;
323340
buildActionMask = 2147483647;
@@ -473,6 +490,7 @@
473490
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
474491
ENABLE_BITCODE = NO;
475492
INFOPLIST_FILE = Runner/Info.plist;
493+
IPHONEOS_DEPLOYMENT_TARGET = 16.6;
476494
LD_RUNPATH_SEARCH_PATHS = (
477495
"$(inherited)",
478496
"@executable_path/Frameworks",
@@ -655,6 +673,7 @@
655673
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
656674
ENABLE_BITCODE = NO;
657675
INFOPLIST_FILE = Runner/Info.plist;
676+
IPHONEOS_DEPLOYMENT_TARGET = 16.6;
658677
LD_RUNPATH_SEARCH_PATHS = (
659678
"$(inherited)",
660679
"@executable_path/Frameworks",
@@ -677,6 +696,7 @@
677696
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
678697
ENABLE_BITCODE = NO;
679698
INFOPLIST_FILE = Runner/Info.plist;
699+
IPHONEOS_DEPLOYMENT_TARGET = 16.6;
680700
LD_RUNPATH_SEARCH_PATHS = (
681701
"$(inherited)",
682702
"@executable_path/Frameworks",

ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
ignoresPersistentStateOnLaunch = "NO"
6060
debugDocumentVersioning = "YES"
6161
debugServiceExtension = "internal"
62+
enableGPUValidationMode = "1"
6263
allowLocationSimulation = "YES">
6364
<BuildableProductRunnable
6465
runnableDebuggingMode = "0">

ios/Runner/AppDelegate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import UIKit
22
import Flutter
33

4-
@UIApplicationMain
4+
@main
55
@objc class AppDelegate: FlutterAppDelegate {
66
override func application(
77
_ application: UIApplication,
Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2-
<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">
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<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">
3+
<device id="retina6_12" orientation="portrait" appearance="light"/>
34
<dependencies>
45
<deployment identifier="iOS"/>
5-
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="10085"/>
6+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="23506"/>
7+
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
68
</dependencies>
79
<scenes>
810
<!--Flutter View Controller-->
@@ -14,13 +16,14 @@
1416
<viewControllerLayoutGuide type="bottom" id="wfy-db-euE"/>
1517
</layoutGuides>
1618
<view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
17-
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
19+
<rect key="frame" x="0.0" y="0.0" width="393" height="852"/>
1820
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
19-
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
21+
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
2022
</view>
2123
</viewController>
2224
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
2325
</objects>
26+
<point key="canvasLocation" x="113" y="-2"/>
2427
</scene>
2528
</scenes>
2629
</document>

lib/features/auth/views/login_page.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import 'package:lottie/lottie.dart';
1111
import 'package:sliver_tools/sliver_tools.dart';
1212
import 'package:url_launcher/url_launcher.dart';
1313
import 'package:vibration/vibration.dart';
14+
import 'dart:io';
1415

1516
class LoginPage extends StatefulWidget {
1617
const LoginPage({super.key});
@@ -135,6 +136,8 @@ class _LoginPageState extends State<LoginPage> {
135136
style: Theme.of(context).textTheme.headlineMedium?.copyWith(
136137
fontFamily: GoogleFonts.lora().fontFamily,
137138
),
139+
textAlign:
140+
Platform.isIOS ? TextAlign.center : TextAlign.left,
138141
).animate().moveY(
139142
duration: 2000.ms,
140143
begin: -10,

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ dependencies:
9696
permission_handler: ^11.4.0
9797
url_launcher: ^6.3.1
9898
pretty_qr_code: ^3.3.0
99-
mobile_scanner: ^6.0.6
99+
mobile_scanner: ^7.0.0-beta.8
100100
in_app_update: ^4.2.3
101101

102102

0 commit comments

Comments
 (0)