├── android ├── gradle.properties ├── app │ ├── src │ │ └── main │ │ │ ├── res │ │ │ ├── mipmap-hdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── values │ │ │ │ └── styles.xml │ │ │ └── drawable │ │ │ │ └── launch_background.xml │ │ │ ├── java │ │ │ └── com │ │ │ │ └── emrealtunbilek │ │ │ │ └── ilkflutterprojesi │ │ │ │ └── MainActivity.java │ │ │ └── AndroidManifest.xml │ └── build.gradle ├── gradle │ └── wrapper │ │ └── gradle-wrapper.properties ├── settings.gradle └── build.gradle ├── ios ├── Flutter │ ├── Debug.xcconfig │ ├── Release.xcconfig │ └── AppFrameworkInfo.plist ├── Runner │ ├── AppDelegate.h │ ├── Assets.xcassets │ │ ├── LaunchImage.imageset │ │ │ ├── LaunchImage.png │ │ │ ├── LaunchImage@2x.png │ │ │ ├── LaunchImage@3x.png │ │ │ ├── README.md │ │ │ └── Contents.json │ │ └── AppIcon.appiconset │ │ │ ├── Icon-App-20x20@1x.png │ │ │ ├── Icon-App-20x20@2x.png │ │ │ ├── Icon-App-20x20@3x.png │ │ │ ├── Icon-App-29x29@1x.png │ │ │ ├── Icon-App-29x29@2x.png │ │ │ ├── Icon-App-29x29@3x.png │ │ │ ├── Icon-App-40x40@1x.png │ │ │ ├── Icon-App-40x40@2x.png │ │ │ ├── Icon-App-40x40@3x.png │ │ │ ├── Icon-App-60x60@2x.png │ │ │ ├── Icon-App-60x60@3x.png │ │ │ ├── Icon-App-76x76@1x.png │ │ │ ├── Icon-App-76x76@2x.png │ │ │ ├── Icon-App-1024x1024@1x.png │ │ │ ├── Icon-App-83.5x83.5@2x.png │ │ │ └── Contents.json │ ├── main.m │ ├── AppDelegate.m │ ├── Info.plist │ └── Base.lproj │ │ ├── Main.storyboard │ │ └── LaunchScreen.storyboard ├── Runner.xcworkspace │ └── contents.xcworkspacedata └── Runner.xcodeproj │ ├── project.xcworkspace │ └── contents.xcworkspacedata │ ├── xcshareddata │ └── xcschemes │ │ └── Runner.xcscheme │ └── project.pbxproj ├── assets └── images │ ├── emre.jpg │ └── loading.gif ├── .metadata ├── README.md ├── lib ├── ui │ ├── my_app.dart │ ├── date_time_picker.dart │ ├── liste_dersleri.dart │ ├── varsayilan_uygulama.dart │ ├── row_column_odev.dart │ ├── etkin_liste_ornek.dart │ ├── text_field_ozellikleri.dart │ ├── form_textformfield_ornek.dart │ ├── grid_view_kullanimi.dart │ ├── diger_form_elemanlari.dart │ ├── stepper_kullanimi.dart │ ├── custom_scroll_ve_slivers.dart │ ├── resim_ve_buton_turleri.dart │ └── navigasyon_islemleri.dart └── main.dart ├── .gitignore └── pubspec.yaml /android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | -------------------------------------------------------------------------------- /ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /assets/images/emre.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrealtunbilek/flutter_dersleri/HEAD/assets/images/emre.jpg -------------------------------------------------------------------------------- /assets/images/loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrealtunbilek/flutter_dersleri/HEAD/assets/images/loading.gif -------------------------------------------------------------------------------- /ios/Runner/AppDelegate.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @interface AppDelegate : FlutterAppDelegate 5 | 6 | @end 7 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrealtunbilek/flutter_dersleri/HEAD/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrealtunbilek/flutter_dersleri/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrealtunbilek/flutter_dersleri/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrealtunbilek/flutter_dersleri/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrealtunbilek/flutter_dersleri/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrealtunbilek/flutter_dersleri/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrealtunbilek/flutter_dersleri/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrealtunbilek/flutter_dersleri/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrealtunbilek/flutter_dersleri/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrealtunbilek/flutter_dersleri/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrealtunbilek/flutter_dersleri/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrealtunbilek/flutter_dersleri/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrealtunbilek/flutter_dersleri/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrealtunbilek/flutter_dersleri/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrealtunbilek/flutter_dersleri/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrealtunbilek/flutter_dersleri/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrealtunbilek/flutter_dersleri/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrealtunbilek/flutter_dersleri/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrealtunbilek/flutter_dersleri/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrealtunbilek/flutter_dersleri/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrealtunbilek/flutter_dersleri/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrealtunbilek/flutter_dersleri/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrealtunbilek/flutter_dersleri/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner/main.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | #import "AppDelegate.h" 4 | 5 | int main(int argc, char* argv[]) { 6 | @autoreleasepool { 7 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Fri Jun 23 08:50:38 CEST 2017 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-all.zip 7 | -------------------------------------------------------------------------------- /.metadata: -------------------------------------------------------------------------------- 1 | # This file tracks properties of this Flutter project. 2 | # Used by Flutter tool to assess capabilities and perform upgrades etc. 3 | # 4 | # This file should be version controlled and should not be manually edited. 5 | 6 | version: 7 | revision: 5391447fae6209bb21a89e6a5a6583cac1af9b4b 8 | channel: stable 9 | 10 | project_type: app 11 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md: -------------------------------------------------------------------------------- 1 | # Launch Screen Assets 2 | 3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory. 4 | 5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner/AppDelegate.m: -------------------------------------------------------------------------------- 1 | #include "AppDelegate.h" 2 | #include "GeneratedPluginRegistrant.h" 3 | 4 | @implementation AppDelegate 5 | 6 | - (BOOL)application:(UIApplication *)application 7 | didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 8 | [GeneratedPluginRegistrant registerWithRegistry:self]; 9 | // Override point for customization after application launch. 10 | return [super application:application didFinishLaunchingWithOptions:launchOptions]; 11 | } 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/emrealtunbilek/ilkflutterprojesi/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.emrealtunbilek.ilkflutterprojesi; 2 | 3 | import android.os.Bundle; 4 | import io.flutter.app.FlutterActivity; 5 | import io.flutter.plugins.GeneratedPluginRegistrant; 6 | 7 | public class MainActivity extends FlutterActivity { 8 | @Override 9 | protected void onCreate(Bundle savedInstanceState) { 10 | super.onCreate(savedInstanceState); 11 | GeneratedPluginRegistrant.registerWith(this); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchImage.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchImage@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "LaunchImage@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | 3 | def flutterProjectRoot = rootProject.projectDir.parentFile.toPath() 4 | 5 | def plugins = new Properties() 6 | def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins') 7 | if (pluginsFile.exists()) { 8 | pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) } 9 | } 10 | 11 | plugins.each { name, path -> 12 | def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile() 13 | include ":$name" 14 | project(":$name").projectDir = pluginDirectory 15 | } 16 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | repositories { 3 | google() 4 | jcenter() 5 | } 6 | 7 | dependencies { 8 | classpath 'com.android.tools.build:gradle:3.2.1' 9 | } 10 | } 11 | 12 | allprojects { 13 | repositories { 14 | google() 15 | jcenter() 16 | } 17 | } 18 | 19 | rootProject.buildDir = '../build' 20 | subprojects { 21 | project.buildDir = "${rootProject.buildDir}/${project.name}" 22 | } 23 | subprojects { 24 | project.evaluationDependsOn(':app') 25 | } 26 | 27 | task clean(type: Delete) { 28 | delete rootProject.buildDir 29 | } 30 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # ilk_flutter_projesi 2 | 3 | Flutter Dersleri by Emre Altunbilek 4 | 5 | ## Getting Started 6 | 7 | This project is a starting point for a Flutter application. 8 | 9 | A few resources to get you started if this is your first Flutter project: 10 | 11 | - [Lab: Write your first Flutter app](https://flutter.io/docs/get-started/codelab) 12 | - [Cookbook: Useful Flutter samples](https://flutter.io/docs/cookbook) 13 | 14 | For help getting started with Flutter, view our 15 | [online documentation](https://flutter.io/docs), which offers tutorials, 16 | samples, guidance on mobile development, and a full API reference. 17 | -------------------------------------------------------------------------------- /ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | App 9 | CFBundleIdentifier 10 | io.flutter.flutter.app 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | App 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | MinimumOSVersion 24 | 8.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /lib/ui/my_app.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'row_column_odev.dart'; 3 | 4 | 5 | class MyApp extends StatelessWidget{ 6 | @override 7 | Widget build(BuildContext context) { 8 | 9 | return MaterialApp( 10 | debugShowCheckedModeBanner: false, 11 | theme: ThemeData(primarySwatch: Colors.cyan, accentColor: Colors.orange), 12 | home: Scaffold( 13 | appBar: AppBar( 14 | title: Text( 15 | "Flutter Dersleri", 16 | style: TextStyle(fontSize: 24.0, color: Colors.white), 17 | ), 18 | ), 19 | floatingActionButton: FloatingActionButton( 20 | onPressed: () { 21 | debugPrint("FAB tıklandı"); 22 | }, 23 | //backgroundColor: Colors.green, 24 | child: Icon( 25 | Icons.access_alarms, 26 | color: Colors.white, 27 | ), 28 | ), 29 | body: RowColumnOdevCozumu() 30 | ), 31 | ); 32 | } 33 | 34 | 35 | 36 | } -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.lock 4 | *.log 5 | *.pyc 6 | *.swp 7 | .DS_Store 8 | .atom/ 9 | .buildlog/ 10 | .history 11 | .svn/ 12 | 13 | # IntelliJ related 14 | *.iml 15 | *.ipr 16 | *.iws 17 | .idea/ 18 | 19 | # Visual Studio Code related 20 | .vscode/ 21 | 22 | # Flutter/Dart/Pub related 23 | **/doc/api/ 24 | .dart_tool/ 25 | .flutter-plugins 26 | .packages 27 | .pub-cache/ 28 | .pub/ 29 | build/ 30 | 31 | # Android related 32 | **/android/**/gradle-wrapper.jar 33 | **/android/.gradle 34 | **/android/captures/ 35 | **/android/gradlew 36 | **/android/gradlew.bat 37 | **/android/local.properties 38 | **/android/**/GeneratedPluginRegistrant.java 39 | 40 | # iOS/XCode related 41 | **/ios/**/*.mode1v3 42 | **/ios/**/*.mode2v3 43 | **/ios/**/*.moved-aside 44 | **/ios/**/*.pbxuser 45 | **/ios/**/*.perspectivev3 46 | **/ios/**/*sync/ 47 | **/ios/**/.sconsign.dblite 48 | **/ios/**/.tags* 49 | **/ios/**/.vagrant/ 50 | **/ios/**/DerivedData/ 51 | **/ios/**/Icon? 52 | **/ios/**/Pods/ 53 | **/ios/**/.symlinks/ 54 | **/ios/**/profile 55 | **/ios/**/xcuserdata 56 | **/ios/.generated/ 57 | **/ios/Flutter/App.framework 58 | **/ios/Flutter/Flutter.framework 59 | **/ios/Flutter/Generated.xcconfig 60 | **/ios/Flutter/app.flx 61 | **/ios/Flutter/app.zip 62 | **/ios/Flutter/flutter_assets/ 63 | **/ios/ServiceDefinitions.json 64 | **/ios/Runner/GeneratedPluginRegistrant.* 65 | 66 | # Exceptions to above rules. 67 | !**/ios/**/default.mode1v3 68 | !**/ios/**/default.mode2v3 69 | !**/ios/**/default.pbxuser 70 | !**/ios/**/default.perspectivev3 71 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages 72 | -------------------------------------------------------------------------------- /ios/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ilk_flutter_projesi 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | $(FLUTTER_BUILD_NAME) 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | $(FLUTTER_BUILD_NUMBER) 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UISupportedInterfaceOrientations 30 | 31 | UIInterfaceOrientationPortrait 32 | UIInterfaceOrientationLandscapeLeft 33 | UIInterfaceOrientationLandscapeRight 34 | 35 | UISupportedInterfaceOrientations~ipad 36 | 37 | UIInterfaceOrientationPortrait 38 | UIInterfaceOrientationPortraitUpsideDown 39 | UIInterfaceOrientationLandscapeLeft 40 | UIInterfaceOrientationLandscapeRight 41 | 42 | UIViewControllerBasedStatusBarAppearance 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:ilk_flutter_projesi/ui/custom_scroll_ve_slivers.dart'; 3 | import 'package:ilk_flutter_projesi/ui/date_time_picker.dart'; 4 | import 'package:ilk_flutter_projesi/ui/diger_form_elemanlari.dart'; 5 | import 'package:ilk_flutter_projesi/ui/form_textformfield_ornek.dart'; 6 | import 'package:ilk_flutter_projesi/ui/stepper_kullanimi.dart'; 7 | import 'package:ilk_flutter_projesi/ui/text_field_ozellikleri.dart'; 8 | import 'package:ilk_flutter_projesi/ui/navigasyon_islemleri.dart'; 9 | import 'ui/grid_view_kullanimi.dart'; 10 | 11 | 12 | void main() { 13 | runApp(MaterialApp( 14 | title: "Flutter Dersleri", 15 | 16 | initialRoute: "/stepper", 17 | 18 | routes: { 19 | '/' : (context) => NavigasyonIslemleri(), 20 | '/textFieldIslemleri' : (context) => TextFieldIslemleri(), 21 | '/textFormField' : (context) => FormveTextFormField(), 22 | '/digerFormElemanlari' : (context) => DigerFormElemanlari(), 23 | '/tarihSaat' : (context) => TarihSaatOrnek(), 24 | '/stepper' : (context) => StepperOrnek(), 25 | '/CPage' : (context) => CSayfasi(), 26 | '/DPage' : (context) => DSayfasi(), 27 | '/GPage' : (context) => GSayfasi(), 28 | '/FPage' : (context) => FSayfasi(), 29 | '/CPage/DPage' : (context) => DSayfasi(), 30 | '/CPage/DPage/FPage' : (BuildContext context) => FSayfasi(), 31 | '/listeSayfasi' : (context) => ListeSinifi(), 32 | }, 33 | 34 | onGenerateRoute: (RouteSettings settings) { 35 | List pathElemanlari = settings.name.split("/"); // /detay/$index /urun/detay/id 36 | if(pathElemanlari[1] == 'detay'){ 37 | return MaterialPageRoute(builder: (context)=>ListeDetay(int.parse(pathElemanlari[2]))); 38 | } 39 | }, 40 | 41 | onUnknownRoute: (RouteSettings settings) => MaterialPageRoute(builder: (context) => DSayfasi(),), 42 | 43 | debugShowCheckedModeBanner: false, 44 | theme: ThemeData( 45 | primarySwatch: Colors.orange, 46 | ), 47 | //home: NavigasyonIslemleri(), 48 | )); 49 | } 50 | 51 | -------------------------------------------------------------------------------- /android/app/build.gradle: -------------------------------------------------------------------------------- 1 | def localProperties = new Properties() 2 | def localPropertiesFile = rootProject.file('local.properties') 3 | if (localPropertiesFile.exists()) { 4 | localPropertiesFile.withReader('UTF-8') { reader -> 5 | localProperties.load(reader) 6 | } 7 | } 8 | 9 | def flutterRoot = localProperties.getProperty('flutter.sdk') 10 | if (flutterRoot == null) { 11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") 12 | } 13 | 14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode') 15 | if (flutterVersionCode == null) { 16 | flutterVersionCode = '1' 17 | } 18 | 19 | def flutterVersionName = localProperties.getProperty('flutter.versionName') 20 | if (flutterVersionName == null) { 21 | flutterVersionName = '1.0' 22 | } 23 | 24 | apply plugin: 'com.android.application' 25 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" 26 | 27 | android { 28 | compileSdkVersion 27 29 | 30 | lintOptions { 31 | disable 'InvalidPackage' 32 | } 33 | 34 | defaultConfig { 35 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 36 | applicationId "com.emrealtunbilek.ilkflutterprojesi" 37 | minSdkVersion 16 38 | targetSdkVersion 27 39 | versionCode flutterVersionCode.toInteger() 40 | versionName flutterVersionName 41 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 42 | } 43 | 44 | buildTypes { 45 | release { 46 | // TODO: Add your own signing config for the release build. 47 | // Signing with the debug keys for now, so `flutter run --release` works. 48 | signingConfig signingConfigs.debug 49 | } 50 | } 51 | } 52 | 53 | flutter { 54 | source '../..' 55 | } 56 | 57 | dependencies { 58 | testImplementation 'junit:junit:4.12' 59 | androidTestImplementation 'com.android.support.test:runner:1.0.2' 60 | androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' 61 | } 62 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 8 | 9 | 10 | 15 | 19 | 26 | 30 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /lib/ui/date_time_picker.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:date_format/date_format.dart'; 3 | 4 | class TarihSaatOrnek extends StatefulWidget { 5 | @override 6 | _TarihSaatOrnekState createState() => _TarihSaatOrnekState(); 7 | } 8 | 9 | class _TarihSaatOrnekState extends State { 10 | @override 11 | Widget build(BuildContext context) { 12 | 13 | DateTime suan=DateTime.now(); 14 | DateTime ucAyOncesi=DateTime(2019, suan.month-3); 15 | DateTime yirmiGunSonrasi=DateTime(2019, 1, suan.day+20); 16 | 17 | TimeOfDay suankiSaat=TimeOfDay.now(); 18 | 19 | 20 | return Scaffold( 21 | appBar: AppBar( 22 | title: Text("Date time picker"), 23 | ), 24 | body: Center( 25 | child: Column( 26 | children: [ 27 | RaisedButton( 28 | child: Text("Tarih Sec"), 29 | color: Colors.green, 30 | onPressed: () { 31 | showDatePicker(context: context, initialDate: suan, firstDate: ucAyOncesi, lastDate: yirmiGunSonrasi) 32 | .then((secilenTarih){ 33 | debugPrint(secilenTarih.toString()); 34 | debugPrint(secilenTarih.toIso8601String()); 35 | debugPrint(secilenTarih.millisecondsSinceEpoch.toString()); 36 | debugPrint(secilenTarih.toUtc().toIso8601String()); 37 | debugPrint(secilenTarih.add(Duration(days: 20)).toString()); 38 | var yeniDate = DateTime.parse(secilenTarih.toUtc().toIso8601String()); 39 | debugPrint(yeniDate.toIso8601String()); 40 | 41 | print(formatDate(secilenTarih, [yyyy, '-', mm, '-', dd])); 42 | print(formatDate(secilenTarih, [dd, '-', mm, '-', yyyy])); 43 | 44 | 45 | }); 46 | }, 47 | ), 48 | RaisedButton( 49 | child: Text("Saat Sec"), 50 | color: Colors.blue, 51 | onPressed: () { 52 | showTimePicker(context: context, initialTime: suankiSaat).then((secilenSaat){ 53 | debugPrint(secilenSaat.format(context)); 54 | debugPrint(secilenSaat.hour.toString() + " : " + secilenSaat.minute.toString()); 55 | }); 56 | }, 57 | ), 58 | ], 59 | ), 60 | ), 61 | ); 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /lib/ui/liste_dersleri.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class ListeKonuAnlatimi extends StatelessWidget { 4 | //Liste için veri kaynağı oluştur 5 | List listeNumaralari = List.generate(300, (index) => index); 6 | List listeAltBaslik = 7 | List.generate(300, (index) => "Liste elemanı alt başlık $index"); 8 | 9 | @override 10 | Widget build(BuildContext context) { 11 | return ListView( 12 | children: listeNumaralari 13 | .map( 14 | (oankiEleman) => Column( 15 | children: [ 16 | Container( 17 | child: Card( 18 | color: Colors.teal.shade100, 19 | margin: EdgeInsets.all(10), 20 | elevation: 10, 21 | child: ListTile( 22 | leading: CircleAvatar( 23 | child: Icon(Icons.android), 24 | radius: 12, 25 | ), 26 | title: Text("Liste eleman başlık $oankiEleman"), 27 | subtitle: Text(listeAltBaslik[oankiEleman]), 28 | trailing: Icon(Icons.add_circle), 29 | ), 30 | ), 31 | ), 32 | Divider( 33 | color: Colors.orange, 34 | height: 0, 35 | indent: 20, 36 | ), 37 | ], 38 | ), 39 | ) 40 | .toList(), 41 | ); 42 | } 43 | } 44 | /* 45 | [ 46 | Column( 47 | children: [ 48 | Container( 49 | child: Card( 50 | color: Colors.teal.shade100, 51 | margin: EdgeInsets.all(10), 52 | elevation: 10, 53 | child: ListTile( 54 | leading: CircleAvatar( 55 | child: Icon(Icons.android), 56 | radius: 12, 57 | ), 58 | title: Text("Liste eleman başlık"), 59 | subtitle: Text("Liste elemanı alt başlık"), 60 | trailing: Icon(Icons.add_circle), 61 | ), 62 | ), 63 | ), 64 | Divider( 65 | color: Colors.orange, 66 | height: 0, 67 | indent: 20, 68 | ), 69 | ], 70 | ), 71 | ], 72 | */ 73 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: ilk_flutter_projesi 2 | description: Flutter Dersleri by Emre Altunbilek 3 | 4 | # The following defines the version and build number for your application. 5 | # A version number is three numbers separated by dots, like 1.2.43 6 | # followed by an optional build number separated by a +. 7 | # Both the version and the builder number may be overridden in flutter 8 | # build by specifying --build-name and --build-number, respectively. 9 | # Read more about versioning at semver.org. 10 | version: 1.0.0+1 11 | 12 | environment: 13 | sdk: ">=2.0.0-dev.68.0 <3.0.0" 14 | 15 | dependencies: 16 | flutter: 17 | sdk: flutter 18 | 19 | # The following adds the Cupertino Icons font to your application. 20 | # Use with the CupertinoIcons class for iOS style icons. 21 | cupertino_icons: ^0.1.2 22 | fluttertoast: ^2.2.1 23 | date_format: ^1.0.5 24 | 25 | dev_dependencies: 26 | flutter_test: 27 | sdk: flutter 28 | 29 | 30 | # For information on the generic Dart part of this file, see the 31 | # following page: https://www.dartlang.org/tools/pub/pubspec 32 | 33 | # The following section is specific to Flutter. 34 | flutter: 35 | 36 | # The following line ensures that the Material Icons font is 37 | # included with your application, so that you can use the icons in 38 | # the material Icons class. 39 | uses-material-design: true 40 | 41 | # To add assets to your application, add an assets section, like this: 42 | assets: 43 | - assets/images/emre.jpg 44 | - assets/images/loading.gif 45 | 46 | # - images/a_dot_ham.jpeg 47 | 48 | # An image asset can refer to one or more resolution-specific "variants", see 49 | # https://flutter.io/assets-and-images/#resolution-aware. 50 | 51 | # For details regarding adding assets from package dependencies, see 52 | # https://flutter.io/assets-and-images/#from-packages 53 | 54 | # To add custom fonts to your application, add a fonts section here, 55 | # in this "flutter" section. Each entry in this list should have a 56 | # "family" key with the font family name, and a "fonts" key with a 57 | # list giving the asset and other descriptors for the font. For 58 | # example: 59 | # fonts: 60 | # - family: Schyler 61 | # fonts: 62 | # - asset: fonts/Schyler-Regular.ttf 63 | # - asset: fonts/Schyler-Italic.ttf 64 | # style: italic 65 | # - family: Trajan Pro 66 | # fonts: 67 | # - asset: fonts/TrajanPro.ttf 68 | # - asset: fonts/TrajanPro_Bold.ttf 69 | # weight: 700 70 | # 71 | # For details regarding fonts from package dependencies, 72 | # see https://flutter.io/custom-fonts/#from-packages 73 | -------------------------------------------------------------------------------- /lib/ui/varsayilan_uygulama.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class MyApp extends StatelessWidget { 4 | @override 5 | Widget build(BuildContext context) { 6 | return MaterialApp( 7 | theme: ThemeData( 8 | /* textTheme: TextTheme( 9 | display2: TextStyle(fontSize: 12), 10 | ),*/ 11 | 12 | primarySwatch: Colors.blue, 13 | ), 14 | title: "MaterialApp Title", 15 | home: MyHomePage( 16 | title: "My Home Page2", 17 | ), 18 | ); 19 | } 20 | } 21 | 22 | class MyHomePage extends StatefulWidget { 23 | final String title; 24 | int sayac = 0; 25 | 26 | 27 | MyHomePage({this.title}){ 28 | debugPrint("MyHomePage Statefull Widger constructor"); 29 | } 30 | 31 | @override 32 | State createState() { 33 | debugPrint("MyHomePage create state tetiklendi"); 34 | return _MyHomePageState(); 35 | } 36 | } 37 | 38 | class _MyHomePageState extends State { 39 | 40 | _MyHomePageState(){ 41 | debugPrint("MyHomePageState constructor tetiklendi"); 42 | } 43 | 44 | @override 45 | Widget build(BuildContext context) { 46 | debugPrint("MyHomePageState build methodu tetiklendi"); 47 | // TODO: implement build 48 | return Scaffold( 49 | appBar: AppBar( 50 | title: Text(widget.title), 51 | ), 52 | floatingActionButton: FloatingActionButton( 53 | onPressed: () { 54 | setState(() { 55 | _sayacDegeriniArtir(); 56 | debugPrint("sayac degeri arttırıldı set state cagrıldı"); 57 | }); 58 | }, 59 | child: Icon(Icons.add), 60 | ), 61 | body: Center( 62 | child: Column( 63 | mainAxisAlignment: MainAxisAlignment.center, 64 | children: [ 65 | RaisedButton(child: Text("Artır"), color: Colors.green, onPressed: (){ 66 | _sayacDegeriniArtir(); 67 | },), 68 | Text( 69 | "${widget.sayac}", 70 | style: Theme.of(context).textTheme.display2.copyWith( 71 | color: widget.sayac <= 0 ? Colors.red : Colors.green 72 | ) 73 | 74 | ), 75 | RaisedButton(child: Text("Azalt"), color: Colors.red, onPressed: _sayacDegeriniAzalt,), 76 | ], 77 | ), 78 | ), 79 | ); 80 | } 81 | 82 | void _sayacDegeriniArtir() { 83 | setState(() { 84 | widget.sayac++; 85 | debugPrint("Sayac degeri : ${widget.sayac}"); 86 | }); 87 | 88 | } 89 | void _sayacDegeriniAzalt() { 90 | setState(() { 91 | widget.sayac--; 92 | debugPrint("Sayac degeri : ${widget.sayac}"); 93 | }); 94 | 95 | } 96 | } 97 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "20x20", 5 | "idiom" : "iphone", 6 | "filename" : "Icon-App-20x20@2x.png", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "size" : "20x20", 11 | "idiom" : "iphone", 12 | "filename" : "Icon-App-20x20@3x.png", 13 | "scale" : "3x" 14 | }, 15 | { 16 | "size" : "29x29", 17 | "idiom" : "iphone", 18 | "filename" : "Icon-App-29x29@1x.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "29x29", 23 | "idiom" : "iphone", 24 | "filename" : "Icon-App-29x29@2x.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "29x29", 29 | "idiom" : "iphone", 30 | "filename" : "Icon-App-29x29@3x.png", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "size" : "40x40", 35 | "idiom" : "iphone", 36 | "filename" : "Icon-App-40x40@2x.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "40x40", 41 | "idiom" : "iphone", 42 | "filename" : "Icon-App-40x40@3x.png", 43 | "scale" : "3x" 44 | }, 45 | { 46 | "size" : "60x60", 47 | "idiom" : "iphone", 48 | "filename" : "Icon-App-60x60@2x.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "60x60", 53 | "idiom" : "iphone", 54 | "filename" : "Icon-App-60x60@3x.png", 55 | "scale" : "3x" 56 | }, 57 | { 58 | "size" : "20x20", 59 | "idiom" : "ipad", 60 | "filename" : "Icon-App-20x20@1x.png", 61 | "scale" : "1x" 62 | }, 63 | { 64 | "size" : "20x20", 65 | "idiom" : "ipad", 66 | "filename" : "Icon-App-20x20@2x.png", 67 | "scale" : "2x" 68 | }, 69 | { 70 | "size" : "29x29", 71 | "idiom" : "ipad", 72 | "filename" : "Icon-App-29x29@1x.png", 73 | "scale" : "1x" 74 | }, 75 | { 76 | "size" : "29x29", 77 | "idiom" : "ipad", 78 | "filename" : "Icon-App-29x29@2x.png", 79 | "scale" : "2x" 80 | }, 81 | { 82 | "size" : "40x40", 83 | "idiom" : "ipad", 84 | "filename" : "Icon-App-40x40@1x.png", 85 | "scale" : "1x" 86 | }, 87 | { 88 | "size" : "40x40", 89 | "idiom" : "ipad", 90 | "filename" : "Icon-App-40x40@2x.png", 91 | "scale" : "2x" 92 | }, 93 | { 94 | "size" : "76x76", 95 | "idiom" : "ipad", 96 | "filename" : "Icon-App-76x76@1x.png", 97 | "scale" : "1x" 98 | }, 99 | { 100 | "size" : "76x76", 101 | "idiom" : "ipad", 102 | "filename" : "Icon-App-76x76@2x.png", 103 | "scale" : "2x" 104 | }, 105 | { 106 | "size" : "83.5x83.5", 107 | "idiom" : "ipad", 108 | "filename" : "Icon-App-83.5x83.5@2x.png", 109 | "scale" : "2x" 110 | }, 111 | { 112 | "size" : "1024x1024", 113 | "idiom" : "ios-marketing", 114 | "filename" : "Icon-App-1024x1024@1x.png", 115 | "scale" : "1x" 116 | } 117 | ], 118 | "info" : { 119 | "version" : 1, 120 | "author" : "xcode" 121 | } 122 | } 123 | -------------------------------------------------------------------------------- /lib/ui/row_column_odev.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class RowColumnOdevCozumu extends StatelessWidget{ 4 | @override 5 | Widget build(BuildContext context) { 6 | 7 | return Column( 8 | mainAxisSize: MainAxisSize.max, 9 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 10 | crossAxisAlignment: CrossAxisAlignment.start, 11 | children: [ 12 | Row( 13 | mainAxisSize: MainAxisSize.max, 14 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 15 | children: [ 16 | Container( 17 | padding: EdgeInsets.all(20), 18 | margin: EdgeInsets.all(2), 19 | color: Colors.red.shade100, 20 | child: Text("D",style: TextStyle(fontSize: 24),), 21 | ), 22 | Container( 23 | padding: EdgeInsets.all(20), 24 | margin: EdgeInsets.all(2), 25 | color: Colors.red.shade300, 26 | child: Text("A",style: TextStyle(fontSize: 24),), 27 | ), 28 | Container( 29 | padding: EdgeInsets.all(20), 30 | margin: EdgeInsets.all(2), 31 | color: Colors.red.shade500, 32 | child: Text("R",style: TextStyle(fontSize: 24),), 33 | ), 34 | Container( 35 | padding: EdgeInsets.all(20), 36 | margin: EdgeInsets.all(2), 37 | color: Colors.red.shade700, 38 | child: Text("T",style: TextStyle(fontSize: 24),), 39 | ), 40 | ], 41 | ), 42 | Container( 43 | padding: EdgeInsets.all(20), 44 | margin: EdgeInsets.all(2), 45 | color: Colors.red.shade200, 46 | child: Text("E",style: TextStyle(fontSize: 24),), 47 | ), 48 | Container( 49 | padding: EdgeInsets.all(20), 50 | margin: EdgeInsets.all(2), 51 | color: Colors.red.shade300, 52 | child: Text("R",style: TextStyle(fontSize: 24),), 53 | ), 54 | Container( 55 | padding: EdgeInsets.all(20), 56 | margin: EdgeInsets.all(2), 57 | color: Colors.red.shade400, 58 | child: Text("S",style: TextStyle(fontSize: 24),), 59 | ), 60 | Container( 61 | padding: EdgeInsets.all(20), 62 | margin: EdgeInsets.all(2), 63 | color: Colors.red.shade500, 64 | child: Text("L",style: TextStyle(fontSize: 24),), 65 | ), 66 | Container( 67 | padding: EdgeInsets.all(20), 68 | margin: EdgeInsets.all(2), 69 | color: Colors.red.shade600, 70 | child: Text("E",style: TextStyle(fontSize: 24),), 71 | ), 72 | Container( 73 | padding: EdgeInsets.all(20), 74 | margin: EdgeInsets.all(2), 75 | color: Colors.red.shade700, 76 | child: Text("R",style: TextStyle(fontSize: 24),), 77 | ), 78 | Container( 79 | padding: EdgeInsets.fromLTRB(23, 20, 23, 20), 80 | margin: EdgeInsets.all(2), 81 | color: Colors.red.shade800, 82 | child: Text("I",style: TextStyle(fontSize: 24),), 83 | ), 84 | ], 85 | ); 86 | } 87 | 88 | 89 | 90 | } -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 31 | 32 | 33 | 34 | 40 | 41 | 42 | 43 | 44 | 45 | 56 | 58 | 64 | 65 | 66 | 67 | 68 | 69 | 75 | 77 | 83 | 84 | 85 | 86 | 88 | 89 | 92 | 93 | 94 | -------------------------------------------------------------------------------- /lib/ui/etkin_liste_ornek.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:fluttertoast/fluttertoast.dart'; 3 | 4 | class EtkinListeOrnek extends StatelessWidget { 5 | List tumOgrenciler = []; 6 | 7 | @override 8 | Widget build(BuildContext context) { 9 | ogrenciVerileriniGetir(); 10 | 11 | return ListView.separated( 12 | separatorBuilder: (context, index) { 13 | if (index % 4 == 0 && index != 0) { 14 | return Container( 15 | height: 2, 16 | color: Colors.blue, 17 | margin: EdgeInsets.all(40), 18 | ); 19 | } else { 20 | return Container(); 21 | } 22 | }, 23 | itemCount: 20, 24 | //itemBuilder: (context, index) => Card(), 25 | itemBuilder: (context, index) { 26 | return Card( 27 | color: 28 | index % 2 == 0 ? Colors.red.shade200 : Colors.orange.shade200, 29 | elevation: 4, 30 | child: ListTile( 31 | leading: Icon(Icons.perm_contact_calendar), 32 | title: Text(tumOgrenciler[index]._isim), 33 | subtitle: Text(tumOgrenciler[index]._aciklama), 34 | trailing: Icon(Icons.add), 35 | onTap: () { 36 | debugPrint(tumOgrenciler[index].toString()); 37 | toastMesajGoster(index, false); 38 | alertDialogGoster(context, index); 39 | }, 40 | onLongPress: () { 41 | debugPrint("Uzun basılan eleman $index"); 42 | toastMesajGoster(index, true); 43 | }, 44 | ), 45 | ); 46 | }); 47 | } 48 | 49 | void ogrenciVerileriniGetir() { 50 | tumOgrenciler = List.generate( 51 | 300, 52 | (index) => Ogrenci("Ogrenci $index Adı", "Ogrenci $index açıklaması", 53 | index % 2 == 0 ? true : false)); 54 | } 55 | 56 | void alertDialogGoster(BuildContext ctx, int index) { 57 | showDialog( 58 | context: ctx, 59 | barrierDismissible: false, 60 | builder: (ctx) { 61 | return AlertDialog( 62 | title: Text("Alert Dialog Başlığı"), 63 | content: SingleChildScrollView( 64 | child: ListBody( 65 | children: [ 66 | Text("Öğrenci adı : ${tumOgrenciler[index]._isim}"), 67 | Text("Öğrenci adı : ${tumOgrenciler[index]._aciklama}"), 68 | ], 69 | ) 70 | ), 71 | actions: [ 72 | ButtonTheme.bar( 73 | child: ButtonBar( 74 | children: [ 75 | FlatButton( 76 | child: Text("Tamam"), 77 | onPressed: () { 78 | Navigator.of(ctx).pop(); 79 | }, 80 | ), 81 | FlatButton( 82 | child: Text("Kapat"), 83 | onPressed: () { 84 | Navigator.of(ctx).pop(); 85 | }, 86 | ) 87 | ], 88 | ), 89 | ), 90 | ], 91 | ); 92 | }); 93 | } 94 | 95 | void toastMesajGoster(int index, bool uzunBasilma) { 96 | Fluttertoast.showToast( 97 | msg: uzunBasilma 98 | ? "uzun basildi :" + tumOgrenciler[index].toString() 99 | : "Tek tıklama " + tumOgrenciler[index].toString(), 100 | toastLength: Toast.LENGTH_LONG, 101 | gravity: ToastGravity.BOTTOM, 102 | timeInSecForIos: 1, 103 | textColor: Colors.black); 104 | } 105 | } 106 | 107 | class Ogrenci { 108 | String _isim; 109 | String _aciklama; 110 | bool _cinsiyet; 111 | 112 | Ogrenci(this._isim, this._aciklama, this._cinsiyet); 113 | 114 | @override 115 | String toString() { 116 | // TODO: implement toString 117 | return "Secilen öğrenci adı:$_isim açiklaması:$_aciklama"; 118 | } 119 | } 120 | -------------------------------------------------------------------------------- /lib/ui/text_field_ozellikleri.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class TextFieldIslemleri extends StatefulWidget { 4 | 5 | @override 6 | _TextFieldIslemleriState createState() => _TextFieldIslemleriState(); 7 | 8 | } 9 | 10 | class _TextFieldIslemleriState extends State { 11 | 12 | String girilenMetin=""; 13 | int maxLine=1; 14 | FocusNode _fNode ; 15 | TextEditingController textController1; 16 | 17 | 18 | 19 | @override 20 | void initState() { 21 | super.initState(); 22 | _fNode=FocusNode(); 23 | textController1=TextEditingController(text: "varsayılan"); 24 | 25 | _fNode.addListener((){ 26 | setState(() { 27 | if(_fNode.hasFocus){ 28 | maxLine = 3; 29 | }else{ 30 | maxLine =1; 31 | } 32 | }); 33 | }); 34 | 35 | } 36 | 37 | @override 38 | void dispose() { 39 | _fNode.dispose(); 40 | textController1.dispose(); 41 | super.dispose(); 42 | } 43 | 44 | @override 45 | Widget build(BuildContext context) { 46 | return Scaffold( 47 | appBar: AppBar( 48 | title: Text("Input Islemleri"), 49 | ), 50 | 51 | floatingActionButton: Column( 52 | mainAxisAlignment: MainAxisAlignment.end, 53 | children: [ 54 | 55 | Container( 56 | width: 24, 57 | height: 24, 58 | child: FloatingActionButton(heroTag: "cc",onPressed: (){ 59 | FocusScope.of(context).requestFocus(_fNode); 60 | },child: Icon(Icons.edit,size: 12,), backgroundColor: Colors.green,), 61 | ), 62 | 63 | 64 | SizedBox(height: 10,), 65 | 66 | FloatingActionButton( 67 | heroTag: "aa", 68 | onPressed: (){ 69 | textController1.text="Butondan geldim"; 70 | },child: Icon(Icons.edit), mini: true, backgroundColor: Colors.pink,), 71 | SizedBox(height: 10,), 72 | 73 | 74 | 75 | FloatingActionButton(heroTag: "bb",onPressed: (){ 76 | debugPrint(textController1.text.toString()); 77 | }, child: Icon(Icons.edit),), 78 | ], 79 | ), 80 | body: ListView( 81 | children: [ 82 | 83 | Padding( 84 | padding: const EdgeInsets.all(16.0), 85 | child: TextField( 86 | keyboardType: TextInputType.number, 87 | textInputAction: TextInputAction.done, 88 | autofocus: false, 89 | maxLines: maxLine, 90 | controller: textController1, 91 | maxLength: 20, 92 | focusNode: _fNode, 93 | decoration: InputDecoration( 94 | hintText: "Metni buraya başlık", 95 | labelText: "Başlık", 96 | border: OutlineInputBorder(borderRadius: BorderRadius.all(Radius.circular(10))), 97 | icon: Icon(Icons.edit), 98 | prefixIcon: Icon(Icons.done), 99 | suffixIcon: Icon(Icons.add), 100 | filled: true, 101 | fillColor: Colors.red.shade50 102 | ), 103 | maxLengthEnforced: true, 104 | onChanged: (String s)=>debugPrint("On Change: $s"), 105 | onSubmitted: (String s){ 106 | debugPrint("On Submit : $s"); 107 | girilenMetin=s; 108 | }, 109 | cursorColor: Colors.pink, 110 | 111 | ), 112 | ), 113 | 114 | Padding( 115 | padding: const EdgeInsets.all(16.0), 116 | child: TextField( 117 | keyboardType: TextInputType.number, 118 | textInputAction: TextInputAction.done, 119 | autofocus: false, 120 | maxLines: 1, 121 | maxLength: 20, 122 | controller: textController1, 123 | decoration: InputDecoration( 124 | hintText: "Metni buraya başlık", 125 | labelText: "Başlık", 126 | border: OutlineInputBorder(borderRadius: BorderRadius.all(Radius.circular(10))), 127 | icon: Icon(Icons.edit), 128 | prefixIcon: Icon(Icons.done), 129 | suffixIcon: Icon(Icons.add), 130 | filled: true, 131 | fillColor: Colors.red.shade50 132 | ), 133 | maxLengthEnforced: true, 134 | onChanged: (String s)=>debugPrint("On Change: $s"), 135 | onSubmitted: (String s){ 136 | debugPrint("On Submit : $s"); 137 | girilenMetin=s; 138 | }, 139 | cursorColor: Colors.pink, 140 | 141 | ), 142 | ), 143 | 144 | Container( 145 | margin: EdgeInsets.all(10), 146 | width: double.infinity, 147 | height: 200, 148 | color: Colors.teal.shade400, 149 | child: Align( 150 | alignment: Alignment.center, 151 | child: Text(girilenMetin), 152 | ), 153 | ), 154 | ], 155 | )); 156 | } 157 | } 158 | -------------------------------------------------------------------------------- /lib/ui/form_textformfield_ornek.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class FormveTextFormField extends StatefulWidget { 4 | @override 5 | _FormveTextFormFieldState createState() => _FormveTextFormFieldState(); 6 | } 7 | 8 | class _FormveTextFormFieldState extends State { 9 | String _adSoyad, _sifre, _emailAdres; 10 | bool otomatikKontrol = false; 11 | 12 | final formKey=GlobalKey(); 13 | 14 | @override 15 | Widget build(BuildContext context) { 16 | return Theme( 17 | data: Theme.of(context).copyWith( 18 | accentColor: Colors.green, 19 | hintColor: Colors.indigo, 20 | errorColor: Colors.red, 21 | primaryColor: Colors.teal), 22 | child: Scaffold( 23 | floatingActionButton: FloatingActionButton( 24 | onPressed: () {}, 25 | child: Icon(Icons.save), 26 | ), 27 | appBar: AppBar( 28 | title: Text("Form ve TextFormField"), 29 | ), 30 | body: Padding( 31 | padding: EdgeInsets.all(10), 32 | child: Form( 33 | key: formKey, 34 | autovalidate: otomatikKontrol, 35 | child: ListView( 36 | children: [ 37 | SizedBox(height: 10,), 38 | TextFormField( 39 | decoration: InputDecoration( 40 | prefixIcon: Icon(Icons.account_circle), 41 | hintText: "Adınız ve Soyadınız", 42 | hintStyle: TextStyle(fontSize: 12), 43 | labelText: "Ad Soyad", 44 | border: OutlineInputBorder(), 45 | ), 46 | //initialValue: "emre", 47 | validator: _isimKontrol, 48 | onSaved: (deger) => _adSoyad = deger, 49 | ), 50 | SizedBox( 51 | height: 10, 52 | ), 53 | TextFormField( 54 | keyboardType: TextInputType.emailAddress, 55 | decoration: InputDecoration( 56 | prefixIcon: Icon(Icons.email), 57 | hintText: "Email adresiniz", 58 | labelText: "Email", 59 | border: OutlineInputBorder(), 60 | //enabledBorder: OutlineInputBorder(borderSide: BorderSide(color:Colors.green, width: 2)), 61 | //focusedBorder: OutlineInputBorder(borderSide: BorderSide(color:Colors.purple, width: 2)), 62 | ), 63 | validator: _emailKontrol, 64 | onSaved: (deger) => _emailAdres = deger, 65 | ), 66 | SizedBox( 67 | height: 10, 68 | ), 69 | TextFormField( 70 | keyboardType: TextInputType.text, 71 | obscureText: true, 72 | decoration: InputDecoration( 73 | prefixIcon: Icon(Icons.lock), 74 | hintText: "Şifreniz", 75 | labelText: "Şifre", 76 | border: OutlineInputBorder(), 77 | //enabledBorder: OutlineInputBorder(borderSide: BorderSide(color:Colors.green, width: 2)), 78 | //focusedBorder: OutlineInputBorder(borderSide: BorderSide(color:Colors.purple, width: 2)), 79 | ), 80 | validator: (String girilenVeri) { 81 | if(girilenVeri.length<6){ 82 | return "En az 6 karakter gereki"; 83 | } 84 | }, 85 | onSaved: (deger) => _sifre = deger, 86 | ), 87 | SizedBox( 88 | height: 10, 89 | ), 90 | RaisedButton.icon( 91 | icon: Icon(Icons.save), 92 | label: Text("KAYDET"), 93 | color: Colors.blueAccent, 94 | disabledColor: Colors.amber, 95 | onPressed: _girisBilgileriniOnayla, 96 | ) 97 | ], 98 | ), 99 | ), 100 | ), 101 | )); 102 | } 103 | 104 | void _girisBilgileriniOnayla() { 105 | 106 | if(formKey.currentState.validate()){ 107 | formKey.currentState.save(); 108 | debugPrint("Girilen mail: $_emailAdres şifre:$_sifre adsoyad:$_adSoyad"); 109 | }else{ 110 | setState(() { 111 | otomatikKontrol=true; 112 | }); 113 | } 114 | 115 | 116 | } 117 | 118 | 119 | 120 | String _emailKontrol(String mail){ 121 | 122 | Pattern pattern = 123 | r'^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$'; 124 | RegExp regex = new RegExp(pattern); 125 | if (!regex.hasMatch(mail)) 126 | return 'Geçersiz mail'; 127 | else 128 | return null; 129 | } 130 | 131 | String _isimKontrol(String isim){ 132 | RegExp regex=RegExp("^[a-zA-Z]+\$"); 133 | if (!regex.hasMatch(isim)) 134 | return 'Isim numara içermemeli'; 135 | else 136 | return null; 137 | } 138 | 139 | } 140 | -------------------------------------------------------------------------------- /lib/ui/grid_view_kullanimi.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class GridViewOrnek extends StatelessWidget { 4 | @override 5 | Widget build(BuildContext context) { 6 | return GridView.builder( 7 | itemCount: 100, 8 | gridDelegate: 9 | SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: 2), 10 | itemBuilder: (BuildContext context, int index) { 11 | return GestureDetector( 12 | child: Container( 13 | alignment: Alignment.bottomCenter, 14 | decoration: BoxDecoration( 15 | border: Border.all(color: Colors.orange, width: 10), 16 | //borderRadius: new BorderRadius.all(new Radius.circular(5.0)), 17 | boxShadow: [ 18 | new BoxShadow( 19 | color: Colors.red, 20 | offset: new Offset(10.0, 5.0), 21 | blurRadius: 20.0, 22 | ) 23 | ], 24 | shape: BoxShape.circle, 25 | color: Colors.blue[100 * ((index + 1) % 8)], 26 | gradient: LinearGradient( 27 | colors: [Colors.yellow, Colors.red], 28 | begin: Alignment.topCenter, 29 | end: Alignment.bottomCenter), 30 | image: DecorationImage( 31 | image: AssetImage("assets/images/emre.jpg"), 32 | fit: BoxFit.contain, 33 | alignment: Alignment.topCenter)), 34 | margin: EdgeInsets.all(20), 35 | child: Padding( 36 | padding: EdgeInsets.all(10), 37 | child: Text( 38 | "Merhaba Flutter $index", 39 | textAlign: TextAlign.center, 40 | style: TextStyle(fontSize: 16, color: Colors.white), 41 | ), 42 | ), 43 | ), 44 | 45 | onTap: () => debugPrint("Merhaba flutter $index tıklanıldı"), 46 | onDoubleTap: () => debugPrint("Merhaba flutter $index çift tıklanıldı"), 47 | onLongPress: () => debugPrint("Merhaba flutter $index uzun basıldı"), 48 | onHorizontalDragStart: (e) => debugPrint("Merhaba flutter $index uzun basıldı $e"), 49 | ); 50 | }, 51 | ); 52 | } 53 | } 54 | 55 | /* 56 | * GridView.extent( 57 | //reverse: true, 58 | maxCrossAxisExtent: 500, 59 | primary: false, 60 | scrollDirection: Axis.vertical, 61 | padding: EdgeInsets.all(10), 62 | crossAxisSpacing: 20, 63 | mainAxisSpacing: 40, 64 | children: [ 65 | Container( 66 | alignment: Alignment.center, 67 | color: Colors.teal.shade300, 68 | child:Text("Merhaba Flutter 1",textAlign: TextAlign.center,), 69 | ), 70 | 71 | Container( 72 | alignment: Alignment.center, 73 | color: Colors.teal.shade300, 74 | child:Text("Merhaba Flutter 2",textAlign: TextAlign.center,), 75 | ), 76 | 77 | Container( 78 | alignment: Alignment.center, 79 | color: Colors.teal.shade300, 80 | child:Text("Merhaba Flutter 3",textAlign: TextAlign.center,), 81 | ), 82 | 83 | Container( 84 | alignment: Alignment.center, 85 | color: Colors.teal.shade300, 86 | child:Text("Merhaba Flutter 4",textAlign: TextAlign.center,), 87 | ), 88 | 89 | Container( 90 | alignment: Alignment.center, 91 | color: Colors.teal.shade300, 92 | child:Text("Merhaba Flutter 5",textAlign: TextAlign.center,), 93 | ), 94 | 95 | Container( 96 | alignment: Alignment.center, 97 | color: Colors.teal.shade300, 98 | child:Text("Merhaba Flutter 6",textAlign: TextAlign.center,), 99 | ), 100 | 101 | 102 | ], 103 | 104 | ); 105 | * */ 106 | 107 | /* 108 | * GridView.count( 109 | crossAxisCount: 2, 110 | reverse: true, 111 | primary: false, 112 | scrollDirection: Axis.vertical, 113 | padding: EdgeInsets.all(10), 114 | crossAxisSpacing: 20, 115 | mainAxisSpacing: 40, 116 | children: [ 117 | Container( 118 | alignment: Alignment.center, 119 | color: Colors.teal.shade300, 120 | child:Text("Merhaba Flutter 1",textAlign: TextAlign.center,), 121 | ), 122 | 123 | Container( 124 | alignment: Alignment.center, 125 | color: Colors.teal.shade300, 126 | child:Text("Merhaba Flutter 2",textAlign: TextAlign.center,), 127 | ), 128 | 129 | Container( 130 | alignment: Alignment.center, 131 | color: Colors.teal.shade300, 132 | child:Text("Merhaba Flutter 3",textAlign: TextAlign.center,), 133 | ), 134 | 135 | Container( 136 | alignment: Alignment.center, 137 | color: Colors.teal.shade300, 138 | child:Text("Merhaba Flutter 4",textAlign: TextAlign.center,), 139 | ), 140 | 141 | Container( 142 | alignment: Alignment.center, 143 | color: Colors.teal.shade300, 144 | child:Text("Merhaba Flutter 5",textAlign: TextAlign.center,), 145 | ), 146 | 147 | Container( 148 | alignment: Alignment.center, 149 | color: Colors.teal.shade300, 150 | child:Text("Merhaba Flutter 6",textAlign: TextAlign.center,), 151 | ), 152 | 153 | 154 | ], 155 | 156 | ); 157 | * 158 | * */ 159 | -------------------------------------------------------------------------------- /lib/ui/diger_form_elemanlari.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class DigerFormElemanlari extends StatefulWidget { 4 | @override 5 | _DigerFormElemanlariState createState() => _DigerFormElemanlariState(); 6 | } 7 | 8 | class _DigerFormElemanlariState extends State { 9 | bool checkBoxState = false; 10 | String sehir = ""; 11 | bool switchState = false; 12 | double sliderDeger = 10; 13 | String secilenRenk = "Kirmizi"; 14 | List sehirler = ["Ankara", "Bursa", "Izmir", "Hatay"]; 15 | String secilenSehir="Ankara"; 16 | 17 | @override 18 | Widget build(BuildContext context) { 19 | return Scaffold( 20 | floatingActionButton: FloatingActionButton( 21 | onPressed: () {}, 22 | child: Icon(Icons.add_circle), 23 | ), 24 | appBar: AppBar( 25 | title: Text("Diğer Form Elemanlari"), 26 | ), 27 | body: Padding( 28 | padding: EdgeInsets.all(20), 29 | child: ListView( 30 | children: [ 31 | CheckboxListTile( 32 | value: checkBoxState, 33 | onChanged: (secildi) { 34 | setState(() { 35 | checkBoxState = secildi; 36 | }); 37 | }, 38 | activeColor: Colors.red, 39 | title: Text("Checkbox title"), 40 | subtitle: Text("Checkbox Subtitle"), 41 | secondary: Icon(Icons.add), 42 | selected: true, 43 | ), 44 | RadioListTile( 45 | value: "Ankara", 46 | groupValue: sehir, 47 | onChanged: (deger) { 48 | setState(() { 49 | sehir = deger; 50 | debugPrint("Secilen değer : $deger"); 51 | }); 52 | }, 53 | title: Text("Ankara"), 54 | subtitle: Text("Radio Subtitle"), 55 | secondary: Icon(Icons.map), 56 | ), 57 | RadioListTile( 58 | value: "Bursa", 59 | groupValue: sehir, 60 | onChanged: (deger) { 61 | setState(() { 62 | sehir = deger; 63 | debugPrint("Secilen değer : $deger"); 64 | }); 65 | }, 66 | title: Text("Bursa"), 67 | subtitle: Text("Radio Subtitle"), 68 | secondary: Icon(Icons.map), 69 | ), 70 | RadioListTile( 71 | value: "Izmir", 72 | groupValue: sehir, 73 | onChanged: (deger) { 74 | setState(() { 75 | sehir = deger; 76 | debugPrint("Secilen değer : $deger"); 77 | }); 78 | }, 79 | title: Text("Izmir"), 80 | subtitle: Text("Radio Subtitle"), 81 | secondary: Icon(Icons.map), 82 | ), 83 | SwitchListTile( 84 | value: switchState, 85 | onChanged: (deger) { 86 | setState(() { 87 | debugPrint("Anlasma onaylandı : $deger"); 88 | switchState = deger; 89 | }); 90 | }, 91 | title: Text("Switch title"), 92 | subtitle: Text("Switch subtitle"), 93 | secondary: Icon(Icons.refresh), 94 | ), 95 | Text("Değeri sliderden seciniz"), 96 | 97 | Slider( 98 | value: sliderDeger, 99 | onChanged: (yeniDeger) { 100 | setState(() { 101 | sliderDeger = yeniDeger; 102 | }); 103 | }, 104 | min: 10, 105 | max: 20, 106 | divisions: 20, 107 | label: sliderDeger.toString(), 108 | ), 109 | 110 | 111 | DropdownButton(items: [ 112 | DropdownMenuItem(child: Row( 113 | children: [ 114 | Container(width: 24, 115 | height: 24, 116 | color: Colors.red, 117 | margin: EdgeInsets.only(right: 10),), 118 | Text("Kırmızı"), 119 | ], 120 | ), value: "Kirmizi",), 121 | DropdownMenuItem(child: Row( 122 | children: [ 123 | Container(width: 24, 124 | height: 24, 125 | color: Colors.blue, 126 | margin: EdgeInsets.only(right: 10),), 127 | Text("Mavi"), 128 | ], 129 | ), value: "Mavi",), 130 | DropdownMenuItem(child: Row( 131 | children: [ 132 | Container(width: 24, 133 | height: 24, 134 | color: Colors.green, 135 | margin: EdgeInsets.only(right: 10),), 136 | Text("Yeşil"), 137 | ], 138 | ), value: "Yesil",), 139 | 140 | ], onChanged: (String secilen) { 141 | setState(() { 142 | secilenRenk = secilen; 143 | }); 144 | }, 145 | hint: Text("Seciniz"), 146 | value: secilenRenk, 147 | ), 148 | 149 | DropdownButton(items: sehirler.map((oankiSehir) { 150 | return DropdownMenuItem( 151 | child: Text(oankiSehir), value: oankiSehir,); 152 | }).toList(), 153 | onChanged: (s){ 154 | setState(() { 155 | secilenSehir = s; 156 | }); 157 | }, 158 | value: secilenSehir, 159 | ), 160 | 161 | ], 162 | ), 163 | ), 164 | ); 165 | } 166 | } 167 | -------------------------------------------------------------------------------- /lib/ui/stepper_kullanimi.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class StepperOrnek extends StatefulWidget { 4 | @override 5 | _StepperOrnekState createState() => _StepperOrnekState(); 6 | } 7 | 8 | class _StepperOrnekState extends State { 9 | int _aktifStep = 0; 10 | String isim, mail, sifre; 11 | List tumStepler; 12 | bool hata = false; 13 | 14 | var key0 = GlobalKey(); 15 | var key1 = GlobalKey(); 16 | var key2 = GlobalKey(); 17 | 18 | @override 19 | void initState() { 20 | // TODO: implement initState 21 | super.initState(); 22 | } 23 | 24 | @override 25 | Widget build(BuildContext context) { 26 | tumStepler = _tumStepler(); 27 | 28 | return Scaffold( 29 | appBar: AppBar( 30 | title: Text('Stepper Örnek'), 31 | ), 32 | body: SingleChildScrollView( 33 | child: Stepper( 34 | controlsBuilder: (BuildContext context, 35 | {VoidCallback onStepContinue, VoidCallback onStepCancel}) { 36 | return Row( 37 | children: [ 38 | RaisedButton( 39 | color: Colors.green, 40 | onPressed: onStepContinue, 41 | child: const Text('Devamm!'), 42 | ), 43 | SizedBox(width: 30,), 44 | RaisedButton( 45 | color: Colors.pink, 46 | onPressed: onStepCancel, 47 | child: const Text('Geri Gel'), 48 | ), 49 | ], 50 | ); 51 | }, 52 | currentStep: _aktifStep, 53 | steps: tumStepler, 54 | /* onStepTapped: (tiklanilanStep){ 55 | setState(() { 56 | _aktifStep = tiklanilanStep; 57 | }); 58 | },*/ 59 | onStepContinue: () { 60 | setState(() { 61 | _ileriButonuKontrolu(); 62 | }); 63 | }, 64 | onStepCancel: () { 65 | setState(() { 66 | if (_aktifStep > 0) { 67 | _aktifStep--; 68 | } else { 69 | _aktifStep = 0; 70 | } 71 | }); 72 | }, 73 | ), 74 | ), 75 | ); 76 | } 77 | 78 | List _tumStepler() { 79 | List stepler = [ 80 | Step( 81 | title: Text("Username başlık"), 82 | subtitle: Text("Username Altbaşlık"), 83 | state: _stateleriAyarla(0), 84 | isActive: true, 85 | content: TextFormField( 86 | key: key0, 87 | decoration: InputDecoration( 88 | labelText: "UsernameLabel", 89 | hintText: "UsernameHint", 90 | border: OutlineInputBorder()), 91 | validator: (girilenDeger) { 92 | if (girilenDeger.length < 6) { 93 | return "En az 6 karakter giriniz"; 94 | } 95 | }, 96 | onSaved: (girilenDeger) { 97 | isim = girilenDeger; 98 | }, 99 | ), 100 | ), 101 | Step( 102 | title: Text("Mail başlık"), 103 | subtitle: Text("Mail Altbaşlık"), 104 | state: _stateleriAyarla(1), 105 | isActive: true, 106 | content: TextFormField( 107 | key: key1, 108 | decoration: InputDecoration( 109 | labelText: "MailLabel", 110 | hintText: "MailHint", 111 | border: OutlineInputBorder()), 112 | validator: (girilenDeger) { 113 | if (girilenDeger.length < 6 || !girilenDeger.contains("@")) { 114 | return "Geçerli mail adresi giriniz"; 115 | } 116 | }, 117 | onSaved: (girilenDeger) { 118 | mail = girilenDeger; 119 | }, 120 | ), 121 | ), 122 | Step( 123 | title: Text("Şifre başlık"), 124 | subtitle: Text("Şifre Altbaşlık"), 125 | state: _stateleriAyarla(2), 126 | isActive: true, 127 | content: TextFormField( 128 | key: key2, 129 | decoration: InputDecoration( 130 | labelText: "ŞifreLabel", 131 | hintText: "ŞifreHint", 132 | border: OutlineInputBorder()), 133 | validator: (girilenDeger) { 134 | if (girilenDeger.length < 6) { 135 | return "Şifre En az 6 karakter olmalı"; 136 | } 137 | }, 138 | onSaved: (girilenDeger) { 139 | sifre = girilenDeger; 140 | }, 141 | ), 142 | ), 143 | ]; 144 | 145 | return stepler; 146 | } 147 | 148 | StepState _stateleriAyarla(int oankiStep) { 149 | if (_aktifStep == oankiStep) { 150 | if (hata) { 151 | return StepState.error; 152 | } else { 153 | return StepState.editing; 154 | } 155 | } else 156 | return StepState.complete; 157 | } 158 | 159 | void _ileriButonuKontrolu() { 160 | switch (_aktifStep) { 161 | case 0: 162 | if (key0.currentState.validate()) { 163 | key0.currentState.save(); 164 | hata = false; 165 | _aktifStep = 1; 166 | } else { 167 | hata = true; 168 | } 169 | break; 170 | 171 | case 1: 172 | if (key1.currentState.validate()) { 173 | key1.currentState.save(); 174 | hata = false; 175 | _aktifStep = 2; 176 | } else { 177 | hata = true; 178 | } 179 | break; 180 | 181 | case 2: 182 | if (key2.currentState.validate()) { 183 | key2.currentState.save(); 184 | hata = false; 185 | _aktifStep = 2; 186 | formTamamlandi(); 187 | } else { 188 | hata = true; 189 | } 190 | break; 191 | 192 | } 193 | } 194 | 195 | void formTamamlandi() { 196 | debugPrint("Girilen değerler : isim=>$isim mail=>$mail şifre=>$sifre"); 197 | } 198 | 199 | 200 | } 201 | -------------------------------------------------------------------------------- /lib/ui/custom_scroll_ve_slivers.dart: -------------------------------------------------------------------------------- 1 | import 'dart:math' as matematik; 2 | 3 | import 'package:flutter/material.dart'; 4 | 5 | class CollapsableToolbarOrnek extends StatelessWidget { 6 | @override 7 | Widget build(BuildContext context) { 8 | return CustomScrollView( 9 | slivers: [ 10 | SliverAppBar( 11 | backgroundColor: Colors.red, 12 | expandedHeight: 200, 13 | floating: false, 14 | pinned: true, 15 | snap: false, 16 | flexibleSpace: FlexibleSpaceBar( 17 | title: Text("Custom Scrollview App"), 18 | centerTitle: true, 19 | background: Image.asset( 20 | "assets/images/emre.jpg", 21 | fit: BoxFit.cover, 22 | ), 23 | ), 24 | ), 25 | 26 | 27 | 28 | //sabit elemanlarla bir satırda kaç eleman olacağını söylediğimiz grid türü 29 | SliverGrid( 30 | gridDelegate: 31 | SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: 2), 32 | delegate: SliverChildListDelegate(sabitListeElemanlari()), 33 | ), 34 | 35 | //dinamik (builder ile üretilen) elemanlarla bir satırda kaç eleman olacağını söylediğimiz grid türü 36 | SliverGrid( 37 | gridDelegate: 38 | SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: 3), 39 | delegate: SliverChildBuilderDelegate(_dinamikElemanUretenFonksiyon, 40 | childCount: 6), 41 | ), 42 | 43 | //dinamik (builder ile üretilen) elemanlarla bir satırdaki bir elemanın max genişliğini söylediğimiz grid türü 44 | SliverGrid( 45 | gridDelegate: 46 | SliverGridDelegateWithMaxCrossAxisExtent(maxCrossAxisExtent: 200), 47 | delegate: SliverChildBuilderDelegate(_dinamikElemanUretenFonksiyon, 48 | childCount: 6), 49 | ), 50 | 51 | 52 | SliverGrid.count(crossAxisCount: 6, children: 53 | sabitListeElemanlari() 54 | ,), 55 | 56 | SliverGrid.extent(maxCrossAxisExtent: 300, children: sabitListeElemanlari(),), 57 | 58 | //statik elemanlı bir sliver list view 59 | SliverPadding( 60 | padding: EdgeInsets.all(4), 61 | sliver: SliverList( 62 | delegate: SliverChildListDelegate( 63 | sabitListeElemanlari(), 64 | ), 65 | ), 66 | ), 67 | 68 | //elemanları builder ile olusturulan list view 69 | SliverPadding( 70 | padding: EdgeInsets.all(10), 71 | sliver: SliverList( 72 | delegate: SliverChildBuilderDelegate(_dinamikElemanUretenFonksiyon, 73 | childCount: 6), 74 | ), 75 | ), 76 | 77 | //elemanları statik olusturulan ama extent mantıgıyla calısan listview 78 | SliverFixedExtentList( 79 | delegate: SliverChildListDelegate(sabitListeElemanlari()), 80 | itemExtent: 100), 81 | 82 | //elemanları dinamik olusturulan ama extent mantıgıyla calısan listview 83 | SliverFixedExtentList( 84 | delegate: SliverChildBuilderDelegate(_dinamikElemanUretenFonksiyon, 85 | childCount: 6), 86 | itemExtent: 50, 87 | ), 88 | ], 89 | ); 90 | } 91 | 92 | //listeler için tanımlanmış elemanları döndüren fonksiyon 93 | List sabitListeElemanlari() { 94 | return [ 95 | Container( 96 | height: 100, 97 | color: Colors.amber, 98 | alignment: Alignment.center, 99 | child: Text( 100 | "Sabit Liste Elemanı 1", 101 | style: TextStyle(fontSize: 18), 102 | textAlign: TextAlign.center, 103 | ), 104 | ), 105 | Container( 106 | height: 100, 107 | color: Colors.teal, 108 | alignment: Alignment.center, 109 | child: Text( 110 | "Sabit Liste Elemanı 2", 111 | style: TextStyle(fontSize: 18), 112 | textAlign: TextAlign.center, 113 | ), 114 | ), 115 | Container( 116 | height: 100, 117 | color: Colors.blue, 118 | alignment: Alignment.center, 119 | child: Text( 120 | "Sabit Liste Elemanı 3", 121 | style: TextStyle(fontSize: 18), 122 | textAlign: TextAlign.center, 123 | ), 124 | ), 125 | Container( 126 | height: 100, 127 | color: Colors.orange, 128 | alignment: Alignment.center, 129 | child: Text( 130 | "Sabit Liste Elemanı 4", 131 | style: TextStyle(fontSize: 18), 132 | textAlign: TextAlign.center, 133 | ), 134 | ), 135 | Container( 136 | height: 100, 137 | color: Colors.purple, 138 | alignment: Alignment.center, 139 | child: Text( 140 | "Sabit Liste Elemanı 5", 141 | style: TextStyle(fontSize: 18), 142 | textAlign: TextAlign.center, 143 | ), 144 | ), 145 | Container( 146 | height: 100, 147 | color: Colors.cyan, 148 | alignment: Alignment.center, 149 | child: Text( 150 | "Sabit Liste Elemanı 6", 151 | style: TextStyle(fontSize: 18), 152 | textAlign: TextAlign.center, 153 | ), 154 | ), 155 | ]; 156 | } 157 | 158 | //listeler için dinamik olarak eleman döndüren fonksiyon 159 | Widget _dinamikElemanUretenFonksiyon(BuildContext context, int index) { 160 | return Container( 161 | height: 100, 162 | color: rastgeleRenkUret(), 163 | alignment: Alignment.center, 164 | child: Text( 165 | "Dinamik Liste Elemanı ${index + 1}", 166 | style: TextStyle(fontSize: 18), 167 | textAlign: TextAlign.center, 168 | ), 169 | ); 170 | } 171 | 172 | //liste elemanları için rastgele renk üretme fonksiyonu 173 | Color rastgeleRenkUret() { 174 | return Color.fromARGB( 175 | matematik.Random().nextInt(255), 176 | matematik.Random().nextInt(255), 177 | matematik.Random().nextInt(255), 178 | matematik.Random().nextInt(255)); 179 | } 180 | } 181 | -------------------------------------------------------------------------------- /lib/ui/resim_ve_buton_turleri.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class ResimveButonTurleri extends StatelessWidget{ 4 | @override 5 | Widget build(BuildContext context) { 6 | // TODO: implement build 7 | return Column( 8 | children: [ 9 | Text( 10 | "Resim ve Buton Türleri", 11 | style: TextStyle(fontSize: 24, fontWeight: FontWeight.bold), 12 | ), 13 | IntrinsicHeight( 14 | child: Row( 15 | mainAxisAlignment: MainAxisAlignment.spaceEvenly, 16 | children: [ 17 | Expanded( 18 | child: Container( 19 | margin: EdgeInsets.all(4), 20 | color: Colors.red.shade200, 21 | child: Column( 22 | mainAxisAlignment: MainAxisAlignment.spaceEvenly, 23 | children: [ 24 | Image.asset("assets/images/emre.jpg"), 25 | Text("Asset Image"), 26 | ], 27 | ), 28 | ), 29 | ), 30 | Expanded( 31 | child: Container( 32 | margin: EdgeInsets.all(4), 33 | color: Colors.red.shade200, 34 | child: Column( 35 | mainAxisAlignment: MainAxisAlignment.spaceEvenly, 36 | children: [ 37 | Image.network( 38 | "http://hdqwalls.com/wallpapers/small-memory-lp.jpg"), 39 | Text("Network Image"), 40 | ], 41 | ), 42 | ), 43 | ), 44 | Expanded( 45 | child: Container( 46 | margin: EdgeInsets.all(4), 47 | color: Colors.red.shade200, 48 | child: Column( 49 | mainAxisAlignment: MainAxisAlignment.spaceEvenly, 50 | children: [ 51 | CircleAvatar( 52 | backgroundImage: NetworkImage( 53 | "https://emrealtunbilek.com/wp-content/uploads/2016/10/apple-icon-72x72.png"), 54 | backgroundColor: Colors.purple, 55 | radius: 30, 56 | foregroundColor: Colors.orange, 57 | ), 58 | Text("Circle Avatar"), 59 | ], 60 | ), 61 | ), 62 | ), 63 | ], 64 | ), 65 | ), 66 | IntrinsicHeight( 67 | child: Row( 68 | mainAxisAlignment: MainAxisAlignment.spaceEvenly, 69 | children: [ 70 | Expanded( 71 | child: Container( 72 | margin: EdgeInsets.all(4), 73 | color: Colors.red.shade200, 74 | child: Column( 75 | mainAxisAlignment: MainAxisAlignment.spaceEvenly, 76 | children: [ 77 | FadeInImage.assetNetwork( 78 | placeholder: "assets/images/loading.gif", 79 | image: 80 | "http://hdqwalls.com/wallpapers/small-memory-lp.jpg"), 81 | Text("FadeinImage"), 82 | ], 83 | ), 84 | ), 85 | ), 86 | Expanded( 87 | child: Container( 88 | margin: EdgeInsets.all(4), 89 | color: Colors.red.shade200, 90 | child: Column( 91 | mainAxisAlignment: MainAxisAlignment.spaceEvenly, 92 | children: [ 93 | FlutterLogo( 94 | size: 60, 95 | colors: Colors.orange, 96 | style: FlutterLogoStyle.horizontal, 97 | textColor: Colors.black, 98 | ), 99 | Text("Flutter Logo"), 100 | ], 101 | ), 102 | ), 103 | ), 104 | Expanded( 105 | child: Container( 106 | margin: EdgeInsets.all(4), 107 | color: Colors.red.shade200, 108 | child: Column( 109 | mainAxisAlignment: MainAxisAlignment.spaceEvenly, 110 | children: [ 111 | Expanded( 112 | child: Placeholder( 113 | color: Colors.red, 114 | strokeWidth: 2, 115 | ), 116 | ), 117 | Text("Placeholder Widget"), 118 | ], 119 | ), 120 | ), 121 | ), 122 | ], 123 | ), 124 | ), 125 | Container( 126 | margin: EdgeInsets.symmetric(horizontal: 50), 127 | child: Column( 128 | crossAxisAlignment: CrossAxisAlignment.stretch, 129 | children: [ 130 | RaisedButton( 131 | child: Text("Emre Altunbilek"), 132 | color: Colors.orange, 133 | onPressed: () => debugPrint("Fat arrowlu fonksiyon"), 134 | ), 135 | RaisedButton( 136 | child: Text("Flutter ve Dart Dersleri"), 137 | elevation: 12, 138 | textColor: Colors.yellow, 139 | onPressed: () { 140 | debugPrint("Normal lambda expression"); 141 | debugPrint("İkinci satır"); 142 | }, 143 | color: Colors.purple, 144 | ), 145 | RaisedButton( 146 | child: Text("Hızla devam ediyor"), 147 | elevation: 12, 148 | textColor: Colors.black, 149 | onPressed: () { 150 | uzunMethod(); 151 | }, 152 | color: Colors.red, 153 | ), 154 | RaisedButton( 155 | child: Text("Calısmaya Devam"), 156 | elevation: 12, 157 | textColor: Colors.black, 158 | onPressed: uzunMethod, 159 | color: Colors.blue, 160 | ), 161 | IconButton( 162 | icon: Icon( 163 | Icons.add_circle_outline, 164 | size: 32, 165 | ), 166 | onPressed: () {} 167 | ), 168 | FlatButton(onPressed: (){}, child: Text("Flat Button", style: TextStyle(fontSize: 24),)) 169 | ], 170 | ), 171 | ), 172 | ], 173 | ); 174 | } 175 | 176 | void uzunMethod() { 177 | debugPrint("Cok uzun içerikli fonksiyon"); 178 | } 179 | 180 | } -------------------------------------------------------------------------------- /lib/ui/navigasyon_islemleri.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'dart:async'; 3 | 4 | class NavigasyonIslemleri extends StatelessWidget { 5 | String baslik = "B SAYFASI"; 6 | 7 | @override 8 | Widget build(BuildContext context) { 9 | return Scaffold( 10 | appBar: AppBar( 11 | title: Text( 12 | "Navigasyon İşlemleri", 13 | style: TextStyle(color: Colors.white), 14 | ), 15 | ), 16 | body: SingleChildScrollView( 17 | child: Center( 18 | child: Column( 19 | mainAxisAlignment: MainAxisAlignment.center, 20 | children: [ 21 | RaisedButton( 22 | child: Text("A Sayfasına Git"), 23 | color: Colors.blue, 24 | onPressed: () { 25 | Navigator.push( 26 | context, 27 | MaterialPageRoute(builder: (context) => ASayfasi()), 28 | ); 29 | }, 30 | ), 31 | RaisedButton( 32 | child: Text("B Sayfasına Git ve Veri Gönder"), 33 | color: Colors.red, 34 | onPressed: () { 35 | Navigator.push( 36 | context, 37 | MaterialPageRoute(builder: (context) => BSayfasi(baslik)), 38 | ); 39 | }, 40 | ), 41 | RaisedButton( 42 | child: Text("C Sayfasına Git ve Geri Gel"), 43 | color: Colors.purple, 44 | onPressed: () { 45 | Navigator.push( 46 | context, 47 | MaterialPageRoute(builder: (context) => CSayfasi()), 48 | ); 49 | }, 50 | ), 51 | RaisedButton( 52 | child: Text("D Sayfasına Git ve Gelirken Veri Getir"), 53 | color: Colors.pink, 54 | onPressed: () { 55 | Navigator.push( 56 | context, 57 | MaterialPageRoute(builder: (context) => DSayfasi()), 58 | ).then((popOlayindanSonraGelenDeger) { 59 | debugPrint( 60 | "Pop işleminden gelen değer $popOlayindanSonraGelenDeger"); 61 | }); 62 | }, 63 | ), 64 | RaisedButton( 65 | child: Text("E Sayfasına Git ve Geri Gelme"), 66 | color: Colors.pink, 67 | onPressed: () { 68 | Navigator.pushReplacement(context, 69 | MaterialPageRoute(builder: (context) => ESayfasi())); 70 | }, 71 | ), 72 | RaisedButton( 73 | child: Text("Liste Sayfasına Git"), 74 | color: Colors.pink, 75 | onPressed: () { 76 | Navigator.pushNamed(context, "/listeSayfasi"); 77 | }, 78 | ), 79 | RaisedButton( 80 | child: Text("TextField İşlemlerine Git"), 81 | color: Colors.yellowAccent.shade100, 82 | onPressed: () { 83 | Navigator.pushNamed(context, "/textFieldIslemleri"); 84 | }, 85 | ), 86 | 87 | RaisedButton( 88 | child: Text("TextFormField İşlemlerine Git"), 89 | color: Colors.yellowAccent.shade100, 90 | onPressed: () { 91 | Navigator.pushNamed(context, "/textFormField"); 92 | }, 93 | ), 94 | 95 | RaisedButton( 96 | child: Text("Diğer Form Elemanları"), 97 | color: Colors.pink.shade100, 98 | onPressed: () { 99 | Navigator.pushNamed(context, "/digerFormElemanlari"); 100 | }, 101 | ), 102 | RaisedButton( 103 | child: Text("Date Time Picker"), 104 | color: Colors.pink, 105 | onPressed: () { 106 | Navigator.pushNamed(context, "/tarihSaat"); 107 | }, 108 | ), 109 | 110 | RaisedButton( 111 | child: Text("Stepper Kullanımı"), 112 | color: Colors.indigo.shade300, 113 | onPressed: () { 114 | Navigator.pushNamed(context, "/stepper"); 115 | }, 116 | ), 117 | ], 118 | )), 119 | ), 120 | ); 121 | } 122 | } 123 | 124 | class ListeSinifi extends StatelessWidget { 125 | @override 126 | Widget build(BuildContext context) { 127 | return Scaffold( 128 | appBar: AppBar( 129 | title: Text( 130 | "Liste Sayfası", 131 | style: TextStyle(color: Colors.white), 132 | ), 133 | ), 134 | body: ListView.builder( 135 | itemBuilder: (BuildContext context, int index) { 136 | return GestureDetector( 137 | onTap: () { 138 | Navigator.pushNamed(context, "/detay/$index"); 139 | }, 140 | child: Center( 141 | child: Padding( 142 | padding: const EdgeInsets.all(8.0), 143 | child: Text("Liste elemanı $index"), 144 | ), 145 | ), 146 | ); 147 | }, 148 | itemCount: 60, 149 | )); 150 | } 151 | } 152 | 153 | class ListeDetay extends StatelessWidget { 154 | 155 | int tiklanilanIndex=0; 156 | 157 | ListeDetay(this.tiklanilanIndex); 158 | 159 | 160 | @override 161 | Widget build(BuildContext context) { 162 | return Scaffold( 163 | appBar: AppBar( 164 | title: Text( 165 | "Liste Detay Sayfası", 166 | style: TextStyle(color: Colors.white), 167 | ), 168 | ), 169 | body: Center( 170 | child: Padding( 171 | padding: const EdgeInsets.all(8.0), 172 | child: Text("Liste elemanı $tiklanilanIndex tıklanıldı"), 173 | )), 174 | ); 175 | } 176 | } 177 | 178 | class GSayfasi extends StatelessWidget { 179 | @override 180 | Widget build(BuildContext context) { 181 | return Scaffold( 182 | appBar: AppBar( 183 | title: Text( 184 | "G Sayfası", 185 | style: TextStyle(color: Colors.white), 186 | ), 187 | ), 188 | body: Center( 189 | child: Column( 190 | mainAxisAlignment: MainAxisAlignment.center, 191 | children: [ 192 | Text( 193 | "G SAYFASI", 194 | style: TextStyle(color: Colors.red, fontSize: 24), 195 | ) 196 | ], 197 | ))); 198 | } 199 | } 200 | 201 | class FSayfasi extends StatelessWidget { 202 | @override 203 | Widget build(BuildContext context) { 204 | return Scaffold( 205 | appBar: AppBar( 206 | title: Text( 207 | "F Sayfası", 208 | style: TextStyle(color: Colors.white), 209 | ), 210 | ), 211 | body: Center( 212 | child: Column( 213 | mainAxisAlignment: MainAxisAlignment.center, 214 | children: [ 215 | Text( 216 | "F SAYFASI", 217 | style: TextStyle(color: Colors.red, fontSize: 24), 218 | ), 219 | RaisedButton( 220 | child: Text("G sayfasına Git"), 221 | onPressed: () { 222 | Navigator.pushReplacementNamed(context, "/GPageb"); 223 | }, 224 | ) 225 | ], 226 | ))); 227 | } 228 | } 229 | 230 | class ESayfasi extends StatelessWidget { 231 | @override 232 | Widget build(BuildContext context) { 233 | return Scaffold( 234 | appBar: AppBar( 235 | title: Text( 236 | "E Sayfası", 237 | style: TextStyle(color: Colors.white), 238 | ), 239 | ), 240 | body: Center( 241 | child: Column( 242 | mainAxisAlignment: MainAxisAlignment.center, 243 | children: [ 244 | Text( 245 | "E SAYFASI", 246 | style: TextStyle(color: Colors.red, fontSize: 24), 247 | ), 248 | RaisedButton( 249 | child: Text("F sayfasına Git"), 250 | onPressed: () { 251 | Navigator.pushNamed(context, "/FPage"); 252 | }, 253 | ) 254 | ], 255 | ))); 256 | } 257 | } 258 | 259 | class DSayfasi extends StatelessWidget { 260 | @override 261 | Widget build(BuildContext context) { 262 | return WillPopScope( 263 | onWillPop: () { 264 | debugPrint("on will pop çalıstı"); 265 | Navigator.pop(context, false); 266 | return Future.value(false); 267 | }, 268 | child: Scaffold( 269 | appBar: AppBar( 270 | title: Text( 271 | "D Sayfası", 272 | style: TextStyle(color: Colors.white), 273 | ), 274 | ), 275 | body: Center( 276 | child: Column( 277 | mainAxisAlignment: MainAxisAlignment.center, 278 | children: [ 279 | Text( 280 | "D SAYFASI", 281 | style: TextStyle(color: Colors.red, fontSize: 24), 282 | ), 283 | RaisedButton( 284 | color: Colors.purple, 285 | child: Text("Geri Dön ve Veri Gönder"), 286 | onPressed: () { 287 | Navigator.pop(context, true); 288 | //true demek ürün silindi 289 | //false ürün silinemedi veya kullanıcı vazgeçti 290 | }, 291 | ), 292 | ], 293 | ))), 294 | ); 295 | } 296 | } 297 | 298 | class ASayfasi extends StatelessWidget { 299 | @override 300 | Widget build(BuildContext context) { 301 | return Scaffold( 302 | appBar: AppBar( 303 | title: Text( 304 | "A Sayfası", 305 | style: TextStyle(color: Colors.white), 306 | ), 307 | ), 308 | body: Center( 309 | child: Column( 310 | mainAxisAlignment: MainAxisAlignment.center, 311 | children: [ 312 | Text( 313 | "A SAYFASI", 314 | style: TextStyle(color: Colors.red, fontSize: 24), 315 | ) 316 | ], 317 | ))); 318 | } 319 | } 320 | 321 | class BSayfasi extends StatelessWidget { 322 | String gelenBaslikVerisi; 323 | 324 | BSayfasi(this.gelenBaslikVerisi); 325 | 326 | @override 327 | Widget build(BuildContext context) { 328 | return Scaffold( 329 | appBar: AppBar( 330 | title: Text( 331 | gelenBaslikVerisi, 332 | style: TextStyle(color: Colors.white), 333 | ), 334 | ), 335 | body: Center( 336 | child: Column( 337 | mainAxisAlignment: MainAxisAlignment.center, 338 | children: [ 339 | Text( 340 | gelenBaslikVerisi, 341 | style: TextStyle(color: Colors.red, fontSize: 24), 342 | ) 343 | ], 344 | ))); 345 | } 346 | } 347 | 348 | class CSayfasi extends StatelessWidget { 349 | @override 350 | Widget build(BuildContext context) { 351 | return Scaffold( 352 | appBar: AppBar( 353 | title: Text( 354 | "C Sayfası", 355 | style: TextStyle(color: Colors.white), 356 | ), 357 | ), 358 | body: Center( 359 | child: Column( 360 | mainAxisAlignment: MainAxisAlignment.center, 361 | children: [ 362 | Text( 363 | "C SAYFASI", 364 | style: TextStyle(color: Colors.red, fontSize: 24), 365 | ), 366 | RaisedButton( 367 | color: Colors.purple, 368 | child: Text("Geri Dön"), 369 | onPressed: () { 370 | Navigator.pop(context); 371 | }, 372 | ), 373 | RaisedButton( 374 | color: Colors.purple, 375 | child: Text("A Sayfasına Git"), 376 | onPressed: () { 377 | Navigator.push(context, 378 | MaterialPageRoute(builder: (context) => ASayfasi())); 379 | }, 380 | ), 381 | ], 382 | ))); 383 | } 384 | } 385 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 11 | 2D5378261FAA1A9400D5DBA9 /* flutter_assets in Resources */ = {isa = PBXBuildFile; fileRef = 2D5378251FAA1A9400D5DBA9 /* flutter_assets */; }; 12 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 13 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; }; 14 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 15 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; }; 16 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 17 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 9740EEB21CF90195004384FC /* Debug.xcconfig */; }; 18 | 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */; }; 19 | 97C146F31CF9000F007C117D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 97C146F21CF9000F007C117D /* main.m */; }; 20 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 21 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 22 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; 23 | /* End PBXBuildFile section */ 24 | 25 | /* Begin PBXCopyFilesBuildPhase section */ 26 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = { 27 | isa = PBXCopyFilesBuildPhase; 28 | buildActionMask = 2147483647; 29 | dstPath = ""; 30 | dstSubfolderSpec = 10; 31 | files = ( 32 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */, 33 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */, 34 | ); 35 | name = "Embed Frameworks"; 36 | runOnlyForDeploymentPostprocessing = 0; 37 | }; 38 | /* End PBXCopyFilesBuildPhase section */ 39 | 40 | /* Begin PBXFileReference section */ 41 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 42 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 43 | 2D5378251FAA1A9400D5DBA9 /* flutter_assets */ = {isa = PBXFileReference; lastKnownFileType = folder; name = flutter_assets; path = Flutter/flutter_assets; sourceTree = SOURCE_ROOT; }; 44 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 45 | 3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = ""; }; 46 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 47 | 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 48 | 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 49 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 50 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 51 | 9740EEBA1CF902C7004384FC /* Flutter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Flutter.framework; path = Flutter/Flutter.framework; sourceTree = ""; }; 52 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 53 | 97C146F21CF9000F007C117D /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 54 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 55 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 56 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 57 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 58 | /* End PBXFileReference section */ 59 | 60 | /* Begin PBXFrameworksBuildPhase section */ 61 | 97C146EB1CF9000F007C117D /* Frameworks */ = { 62 | isa = PBXFrameworksBuildPhase; 63 | buildActionMask = 2147483647; 64 | files = ( 65 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */, 66 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */, 67 | ); 68 | runOnlyForDeploymentPostprocessing = 0; 69 | }; 70 | /* End PBXFrameworksBuildPhase section */ 71 | 72 | /* Begin PBXGroup section */ 73 | 9740EEB11CF90186004384FC /* Flutter */ = { 74 | isa = PBXGroup; 75 | children = ( 76 | 2D5378251FAA1A9400D5DBA9 /* flutter_assets */, 77 | 3B80C3931E831B6300D905FE /* App.framework */, 78 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 79 | 9740EEBA1CF902C7004384FC /* Flutter.framework */, 80 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 81 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 82 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, 83 | ); 84 | name = Flutter; 85 | sourceTree = ""; 86 | }; 87 | 97C146E51CF9000F007C117D = { 88 | isa = PBXGroup; 89 | children = ( 90 | 9740EEB11CF90186004384FC /* Flutter */, 91 | 97C146F01CF9000F007C117D /* Runner */, 92 | 97C146EF1CF9000F007C117D /* Products */, 93 | CF3B75C9A7D2FA2A4C99F110 /* Frameworks */, 94 | ); 95 | sourceTree = ""; 96 | }; 97 | 97C146EF1CF9000F007C117D /* Products */ = { 98 | isa = PBXGroup; 99 | children = ( 100 | 97C146EE1CF9000F007C117D /* Runner.app */, 101 | ); 102 | name = Products; 103 | sourceTree = ""; 104 | }; 105 | 97C146F01CF9000F007C117D /* Runner */ = { 106 | isa = PBXGroup; 107 | children = ( 108 | 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */, 109 | 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */, 110 | 97C146FA1CF9000F007C117D /* Main.storyboard */, 111 | 97C146FD1CF9000F007C117D /* Assets.xcassets */, 112 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 113 | 97C147021CF9000F007C117D /* Info.plist */, 114 | 97C146F11CF9000F007C117D /* Supporting Files */, 115 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 116 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 117 | ); 118 | path = Runner; 119 | sourceTree = ""; 120 | }; 121 | 97C146F11CF9000F007C117D /* Supporting Files */ = { 122 | isa = PBXGroup; 123 | children = ( 124 | 97C146F21CF9000F007C117D /* main.m */, 125 | ); 126 | name = "Supporting Files"; 127 | sourceTree = ""; 128 | }; 129 | /* End PBXGroup section */ 130 | 131 | /* Begin PBXNativeTarget section */ 132 | 97C146ED1CF9000F007C117D /* Runner */ = { 133 | isa = PBXNativeTarget; 134 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; 135 | buildPhases = ( 136 | 9740EEB61CF901F6004384FC /* Run Script */, 137 | 97C146EA1CF9000F007C117D /* Sources */, 138 | 97C146EB1CF9000F007C117D /* Frameworks */, 139 | 97C146EC1CF9000F007C117D /* Resources */, 140 | 9705A1C41CF9048500538489 /* Embed Frameworks */, 141 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 142 | ); 143 | buildRules = ( 144 | ); 145 | dependencies = ( 146 | ); 147 | name = Runner; 148 | productName = Runner; 149 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */; 150 | productType = "com.apple.product-type.application"; 151 | }; 152 | /* End PBXNativeTarget section */ 153 | 154 | /* Begin PBXProject section */ 155 | 97C146E61CF9000F007C117D /* Project object */ = { 156 | isa = PBXProject; 157 | attributes = { 158 | LastUpgradeCheck = 0910; 159 | ORGANIZATIONNAME = "The Chromium Authors"; 160 | TargetAttributes = { 161 | 97C146ED1CF9000F007C117D = { 162 | CreatedOnToolsVersion = 7.3.1; 163 | }; 164 | }; 165 | }; 166 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; 167 | compatibilityVersion = "Xcode 3.2"; 168 | developmentRegion = English; 169 | hasScannedForEncodings = 0; 170 | knownRegions = ( 171 | en, 172 | Base, 173 | ); 174 | mainGroup = 97C146E51CF9000F007C117D; 175 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */; 176 | projectDirPath = ""; 177 | projectRoot = ""; 178 | targets = ( 179 | 97C146ED1CF9000F007C117D /* Runner */, 180 | ); 181 | }; 182 | /* End PBXProject section */ 183 | 184 | /* Begin PBXResourcesBuildPhase section */ 185 | 97C146EC1CF9000F007C117D /* Resources */ = { 186 | isa = PBXResourcesBuildPhase; 187 | buildActionMask = 2147483647; 188 | files = ( 189 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 190 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 191 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */, 192 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 193 | 2D5378261FAA1A9400D5DBA9 /* flutter_assets in Resources */, 194 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 195 | ); 196 | runOnlyForDeploymentPostprocessing = 0; 197 | }; 198 | /* End PBXResourcesBuildPhase section */ 199 | 200 | /* Begin PBXShellScriptBuildPhase section */ 201 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 202 | isa = PBXShellScriptBuildPhase; 203 | buildActionMask = 2147483647; 204 | files = ( 205 | ); 206 | inputPaths = ( 207 | ); 208 | name = "Thin Binary"; 209 | outputPaths = ( 210 | ); 211 | runOnlyForDeploymentPostprocessing = 0; 212 | shellPath = /bin/sh; 213 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" thin"; 214 | }; 215 | 9740EEB61CF901F6004384FC /* Run Script */ = { 216 | isa = PBXShellScriptBuildPhase; 217 | buildActionMask = 2147483647; 218 | files = ( 219 | ); 220 | inputPaths = ( 221 | ); 222 | name = "Run Script"; 223 | outputPaths = ( 224 | ); 225 | runOnlyForDeploymentPostprocessing = 0; 226 | shellPath = /bin/sh; 227 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; 228 | }; 229 | /* End PBXShellScriptBuildPhase section */ 230 | 231 | /* Begin PBXSourcesBuildPhase section */ 232 | 97C146EA1CF9000F007C117D /* Sources */ = { 233 | isa = PBXSourcesBuildPhase; 234 | buildActionMask = 2147483647; 235 | files = ( 236 | 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */, 237 | 97C146F31CF9000F007C117D /* main.m in Sources */, 238 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, 239 | ); 240 | runOnlyForDeploymentPostprocessing = 0; 241 | }; 242 | /* End PBXSourcesBuildPhase section */ 243 | 244 | /* Begin PBXVariantGroup section */ 245 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = { 246 | isa = PBXVariantGroup; 247 | children = ( 248 | 97C146FB1CF9000F007C117D /* Base */, 249 | ); 250 | name = Main.storyboard; 251 | sourceTree = ""; 252 | }; 253 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { 254 | isa = PBXVariantGroup; 255 | children = ( 256 | 97C147001CF9000F007C117D /* Base */, 257 | ); 258 | name = LaunchScreen.storyboard; 259 | sourceTree = ""; 260 | }; 261 | /* End PBXVariantGroup section */ 262 | 263 | /* Begin XCBuildConfiguration section */ 264 | 249021D3217E4FDB00AE95B9 /* Profile */ = { 265 | isa = XCBuildConfiguration; 266 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 267 | buildSettings = { 268 | ALWAYS_SEARCH_USER_PATHS = NO; 269 | CLANG_ANALYZER_NONNULL = YES; 270 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 271 | CLANG_CXX_LIBRARY = "libc++"; 272 | CLANG_ENABLE_MODULES = YES; 273 | CLANG_ENABLE_OBJC_ARC = YES; 274 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 275 | CLANG_WARN_BOOL_CONVERSION = YES; 276 | CLANG_WARN_COMMA = YES; 277 | CLANG_WARN_CONSTANT_CONVERSION = YES; 278 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 279 | CLANG_WARN_EMPTY_BODY = YES; 280 | CLANG_WARN_ENUM_CONVERSION = YES; 281 | CLANG_WARN_INFINITE_RECURSION = YES; 282 | CLANG_WARN_INT_CONVERSION = YES; 283 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 284 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 285 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 286 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 287 | CLANG_WARN_STRICT_PROTOTYPES = YES; 288 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 289 | CLANG_WARN_UNREACHABLE_CODE = YES; 290 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 291 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 292 | COPY_PHASE_STRIP = NO; 293 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 294 | ENABLE_NS_ASSERTIONS = NO; 295 | ENABLE_STRICT_OBJC_MSGSEND = YES; 296 | GCC_C_LANGUAGE_STANDARD = gnu99; 297 | GCC_NO_COMMON_BLOCKS = YES; 298 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 299 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 300 | GCC_WARN_UNDECLARED_SELECTOR = YES; 301 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 302 | GCC_WARN_UNUSED_FUNCTION = YES; 303 | GCC_WARN_UNUSED_VARIABLE = YES; 304 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 305 | MTL_ENABLE_DEBUG_INFO = NO; 306 | SDKROOT = iphoneos; 307 | TARGETED_DEVICE_FAMILY = "1,2"; 308 | VALIDATE_PRODUCT = YES; 309 | }; 310 | name = Profile; 311 | }; 312 | 249021D4217E4FDB00AE95B9 /* Profile */ = { 313 | isa = XCBuildConfiguration; 314 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 315 | buildSettings = { 316 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 317 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 318 | DEVELOPMENT_TEAM = S8QB4VV633; 319 | ENABLE_BITCODE = NO; 320 | FRAMEWORK_SEARCH_PATHS = ( 321 | "$(inherited)", 322 | "$(PROJECT_DIR)/Flutter", 323 | ); 324 | INFOPLIST_FILE = Runner/Info.plist; 325 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 326 | LIBRARY_SEARCH_PATHS = ( 327 | "$(inherited)", 328 | "$(PROJECT_DIR)/Flutter", 329 | ); 330 | PRODUCT_BUNDLE_IDENTIFIER = com.emrealtunbilek.ilkFlutterProjesi; 331 | PRODUCT_NAME = "$(TARGET_NAME)"; 332 | VERSIONING_SYSTEM = "apple-generic"; 333 | }; 334 | name = Profile; 335 | }; 336 | 97C147031CF9000F007C117D /* Debug */ = { 337 | isa = XCBuildConfiguration; 338 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 339 | buildSettings = { 340 | ALWAYS_SEARCH_USER_PATHS = NO; 341 | CLANG_ANALYZER_NONNULL = YES; 342 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 343 | CLANG_CXX_LIBRARY = "libc++"; 344 | CLANG_ENABLE_MODULES = YES; 345 | CLANG_ENABLE_OBJC_ARC = YES; 346 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 347 | CLANG_WARN_BOOL_CONVERSION = YES; 348 | CLANG_WARN_COMMA = YES; 349 | CLANG_WARN_CONSTANT_CONVERSION = YES; 350 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 351 | CLANG_WARN_EMPTY_BODY = YES; 352 | CLANG_WARN_ENUM_CONVERSION = YES; 353 | CLANG_WARN_INFINITE_RECURSION = YES; 354 | CLANG_WARN_INT_CONVERSION = YES; 355 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 356 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 357 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 358 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 359 | CLANG_WARN_STRICT_PROTOTYPES = YES; 360 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 361 | CLANG_WARN_UNREACHABLE_CODE = YES; 362 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 363 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 364 | COPY_PHASE_STRIP = NO; 365 | DEBUG_INFORMATION_FORMAT = dwarf; 366 | ENABLE_STRICT_OBJC_MSGSEND = YES; 367 | ENABLE_TESTABILITY = YES; 368 | GCC_C_LANGUAGE_STANDARD = gnu99; 369 | GCC_DYNAMIC_NO_PIC = NO; 370 | GCC_NO_COMMON_BLOCKS = YES; 371 | GCC_OPTIMIZATION_LEVEL = 0; 372 | GCC_PREPROCESSOR_DEFINITIONS = ( 373 | "DEBUG=1", 374 | "$(inherited)", 375 | ); 376 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 377 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 378 | GCC_WARN_UNDECLARED_SELECTOR = YES; 379 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 380 | GCC_WARN_UNUSED_FUNCTION = YES; 381 | GCC_WARN_UNUSED_VARIABLE = YES; 382 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 383 | MTL_ENABLE_DEBUG_INFO = YES; 384 | ONLY_ACTIVE_ARCH = YES; 385 | SDKROOT = iphoneos; 386 | TARGETED_DEVICE_FAMILY = "1,2"; 387 | }; 388 | name = Debug; 389 | }; 390 | 97C147041CF9000F007C117D /* Release */ = { 391 | isa = XCBuildConfiguration; 392 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 393 | buildSettings = { 394 | ALWAYS_SEARCH_USER_PATHS = NO; 395 | CLANG_ANALYZER_NONNULL = YES; 396 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 397 | CLANG_CXX_LIBRARY = "libc++"; 398 | CLANG_ENABLE_MODULES = YES; 399 | CLANG_ENABLE_OBJC_ARC = YES; 400 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 401 | CLANG_WARN_BOOL_CONVERSION = YES; 402 | CLANG_WARN_COMMA = YES; 403 | CLANG_WARN_CONSTANT_CONVERSION = YES; 404 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 405 | CLANG_WARN_EMPTY_BODY = YES; 406 | CLANG_WARN_ENUM_CONVERSION = YES; 407 | CLANG_WARN_INFINITE_RECURSION = YES; 408 | CLANG_WARN_INT_CONVERSION = YES; 409 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 410 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 411 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 412 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 413 | CLANG_WARN_STRICT_PROTOTYPES = YES; 414 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 415 | CLANG_WARN_UNREACHABLE_CODE = YES; 416 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 417 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 418 | COPY_PHASE_STRIP = NO; 419 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 420 | ENABLE_NS_ASSERTIONS = NO; 421 | ENABLE_STRICT_OBJC_MSGSEND = YES; 422 | GCC_C_LANGUAGE_STANDARD = gnu99; 423 | GCC_NO_COMMON_BLOCKS = YES; 424 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 425 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 426 | GCC_WARN_UNDECLARED_SELECTOR = YES; 427 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 428 | GCC_WARN_UNUSED_FUNCTION = YES; 429 | GCC_WARN_UNUSED_VARIABLE = YES; 430 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 431 | MTL_ENABLE_DEBUG_INFO = NO; 432 | SDKROOT = iphoneos; 433 | TARGETED_DEVICE_FAMILY = "1,2"; 434 | VALIDATE_PRODUCT = YES; 435 | }; 436 | name = Release; 437 | }; 438 | 97C147061CF9000F007C117D /* Debug */ = { 439 | isa = XCBuildConfiguration; 440 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 441 | buildSettings = { 442 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 443 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 444 | ENABLE_BITCODE = NO; 445 | FRAMEWORK_SEARCH_PATHS = ( 446 | "$(inherited)", 447 | "$(PROJECT_DIR)/Flutter", 448 | ); 449 | INFOPLIST_FILE = Runner/Info.plist; 450 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 451 | LIBRARY_SEARCH_PATHS = ( 452 | "$(inherited)", 453 | "$(PROJECT_DIR)/Flutter", 454 | ); 455 | PRODUCT_BUNDLE_IDENTIFIER = com.emrealtunbilek.ilkFlutterProjesi; 456 | PRODUCT_NAME = "$(TARGET_NAME)"; 457 | VERSIONING_SYSTEM = "apple-generic"; 458 | }; 459 | name = Debug; 460 | }; 461 | 97C147071CF9000F007C117D /* Release */ = { 462 | isa = XCBuildConfiguration; 463 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 464 | buildSettings = { 465 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 466 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 467 | ENABLE_BITCODE = NO; 468 | FRAMEWORK_SEARCH_PATHS = ( 469 | "$(inherited)", 470 | "$(PROJECT_DIR)/Flutter", 471 | ); 472 | INFOPLIST_FILE = Runner/Info.plist; 473 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 474 | LIBRARY_SEARCH_PATHS = ( 475 | "$(inherited)", 476 | "$(PROJECT_DIR)/Flutter", 477 | ); 478 | PRODUCT_BUNDLE_IDENTIFIER = com.emrealtunbilek.ilkFlutterProjesi; 479 | PRODUCT_NAME = "$(TARGET_NAME)"; 480 | VERSIONING_SYSTEM = "apple-generic"; 481 | }; 482 | name = Release; 483 | }; 484 | /* End XCBuildConfiguration section */ 485 | 486 | /* Begin XCConfigurationList section */ 487 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 488 | isa = XCConfigurationList; 489 | buildConfigurations = ( 490 | 97C147031CF9000F007C117D /* Debug */, 491 | 97C147041CF9000F007C117D /* Release */, 492 | 249021D3217E4FDB00AE95B9 /* Profile */, 493 | ); 494 | defaultConfigurationIsVisible = 0; 495 | defaultConfigurationName = Release; 496 | }; 497 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 498 | isa = XCConfigurationList; 499 | buildConfigurations = ( 500 | 97C147061CF9000F007C117D /* Debug */, 501 | 97C147071CF9000F007C117D /* Release */, 502 | 249021D4217E4FDB00AE95B9 /* Profile */, 503 | ); 504 | defaultConfigurationIsVisible = 0; 505 | defaultConfigurationName = Release; 506 | }; 507 | /* End XCConfigurationList section */ 508 | }; 509 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 510 | } 511 | --------------------------------------------------------------------------------