diff --git a/ios/Flutter/Debug.xcconfig b/ios/Flutter/Debug.xcconfig index 592ceee..ec97fc6 100644 --- a/ios/Flutter/Debug.xcconfig +++ b/ios/Flutter/Debug.xcconfig @@ -1 +1,2 @@ +#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" #include "Generated.xcconfig" diff --git a/ios/Flutter/Release.xcconfig b/ios/Flutter/Release.xcconfig index 592ceee..c4855bf 100644 --- a/ios/Flutter/Release.xcconfig +++ b/ios/Flutter/Release.xcconfig @@ -1 +1,2 @@ +#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" #include "Generated.xcconfig" diff --git a/ios/Podfile b/ios/Podfile new file mode 100644 index 0000000..1e8c3c9 --- /dev/null +++ b/ios/Podfile @@ -0,0 +1,41 @@ +# Uncomment this line to define a global platform for your project +# platform :ios, '9.0' + +# CocoaPods analytics sends network stats synchronously affecting flutter build latency. +ENV['COCOAPODS_DISABLE_STATS'] = 'true' + +project 'Runner', { + 'Debug' => :debug, + 'Profile' => :release, + 'Release' => :release, +} + +def flutter_root + generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__) + unless File.exist?(generated_xcode_build_settings_path) + raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first" + end + + File.foreach(generated_xcode_build_settings_path) do |line| + matches = line.match(/FLUTTER_ROOT\=(.*)/) + return matches[1].strip if matches + end + raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get" +end + +require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) + +flutter_ios_podfile_setup + +target 'Runner' do + use_frameworks! + use_modular_headers! + + flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) +end + +post_install do |installer| + installer.pods_project.targets.each do |target| + flutter_additional_ios_build_settings(target) + end +end diff --git a/ios/Podfile.lock b/ios/Podfile.lock new file mode 100644 index 0000000..45a53d5 --- /dev/null +++ b/ios/Podfile.lock @@ -0,0 +1,22 @@ +PODS: + - Flutter (1.0.0) + - path_provider_ios (0.0.1): + - Flutter + +DEPENDENCIES: + - Flutter (from `Flutter`) + - path_provider_ios (from `.symlinks/plugins/path_provider_ios/ios`) + +EXTERNAL SOURCES: + Flutter: + :path: Flutter + path_provider_ios: + :path: ".symlinks/plugins/path_provider_ios/ios" + +SPEC CHECKSUMS: + Flutter: 50d75fe2f02b26cc09d224853bb45737f8b3214a + path_provider_ios: 7d7ce634493af4477d156294792024ec3485acd5 + +PODFILE CHECKSUM: aafe91acc616949ddb318b77800a7f51bffa2a4c + +COCOAPODS: 1.11.0 diff --git a/ios/Runner.xcodeproj/project.pbxproj b/ios/Runner.xcodeproj/project.pbxproj index 927b986..e3c969d 100644 --- a/ios/Runner.xcodeproj/project.pbxproj +++ b/ios/Runner.xcodeproj/project.pbxproj @@ -13,6 +13,7 @@ 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; + EE6B128967B14D533736EB06 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7BD02FB9F51F8BA2028E58CB /* Pods_Runner.framework */; }; /* End PBXBuildFile section */ /* Begin PBXCopyFilesBuildPhase section */ @@ -29,12 +30,16 @@ /* End PBXCopyFilesBuildPhase section */ /* Begin PBXFileReference section */ + 0D893E73F0BC4FFD3147AD3C /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; }; 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; + 4D9B219839C4AC1AB3A9361D /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; }; + 73C437DFC67F3E58EDD9952D /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; }; 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; + 7BD02FB9F51F8BA2028E58CB /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; @@ -49,12 +54,32 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( + EE6B128967B14D533736EB06 /* Pods_Runner.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ + 74D62A46EECAE88A8ADD84D5 /* Frameworks */ = { + isa = PBXGroup; + children = ( + 7BD02FB9F51F8BA2028E58CB /* Pods_Runner.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; + 84D11AD10467062DAAE35DAE /* Pods */ = { + isa = PBXGroup; + children = ( + 4D9B219839C4AC1AB3A9361D /* Pods-Runner.debug.xcconfig */, + 0D893E73F0BC4FFD3147AD3C /* Pods-Runner.release.xcconfig */, + 73C437DFC67F3E58EDD9952D /* Pods-Runner.profile.xcconfig */, + ); + name = Pods; + path = Pods; + sourceTree = ""; + }; 9740EEB11CF90186004384FC /* Flutter */ = { isa = PBXGroup; children = ( @@ -72,6 +97,8 @@ 9740EEB11CF90186004384FC /* Flutter */, 97C146F01CF9000F007C117D /* Runner */, 97C146EF1CF9000F007C117D /* Products */, + 84D11AD10467062DAAE35DAE /* Pods */, + 74D62A46EECAE88A8ADD84D5 /* Frameworks */, ); sourceTree = ""; }; @@ -105,12 +132,14 @@ isa = PBXNativeTarget; buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; buildPhases = ( + 4AE3226C0A60422BB88F9EFC /* [CP] Check Pods Manifest.lock */, 9740EEB61CF901F6004384FC /* Run Script */, 97C146EA1CF9000F007C117D /* Sources */, 97C146EB1CF9000F007C117D /* Frameworks */, 97C146EC1CF9000F007C117D /* Resources */, 9705A1C41CF9048500538489 /* Embed Frameworks */, 3B06AD1E1E4923F5004D2608 /* Thin Binary */, + 3DA149562B4D6C2F7506EEDC /* [CP] Embed Pods Frameworks */, ); buildRules = ( ); @@ -183,6 +212,45 @@ shellPath = /bin/sh; shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; }; + 3DA149562B4D6C2F7506EEDC /* [CP] Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist", + ); + name = "[CP] Embed Pods Frameworks"; + outputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; + 4AE3226C0A60422BB88F9EFC /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( + ); + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; 9740EEB61CF901F6004384FC /* Run Script */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; diff --git a/ios/Runner.xcworkspace/contents.xcworkspacedata b/ios/Runner.xcworkspace/contents.xcworkspacedata index 1d526a1..21a3cc1 100644 --- a/ios/Runner.xcworkspace/contents.xcworkspacedata +++ b/ios/Runner.xcworkspace/contents.xcworkspacedata @@ -4,4 +4,7 @@ + + diff --git a/lib/MesajTurleri/detail.dart b/lib/MesajTurleri/detail.dart new file mode 100644 index 0000000..e69de29 diff --git a/lib/MesajTurleri/sevgililer_gunu.dart b/lib/MesajTurleri/sevgililer_gunu.dart index 8a1a599..0349fe0 100644 --- a/lib/MesajTurleri/sevgililer_gunu.dart +++ b/lib/MesajTurleri/sevgililer_gunu.dart @@ -46,61 +46,60 @@ class _SevgililerGunuState extends State { return Scaffold( backgroundColor: Colors.greenAccent, body: Center( - child: Column( - children: [ - const SizedBox( - height: 150, - ), - Text("Sevgililer Günü", - style: GoogleFonts.lilitaOne( - textStyle: const TextStyle( - fontSize: 45, - ), - )), - Text("Mesajı", - style: GoogleFonts.lilitaOne( - textStyle: const TextStyle( - fontSize: 45, - ), - )), - ElevatedButton( - style: ElevatedButton.styleFrom( - primary: Colors.red, - onPrimary: Colors.white, - shadowColor: Colors.red, - elevation: 3, - shape: RoundedRectangleBorder( - borderRadius: BorderRadius.circular(32.0)), + child: SingleChildScrollView( + child: Column( + children: [ + const SizedBox( + height: 150, + ), + Center( + child: Text("Sevgililer Günü \nMesajı", + style: GoogleFonts.lilitaOne( + textStyle: const TextStyle( + fontSize: 45, + ), + )), ), - child: const Text( - "ÜRET", - style: TextStyle( - fontSize: 30, + + ElevatedButton( + style: ElevatedButton.styleFrom( + primary: Colors.red, + onPrimary: Colors.white, + shadowColor: Colors.red, + elevation: 3, + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular(32.0)), + ), + child: const Text( + "ÜRET", + style: TextStyle( + fontSize: 30, + ), ), + onPressed: sevgiliMesajYenile, ), - onPressed: sevgiliMesajYenile, - ), - const Spacer(), - Container( - padding: const EdgeInsets.symmetric(horizontal: 25), - height: 300, - width: double.infinity, - child: Padding( - padding: - const EdgeInsets.symmetric(vertical: 5.0, horizontal: 20.0), - child: SelectableText( - sevgiliSozler[sevgiliMesajNo], - style: const TextStyle( - fontSize: 25, + // const Spacer(), + Container( + padding: const EdgeInsets.symmetric(horizontal: 25), + height: 300, + width: double.infinity, + child: Padding( + padding: const EdgeInsets.symmetric( + vertical: 5.0, horizontal: 20.0), + child: SelectableText( + sevgiliSozler[sevgiliMesajNo], + style: const TextStyle( + fontSize: 25, + ), + textAlign: TextAlign.center, ), - textAlign: TextAlign.center, ), ), - ), - const SizedBox( - height: 70, - ) - ], + // const SizedBox( + // height: 70, + // ) + ], + ), ), ), ); diff --git a/lib/main.dart b/lib/main.dart index bcdfac0..feb3a2e 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -1,6 +1,5 @@ import 'package:flutter/material.dart'; -import 'package:google_fonts/google_fonts.dart'; -import 'package:soz_uret/mesaj_turu_secimi.dart'; +import 'pages/home.dart'; void main() { runApp(const MesajUret()); @@ -17,84 +16,3 @@ class MesajUret extends StatelessWidget { ); } } - -class Home extends StatefulWidget { - const Home({Key? key}) : super(key: key); - - @override - State createState() => _HomeState(); -} - -class _HomeState extends State { - @override - Widget build(BuildContext context) { - return Scaffold( - backgroundColor: Colors.greenAccent, - body: Center( - child: SingleChildScrollView( - child: Column( - mainAxisAlignment: MainAxisAlignment.start, - children: [ - const SizedBox( - height: 125, - ), - Row( - mainAxisAlignment: MainAxisAlignment.center, - children: [ - Text( - "Mesaj Üret", - style: GoogleFonts.dancingScript( - textStyle: const TextStyle(fontSize: 65), - ), - ), - ], - ), - const SizedBox( - height: 75, - ), - Stack( - children: [ - Container( - width: 500, - height: 70, - color: Colors.black12, - ), - Center( - child: Text( - "HOŞ GELDİNİZ", - style: GoogleFonts.lalezar( - fontStyle: FontStyle.italic, - textStyle: const TextStyle(fontSize: 50), - ), - ), - ), - ], - ), - const SizedBox( - height: 150, - ), - ElevatedButton( - style: ElevatedButton.styleFrom( - primary: Colors.black, - ), - child: const Text( - "BAŞLA", - style: TextStyle( - color: Colors.greenAccent, - fontSize: 40, - ), - ), - onPressed: () { - Navigator.push( - context, - MaterialPageRoute( - builder: (contex) => const MesajTuruSecimi())); - }, - ), - ], - ), - ), - ), - ); - } -} diff --git a/lib/pages/home.dart b/lib/pages/home.dart new file mode 100644 index 0000000..a5b8434 --- /dev/null +++ b/lib/pages/home.dart @@ -0,0 +1,77 @@ +import 'package:flutter/material.dart'; +import 'package:google_fonts/google_fonts.dart'; + +import '../mesaj_turu_secimi.dart'; + +class Home extends StatefulWidget { + const Home({Key? key}) : super(key: key); + + @override + State createState() => _HomeState(); +} + +class _HomeState extends State { + @override + Widget build(BuildContext context) { + return Scaffold( + backgroundColor: Colors.greenAccent, + body: Center( + child: SingleChildScrollView( + child: Column( + mainAxisAlignment: MainAxisAlignment.start, + children: [ + const SizedBox( + height: 125, + ), + Center( + child: Text( + "Mesaj Üret", + style: GoogleFonts.dancingScript( + textStyle: const TextStyle(fontSize: 65), + ), + ), + ), + const SizedBox( + height: 75, + ), + Container( + alignment: Alignment.center, + width: 500, + height: 70, + color: Colors.black12, + child: Text( + "HOŞ GELDİNİZ", + style: GoogleFonts.lalezar( + fontStyle: FontStyle.italic, + textStyle: const TextStyle(fontSize: 50), + ), + ), + ), + const SizedBox( + height: 150, + ), + ElevatedButton( + style: ElevatedButton.styleFrom( + primary: Colors.black, + ), + child: const Text( + "BAŞLA", + style: TextStyle( + color: Colors.greenAccent, + fontSize: 40, + ), + ), + onPressed: () { + Navigator.push( + context, + MaterialPageRoute( + builder: (contex) => const MesajTuruSecimi())); + }, + ), + ], + ), + ), + ), + ); + } +}