This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Gelen değerleri liste olarak return eden bir fonksiyon | |
fun <T> addList(vararg myList: T): List<T> { | |
println("Gonderilen parametre sayisi: ${myList.size} ") | |
val result = ArrayList<T>() | |
for (t in myList) // Tüm liste dolaşılarak result listesine değerler atanıyor | |
result.add(t) | |
return result | |
} | |
fun main() { | |
addList(1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun outerFunction(nice: String) { | |
val hello = "Hello, Medium" | |
fun innerFunction(awesome: String) { | |
println(awesome) | |
//Bu kısımdan outerFunction'un "nice" değişkenine erişebiliriz. | |
println(nice) | |
// Ayrıca bu kısımdan outerFunction'a ait olan "hello" değişkenine erişim sağlayabiliriz. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun sum(a : Int, b : Int) : Int { | |
return a + b | |
} | |
fun higherOrderSumFunction( name : String, | |
numberOne : Int, | |
numberTwo : Int, | |
result : (Int, Int) -> Int) { | |
println("$name ---> $numberOne + $numberTwo = ${result(numberOne,numberTwo)}") | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:convert'; | |
import 'dart:io'; | |
import 'package:http/http.dart' as http; | |
class Locations { | |
List<Offices> offices; | |
List<Regions> regions; | |
Locations({this.offices, this.regions}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'package:google_maps_flutter/google_maps_flutter.dart'; | |
import "locations.dart" as locations; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatefulWidget { | |
MyApp({Key key}) : super(key: key); | |
@override |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: googlemapswithjson | |
description: A new Flutter project. | |
publish_to: "none" # Remove this line if you wish to publish to pub.dev | |
version: 1.0.0+1 | |
environment: | |
sdk: ">=2.7.0 <3.0.0" | |
dependencies: | |
flutter: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class AddAddresActivity { | |
//activity_add_address.xml | |
private ActivityAddAddressBinding binding; | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
binding = ActivityAddAddressBinding.inflate(getLayoutInflater()); | |
setContentView(binding.getRoot()); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# To contribute improvements to CI/CD templates, please follow the Development guide at: | |
# https://docs.gitlab.com/ee/development/cicd/templates.html | |
# This specific template is located at: | |
# https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Android.gitlab-ci.yml | |
# Read more about this script on this blog post https://about.gitlab.com/2018/10/24/setting-up-gitlab-ci-for-android-projects/, by Jason Lenny | |
# If you are interested in using Android with FastLane for publishing take a look at the Android-Fastlane template. | |
image: openjdk:11-jdk |