<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Etiya - Medium]]></title>
        <description><![CDATA[Etiya Mobil Geliştirme Ekibi olarak yazılım,tasarım,test ve teknoloji süreçlerinin hikayelerini paylaştığımız Medium yayınımız. - Medium]]></description>
        <link>https://medium.com/etiya?source=rss----81c9ca15fa26---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Etiya - Medium</title>
            <link>https://medium.com/etiya?source=rss----81c9ca15fa26---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 09:12:38 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/etiya" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Mockito vs Mocktail in Flutter]]></title>
            <link>https://medium.com/etiya/mockito-vs-mocktail-in-flutter-70f32e5cdafa?source=rss----81c9ca15fa26---4</link>
            <guid isPermaLink="false">https://medium.com/p/70f32e5cdafa</guid>
            <dc:creator><![CDATA[Mercan Birer]]></dc:creator>
            <pubDate>Mon, 24 Feb 2025 11:56:49 GMT</pubDate>
            <atom:updated>2025-02-24T11:56:49.494Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*5Xw7I34BAesojw2FdsWtYQ.png" /></figure><p>mockito ve mocktail, Flutter ve Dart&#39;ta test yazarken kullanılan, testin temel araçlardan olan iki popüler mocklama (sahte nesne oluşturma) kütüphanesidir. <strong>Flutter uygulamalarında test yazmak, hataları erken tespit etmek ve kod kalitesini artırmak için kritik bir süreçtir</strong>. Bu kitaplıklar, sahte nesnelerin oluşturulmasını basitleştirerek dış bağımlılıkların davranışını simüle etmeyi kolaylaştırır.</p><p><strong>Mockito:</strong> <a href="https://pub.dev/packages/mockito">Mockito</a>, Java ve Flutter topluluklarında yaygın olarak kullanılan bir mock kütüphanesidir. Sahte nesneler oluşturmanıza, davranışlarını belirlemenize ve onlarla etkileşimleri doğrulamanıza olanak tanır.</p><p><strong>Mocktail:</strong> <a href="https://pub.dev/packages/mocktail">Mocktail</a>, Flutter için özel olarak tasarlanmış bir başka güçlü mock kütüphanesidir. Mock oluşturmak ve beklentileri belirlemek için daha özlü ve etkileyici bir sözdizimi sağlar. Daha Flutter merkezli bir yaklaşımı tercih ediyorsanız, Mocktail mükemmel bir seçim olabilir.</p><p>mockito ve mocktail arasındaki temel farklar:</p><ol><li><strong>Null Safety Desteği</strong></li></ol><p>Mockito: Dart’ın null safety özelliğini tam olarak destekler, ancak bu desteği sağlamak için build_runner gibi ek araçlara ihtiyaç duyar.Null safety öncesi ve sonrası sürümleri arasında uyumluluk sorunları olabilir.</p><p>Mocktail: Null safety ile tam uyumlu olacak şekilde tasarlanmıştır. Null safety desteği daha sorunsuz ve doğal bir şekilde entegre edilmiştir.</p><p><strong>2. Kod Üretimi (Code Generation)</strong></p><p>Mockito<strong>: </strong>Mock sınıflarını otomatik olarak oluşturmak için build_runner ve @GenerateMocks gibi araçlara ihtiyaç duyar. Bu, ek bir adım gerektirir ve proje yapısını biraz karmaşık hale getirebilir.</p><p>Mocktail<strong>: </strong>Mock sınıflarını manuel olarak oluşturmanızı gerektirir, ancak bu süreç daha basittir.build_runner gibi ek araçlara ihtiyaç duymaz, bu da proje yapısını daha basit tutar.</p><pre>class MockDio extends Mock implements Dio {}</pre><p><strong>3. Sözdizimi (Syntax)</strong></p><p>Mockito<strong>: </strong>mockito&#39;da metodları mocklamak için when ve thenReturn gibi fonksiyonlar kullanılır.</p><pre>when(mockDio.get(&#39;https://example.com&#39;)).thenReturn(Response(...));</pre><p>Mocktail<strong>: </strong>mocktail&#39;de metodları mocklamak için when ve thenAnswer gibi fonksiyonlar kullanılır, ancak sözdizimi biraz farklıdır.</p><pre>when(() =&gt; mockDio.get(&#39;https://example.com&#39;)).thenAnswer((_) async =&gt; Response(...));</pre><p><strong>4. Hata Fırlatma (Throwing Exceptions)</strong></p><p>Mockito:<strong> </strong>Hata fırlatma işlemi için thenThrow kullanılır.</p><pre>when(mockDio.get(&#39;https://example.com&#39;)).thenThrow(DioException(...));</pre><p>Mocktail:<strong> </strong>Hata fırlatma işlemi için yine thenThrow kullanılır, ancak sözdizimi biraz farklıdır.</p><pre>when(() =&gt; mockDio.get(&#39;https://example.com&#39;)).thenThrow(DioException(...));</pre><p><strong>5. Kullanım Kolaylığı</strong></p><p>Mockito: mockito, özellikle büyük projelerde mock sınıflarını otomatik olarak oluşturduğu için kullanışlıdır. Ancak, build_runner gibi ek araçlara ihtiyaç duyması, kurulum ve kullanım sürecini biraz karmaşık hale getirebilir.</p><p>Mocktail:<strong> </strong>mocktail, kullanımı daha basit ve doğrudandır.build_runner gibi ek araçlara ihtiyaç duymaz, bu da proje yapısını daha basit tutar. Özellikle küçük ve orta ölçekli projelerde daha hızlı ve kolay bir çözü</p><p><strong>6. Performans</strong></p><p>Mockito: Mockito build süresini artırabileceğini ve testleri çalıştırırken ek zaman maliyeti getirebileceğini</p><p>Mocktail:<strong> </strong>mocktail, build_runner gibi ek araçlara ihtiyaç duymadığı için daha hızlıdır.Mock sınıflarını manuel olarak oluşturmanız gerekir, ancak bu süreç çok hızlıdır.</p><p><strong>7. Avantaj ve Dezavantaj</strong></p><p>Mockito: Mockito’nun build_runner bağımlılığı, özellikle <strong>büyük projelerde build sürecini uzatabilir.</strong></p><p>Mocktail: Mocktail’in build_runner gerektirmemesi, <strong>test süreçlerini hızlandırır ve CI/CD’de daha verimli olabilir.</strong> Bunu bir avantaj olarak vurgulayabilirsin.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ohvi6RsgOuUzEp3IwCpoAA.png" /></figure><ul><li>Flutter’da dio kütüphanesini kullanarak bir HTTP isteği yapan basit bir <em>ApiService</em> sınıfının mockito ve mocktail test örneklerini inceleyelim.</li></ul><pre>import &#39;package:dio/dio.dart&#39;;<br><br>class ApiService {<br>  final Dio dio;<br><br>  ApiService({required this.dio});<br><br>  Future&lt;String&gt; fetchData() async {<br>    try {<br>      final response = await dio.get(&#39;https://jsonplaceholder.typicode.com/posts/1&#39;);<br>      return response.data.toString();<br>    } catch (e) {<br>      throw Exception(&#39;Failed to load data&#39;);<br>    }<br>  }<br>}</pre><ul><li>Mocktail ile ApiService sınıfının test yazımı</li></ul><pre>import &#39;package:flutter_test/flutter_test.dart&#39;;<br>import &#39;package:mock_test/service/api_service.dart&#39;;<br>import &#39;package:mocktail/mocktail.dart&#39;;<br>import &#39;package:dio/dio.dart&#39;;<br><br>class MockDio extends Mock implements Dio {}<br><br>void main() {<br>  late ApiService apiService;<br>  late MockDio mockDio;<br><br>  setUp(() {<br>    mockDio = MockDio();<br>    apiService = ApiService(dio: mockDio);<br>  });<br><br>  testWidgets(&#39;fetchData returns a string when the HTTP call is successful&#39;, (tester) async {<br>    when(() =&gt; mockDio.get(&#39;https://jsonplaceholder.typicode.com/posts/1&#39;))<br>        .thenAnswer((_) async =&gt; Response(<br>      data: {&#39;title&#39;: &#39;Test Title&#39;},<br>      statusCode: 200,<br>      requestOptions: RequestOptions(path: &#39;https://jsonplaceholder.typicode.com/posts/1&#39;),<br>    ));<br><br>    final result = await apiService.fetchData();<br><br>    expect(result, isA&lt;String&gt;());<br>    expect(result, contains(&#39;Test Title&#39;));<br>  });<br><br>  testWidgets(&#39;fetchData throws an exception when the HTTP call fails&#39;, (tester) async {<br>    when(() =&gt; mockDio.get(&#39;https://jsonplaceholder.typicode.com/posts/1&#39;))<br>        .thenThrow(DioException(<br>      requestOptions: RequestOptions(path: &#39;https://jsonplaceholder.typicode.com/posts/1&#39;),<br>      response: Response(<br>        statusCode: 404,<br>        requestOptions: RequestOptions(path: &#39;https://jsonplaceholder.typicode.com/posts/1&#39;),<br>      ),<br>    ));<br><br>    expect(() =&gt; apiService.fetchData(), throwsException);<br>  });<br>}</pre><ul><li>Mockito ile ApiService sınıfının test yazımı</li></ul><pre>import &#39;package:flutter_test/flutter_test.dart&#39;;<br>import &#39;package:mock_test/service/api_service.dart&#39;;<br>import &#39;package:mockito/annotations.dart&#39;;<br>import &#39;package:mockito/mockito.dart&#39;;<br>import &#39;package:dio/dio.dart&#39;;<br>import &#39;api_service_test.mocks.dart&#39;;<br><br>@GenerateMocks([Dio])<br>void main() {<br>  late ApiService apiService;<br>  late MockDio mockDio;<br><br>  setUp(() {<br>    mockDio = MockDio();<br>    apiService = ApiService(dio: mockDio);<br>  });<br><br>  testWidgets(&#39;fetchData returns a string when the HTTP call is successful&#39;, (tester) async {<br>    when(<br>      mockDio.get(&#39;https://jsonplaceholder.typicode.com/posts/1&#39;),<br>    ).thenAnswer(<br>      (_) async =&gt; Response(<br>        data: {&#39;title&#39;: &#39;Test Title&#39;},<br>        statusCode: 200,<br>        requestOptions: RequestOptions(<br>          path: &#39;https://jsonplaceholder.typicode.com/posts/1&#39;,<br>        ),<br>      ),<br>    );<br><br>    final result = await apiService.fetchData();<br><br>    expect(result, isA&lt;String&gt;());<br>    expect(result, contains(&#39;Test Title&#39;));<br>  });<br><br>  testWidgets(&#39;fetchData throws an exception when the HTTP call fails&#39;, (tester) async {<br>    when(mockDio.get(&#39;https://jsonplaceholder.typicode.com/posts/1&#39;)).thenThrow(<br>      DioException(<br>        requestOptions: RequestOptions(<br>          path: &#39;https://jsonplaceholder.typicode.com/posts/1&#39;,<br>        ),<br>        response: Response(<br>          statusCode: 404,<br>          requestOptions: RequestOptions(<br>            path: &#39;https://jsonplaceholder.typicode.com/posts/1&#39;,<br>          ),<br>        ),<br>      ),<br>    );<br><br>    expect(() =&gt; apiService.fetchData(), throwsException);<br>  });<br>}</pre><blockquote><em>Mockito, </em><em>@GenerateMocks anotasyonu ile mock sınıflarını otomatik olarak oluşturur. Bu işlemi yapmak için terminalde şu komutu çalıştırırız:</em></blockquote><pre>flutter pub run build_runner build</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=70f32e5cdafa" width="1" height="1" alt=""><hr><p><a href="https://medium.com/etiya/mockito-vs-mocktail-in-flutter-70f32e5cdafa">Mockito vs Mocktail in Flutter</a> was originally published in <a href="https://medium.com/etiya">Etiya</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Java to Jar]]></title>
            <link>https://medium.com/etiya/java-to-jar-6e867414a94e?source=rss----81c9ca15fa26---4</link>
            <guid isPermaLink="false">https://medium.com/p/6e867414a94e</guid>
            <category><![CDATA[command-line]]></category>
            <category><![CDATA[jar-file]]></category>
            <category><![CDATA[java]]></category>
            <dc:creator><![CDATA[Ferid Cafer]]></dc:creator>
            <pubDate>Wed, 11 Dec 2024 08:02:57 GMT</pubDate>
            <atom:updated>2024-12-11T08:02:57.499Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gG5rWJ4OhIpr2_GBUA1p4g.jpeg" /></figure><p>We have a java file. We do not even have an IDE to compile and build. Still we want to convert the java code into an executable jar file. How to do so?</p><p>Write your java code and save it as MyClass.java. Do not forget that in Java your file name should be the same with your class name.</p><p>Then, open terminal and go to the directory where MyClass.java locates.</p><p>In the terminal, type:</p><blockquote>javac MyClass.java</blockquote><p>This will compile your code and generate a file named MyClass.class.</p><p>Thereafter, type:</p><blockquote>jar cfve MyClass.jar MyClass MyClass.class</blockquote><p>Now you should have an executable jar file named MyClass.jar.</p><p>To run the executable file type:</p><blockquote>java -jar MyClass.jar</blockquote><p>That is all.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6e867414a94e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/etiya/java-to-jar-6e867414a94e">Java to Jar</a> was originally published in <a href="https://medium.com/etiya">Etiya</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to add multiple Flutter modules to native projects?]]></title>
            <link>https://medium.com/etiya/how-to-add-multiple-flutter-modules-to-native-projects-4dbf8486db0c?source=rss----81c9ca15fa26---4</link>
            <guid isPermaLink="false">https://medium.com/p/4dbf8486db0c</guid>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[flutter-app-development]]></category>
            <category><![CDATA[kotlin]]></category>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[native-app-development]]></category>
            <dc:creator><![CDATA[Tevfik Baş]]></dc:creator>
            <pubDate>Tue, 05 Nov 2024 08:40:27 GMT</pubDate>
            <atom:updated>2024-11-05T10:37:07.450Z</atom:updated>
            <content:encoded><![CDATA[<p>In this article, we demonstrate the steps required to add multiple Flutter modules to native projects using example projects.</p><p>In the sample project, there will be two buttons on the main page. One button will run the first module, and the other will run the second module. This way, we’ll see both modules running successfully in a native project without needing to refresh the app.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qIo-sMNtGi9pBn46SxcNYA.png" /></figure><h3>1. Creating a parent Flutter module for Flutter modules:</h3><ul><li>We are creating a new Flutter Module project.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*muaSncw2Eksq7nzBulIeiQ.png" /></figure><ul><li>We add the modules we will use to the “pubspec.yaml” file of the parent module we created.</li></ul><pre>dependencies:<br>  flutter:<br>    sdk: flutter<br>  first_module:<br>    path: path/to/your/first_module<br>  second_module:<br>    path: path/to/your/second_module</pre><ul><li>Then, we add the following code to the main.dart file of the parent module:</li></ul><pre>import &#39;dart:developer&#39;;<br>import &#39;package:flutter/material.dart&#39;;<br>import &#39;package:flutter/services.dart&#39;;<br>import &#39;package:first_module/main.dart&#39; as first_module;<br>import &#39;package:second_module/main.dart&#39; as second_module;<br><br>void main() {<br>  WidgetsFlutterBinding.ensureInitialized();<br>  initializeMethodChannel();<br>}<br>void initializeMethodChannel() {<br>  const MethodChannel channel = MethodChannel(&#39;com.example/native_channel&#39;);<br>  channel.setMethodCallHandler((MethodCall call) async {<br>    if (call.method == &#39;startModule&#39;) {<br>      String moduleName = call.arguments as String;<br>      log(&quot;Native module name: $moduleName&quot;);<br>      _startModule(<br>          moduleName);<br>    } else {<br>      debugPrint(&quot;Unknown MethodChannel command: ${call.method}&quot;);<br>    }<br>  });<br>}<br>void _startModule(String moduleName) {<br>  switch (moduleName) {<br>    case &quot;first&quot;:<br>      first_module.main();<br>      break;<br>    case &quot;second&quot;:<br>      second_module.main();<br>      break;<br>    default:<br>      second_module.main();<br>      break;<br>  }<br>}</pre><blockquote><em>! Important: </em>You may need to move the assets of the modules to the parent module</blockquote><h3>2. Integrating the parent Flutter module into native projects</h3><p>We include the parent module in your <a href="https://docs.flutter.dev/add-to-app/android/project-setup">Android</a> or <a href="https://docs.flutter.dev/add-to-app/ios/project-setup">iOS</a> project by following the official Flutter documentation.</p><h3>3. Adding the code to run the Flutter module in Native projects</h3><p>Below are example codes required to run the Flutter module in Android and iOS projects. You can add these codes to the relevant parts of your project.</p><h3>- Android</h3><ul><li>Main Activity:</li></ul><pre>package com.example.kotlin_project<br>import android.content.Intent<br>import android.os.Bundle<br>import android.widget.Button<br>import androidx.appcompat.app.AppCompatActivity<br>import io.flutter.embedding.android.FlutterActivity<br>import io.flutter.embedding.engine.FlutterEngine<br>import io.flutter.embedding.engine.FlutterEngineCache<br>import io.flutter.embedding.engine.dart.DartExecutor<br>import io.flutter.plugin.common.MethodChannel<br><br>class MainActivity : AppCompatActivity() {<br>    private val CHANNEL = &quot;com.example/native_channel&quot;<br>    private lateinit var methodChannel: MethodChannel<br>    private lateinit var flutterEngine: FlutterEngine<br>    override fun onCreate(savedInstanceState: Bundle?) {<br>        super.onCreate(savedInstanceState)<br>        setContentView(R.layout.activity_main)<br>        flutterEngine = FlutterEngine(this)<br>        flutterEngine.dartExecutor.executeDartEntrypoint(<br>            DartExecutor.DartEntrypoint.createDefault()<br>        )<br>        FlutterEngineCache<br>            .getInstance()<br>            .put(&quot;my_engine_id&quot;, flutterEngine)<br>        methodChannel = MethodChannel(flutterEngine.dartExecutor.binaryMessenger, CHANNEL)<br>        val buttonFirst = findViewById&lt;Button&gt;(R.id.button_first)<br>        val buttonSecond = findViewById&lt;Button&gt;(R.id.button_second)<br>        buttonChatbot.setOnClickListener {<br>            methodChannel.invokeMethod(&quot;startModule&quot;, &quot;first&quot;)<br>            val intent = FlutterActivity<br>                .withCachedEngine(&quot;my_engine_id&quot;)<br>                .build(this)<br>            startActivity(intent)<br>        }<br>        buttonSecond.setOnClickListener {<br>            methodChannel.invokeMethod(&quot;startModule&quot;, &quot;second&quot;)<br>            val intent = FlutterActivity<br>                .withCachedEngine(&quot;my_engine_id&quot;)<br>                .build(this)<br>            startActivity(intent)<br>        }<br>    }<br>}</pre><ul><li>Activity_main.xml:</li></ul><pre>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;<br>&lt;!-- File: res/layout/activity_main.xml --&gt;<br>&lt;LinearLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;<br>    android:id=&quot;@+id/main_layout&quot;<br>    android:layout_width=&quot;match_parent&quot;<br>    android:layout_height=&quot;match_parent&quot;<br>    android:orientation=&quot;vertical&quot;<br>    android:gravity=&quot;center&quot;<br>    android:padding=&quot;16dp&quot;&gt;<br>&lt;!-- Chatbot Module Button --&gt;<br>    &lt;Button<br>        android:id=&quot;@+id/button_first&quot;<br>        android:layout_width=&quot;wrap_content&quot;<br>        android:layout_height=&quot;wrap_content&quot;<br>        android:text=&quot;Open First Module&quot;<br>        android:layout_marginBottom=&quot;16dp&quot; /&gt;<br>    &lt;!-- Second Module Button --&gt;<br>    &lt;Button<br>        android:id=&quot;@+id/button_second&quot;<br>        android:layout_width=&quot;wrap_content&quot;<br>        android:layout_height=&quot;wrap_content&quot;<br>        android:text=&quot;Open Second Module&quot; /&gt;<br>&lt;/LinearLayout&gt;</pre><h3>- iOS</h3><ul><li>MyApp.swift:</li></ul><pre>import SwiftUI<br>import Flutter<br>import FlutterPluginRegistrant<br>@main<br>struct MyApp: App {<br>    @StateObject var flutterDependencies = FlutterDependencies()<br>    var body: some Scene {<br>        WindowGroup {<br>            ContentView()<br>                .environmentObject(flutterDependencies)<br>        }<br>    }<br>}<br>class FlutterDependencies: ObservableObject {<br>    let flutterEngine = FlutterEngine(name: &quot;my flutter engine&quot;)<br>    private let channelName = &quot;com.example/native_channel&quot;<br>    let methodChannel: FlutterMethodChannel<br>    <br>    init() {<br>        flutterEngine.run()<br>        GeneratedPluginRegistrant.register(with: self.flutterEngine)<br>        <br>        methodChannel = FlutterMethodChannel(<br>            name: channelName,<br>            binaryMessenger: flutterEngine.binaryMessenger<br>        )<br>    }<br>}</pre><ul><li>ContentView.swift:</li></ul><pre>import SwiftUI<br>import Flutter<br><br>struct FlutterViewControllerRepresentable: UIViewControllerRepresentable {<br>    @EnvironmentObject var flutterDependencies: FlutterDependencies<br>  <br>    func makeUIViewController(context: Context) -&gt; some UIViewController {<br>        return FlutterViewController(<br>            engine: flutterDependencies.flutterEngine,<br>            nibName: nil,<br>            bundle: nil<br>        )<br>    }<br>    <br>    func updateUIViewController(_ uiViewController: UIViewControllerType, context: Context) {}<br>}<br>struct ContentView: View {<br>    @EnvironmentObject var flutterDependencies: FlutterDependencies<br>    @State private var navigateToFlutterView = false<br>    <br>    var body: some View {<br>        NavigationStack {<br>            VStack {<br>                Button(&quot;First&quot;) {<br>                    flutterDependencies.methodChannel.invokeMethod(&quot;startModule&quot;, arguments: &quot;first&quot;)<br>                    navigateToFlutterView = true<br>                }<br>                .padding()<br>                <br>                Button(&quot;Second&quot;) {<br>                    flutterDependencies.methodChannel.invokeMethod(&quot;startModule&quot;, arguments: &quot;second&quot;)<br>                    navigateToFlutterView = true<br>                }<br>                .padding()<br>                <br>                NavigationLink(<br>                    destination: FlutterViewControllerRepresentable()<br>                        .edgesIgnoringSafeArea(.all),<br>                    isActive: $navigateToFlutterView<br>                ) {<br>                    EmptyView()<br>                }<br>            }<br>            .navigationTitle(&quot;Home&quot;)<br>        }<br>    }<br>}</pre><p>In our example, the output looks like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x9_SDCUKAYcbKBNMK9344w.png" /></figure><p>In this article, we’ve explored in detail the process of adding multiple Flutter modules to native projects, a topic rarely covered on the internet. I hope this guide helps you overcome any challenges you encounter in your projects and simplifies your development process. If you have any questions or feedback, please feel free to reach out to me. Your insights are invaluable in making future content even more helpful.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4dbf8486db0c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/etiya/how-to-add-multiple-flutter-modules-to-native-projects-4dbf8486db0c">How to add multiple Flutter modules to native projects?</a> was originally published in <a href="https://medium.com/etiya">Etiya</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Web Sequence Diagrams]]></title>
            <link>https://medium.com/etiya/web-sequence-diagrams-e7e6090105c9?source=rss----81c9ca15fa26---4</link>
            <guid isPermaLink="false">https://medium.com/p/e7e6090105c9</guid>
            <category><![CDATA[uml]]></category>
            <category><![CDATA[clarity]]></category>
            <category><![CDATA[diagrams]]></category>
            <category><![CDATA[makale]]></category>
            <category><![CDATA[web-sequence-diagram]]></category>
            <dc:creator><![CDATA[Cansu Sarp]]></dc:creator>
            <pubDate>Fri, 18 Oct 2024 12:52:51 GMT</pubDate>
            <atom:updated>2024-10-18T12:52:51.501Z</atom:updated>
            <content:encoded><![CDATA[<p>In the fast-paced world of software development, clarity and communication are paramount. Whether you’re designing complex systems or just trying to explain a simple process, having the right tools to visualize your ideas can make all the difference. One such tool that has gained popularity among developers and project managers alike is the <strong>Web Sequence Diagram</strong>.</p><h3>What Are Web Sequence Diagrams?</h3><p>At their core, sequence diagrams are a type of UML (Unified Modeling Language) diagram used to represent interactions between objects in a sequential order. They are handy for mapping out the flow of processes, highlighting how different system components interact over time.</p><p><strong>Web Sequence Diagrams</strong> take this concept online, providing a platform where users can create, share, and collaborate on sequence diagrams directly from their web browsers. With no need for complex software installations or steep learning curves, Web Sequence Diagrams make it bringing your ideas to life visually easy.</p><h3>Why Use Web Sequence Diagrams?</h3><h3>1. Ease of Use</h3><p>One of the standout features of Web Sequence Diagrams is their simplicity. Unlike traditional UML tools, which can be cumbersome and intimidating for <strong><em>newcomers</em></strong>, Web Sequence Diagrams offer a clean, intuitive interface. Users can quickly sketch out interactions between objects using a straightforward syntax, making it accessible even to those with minimal technical expertise.</p><h3>2. Accessibility</h3><p>Because Web Sequence Diagrams are hosted online, they can be accessed from anywhere with an internet connection. This makes them ideal for remote teams or individuals collaborating across different locations. There’s no need to worry about compatibility issues or software updates; everything is handled in the cloud.</p><h3>3. Collaboration</h3><p>In today’s collaborative work environment, the ability to share and edit diagrams in real time is crucial. Web Sequence Diagrams offer features that allowing multiple users to work on the same diagram simultaneously, ensuring that everyone stays on the same page. This collaborative approach reduces the risk of miscommunication and helps teams iterate on designs more effectively.</p><h3>4. Integration with Other Tools</h3><p>Web Sequence Diagrams often come with integration options for other popular development tools and platforms. This can include exporting diagrams to formats like PNG or SVG, embedding them in documentation, or linking them directly to project management tools like JIRA or Confluence. These integrations streamline workflows and ensure that your diagrams are always up-to-date and accessible.</p><h3>5. Cost-Effective</h3><p>For startups or small teams, budget constraints can be a significant concern. Traditional UML tools often come with hefty price tags, but many Web Sequence Diagram platforms offer free or low-cost options. This makes them an attractive choice for teams that need powerful visualization tools without breaking the bank :)</p><h3>How to Create a Web Sequence Diagram</h3><p>Creating a Web Sequence Diagram is straightforward, even for beginners. Here’s a step-by-step guide to get you started:</p><h4>Step 1: Choose a Platform</h4><p>Several platforms offer Web Sequence Diagram tools, such as <a href="https://www.websequencediagrams.com/">WebSequenceDiagrams.com</a>, <a href="http://plantuml.com/">PlantUML</a>, or <a href="https://www.lucidchart.com/">Lucidchart</a>. Choose the one that best suits your needs.</p><h4>Step 2: Start with the Basics</h4><p>Begin by defining the participants in your sequence diagram. These could be objects, systems, or even actors like users or administrators. In Web Sequence Diagrams, participants are usually represented by vertical lines.</p><h4>Step 3: Define Interactions</h4><p>Next, define the interactions between your participants. These interactions are represented by arrows that show the flow of communication or data between different parts of the system. Be sure to label each interaction clearly to avoid confusion.</p><h4>Step 4: Add Details</h4><p>You can refine your diagram by adding loops, conditions, and other advanced elements. This helps to capture the nuances of your system’s behavior and provides a more comprehensive view of the process.</p><h4>Step 5: Review and Collaborate</h4><p>Once your diagram is complete, share it with your team for feedback. Use the platform’s collaboration features to make any necessary adjustments in real time. Once everyone is satisfied, you can export the diagram or embed it in your documentation.</p><h3>Use Cases for Web Sequence Diagrams</h3><p>Web Sequence Diagrams are incredibly versatile and can be used in various scenarios, including:</p><ul><li><strong>API Design:</strong> Visualizing how different endpoints interact within an application.</li><li><strong>System Architecture:</strong> Mapping out the flow of data and control between different system components.</li><li><strong>Business Processes:</strong> Documenting and analyzing business workflows and identifying potential bottlenecks.</li><li><strong>Troubleshooting:</strong> Pinpointing where issues may be occurring in a process by visualizing each step in detail.</li></ul><h3>How to Draw Sequence Diagram Simply</h3><p><strong>Basic Dispact</strong></p><ul><li>The image shows the interaction between two objects. The process begins with “Object 1”. Then, “Object 1” dispact to “Object 2”.</li><li>After dispact, Object 2 can callback for the dispact. Its kind a response for the reaction. Besides, Object 2 can jest return.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/702/1*kK9uy16G3u5b_UuAQDCE6A.png" /></figure><pre>title Basic Diagram Drawing<br><br>Object 1-&gt;Object 2: dispact<br>Object 2-&gt;Object 1: callback<br>Object 2--&gt;Object 1: return</pre><p><strong>Loop and Condition</strong></p><p>The “alt” word use for condition. Object 3 dispacts to Objects 4 for condition “Situation 1”. If the “Situation 1” cant be happened then “Situation 2” must be done.</p><pre>alt Condition ( If )<br>    Object 3-&gt;Object 4: Situation 1<br>else Else<br>    Object 3-&gt;Object 4: Situation 2<br>end</pre><p>The “loop” word use for repetitive commands . The “Object 5” dispact a repetitive situation to “Object 6” . In the code the repetitive count should be defined.</p><pre>loop show the alert (Loop subject) <br>    Object 5-&gt;Object 6: 100 times<br>end</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T1mtBiTC3yN2QjgUTmGEtA.png" /></figure><h3>Conclusion</h3><p>Web Sequence Diagrams are a powerful, accessible, and cost-effective tool for anyone involved in software development, project management, or business process design. By simplifying creating and sharing sequence diagrams, they help teams communicate more effectively, streamline workflows, and ultimately build better products.</p><p>Whether you’re a seasoned developer or just getting started, incorporating Web Sequence Diagrams into your toolkit is a smart move that can enhance your productivity and clarity in visualizing complex processes.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e7e6090105c9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/etiya/web-sequence-diagrams-e7e6090105c9">Web Sequence Diagrams</a> was originally published in <a href="https://medium.com/etiya">Etiya</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Flutter’da WebView Nedir ve Nasıl Kullanılır?]]></title>
            <link>https://medium.com/etiya/flutterda-webview-nedir-ve-nas%C4%B1l-kullan%C4%B1l%C4%B1r-bac35e622bd8?source=rss----81c9ca15fa26---4</link>
            <guid isPermaLink="false">https://medium.com/p/bac35e622bd8</guid>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[webview]]></category>
            <dc:creator><![CDATA[Mercan Birer]]></dc:creator>
            <pubDate>Fri, 18 Oct 2024 11:21:46 GMT</pubDate>
            <atom:updated>2024-10-18T11:21:46.237Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_f4OYNmx_qDugvHR" /></figure><p>Selamlar,</p><p>Flutter uygulamasında web içeriklerini göstermek için kullanılan WebView’dan bahsedeceğim. WebView ile bir uygulama içerisinde web sayfalarını görüntüleyebilir, kullanıcıların uygulama içerisinde gezinmelerini sağlayabiliriz.</p><p><strong>WebView Nedir?</strong></p><p>WebView, Flutter uygulamanız içinde bir web tarayıcısı oluşturmanıza olanak tanır. Bu, bir web sayfasını veya çevrimiçi içeriği doğrudan uygulamamız içinde gömülü bir şekilde göstermenizi sağlar.</p><blockquote>WebView, kullanıcıların uygulamayı terk etmeden internet üzerinde gezinti yapmasına olanak tanır ve bu da kullanıcı deneyimini geliştirir.</blockquote><p><strong>WebView’in Avantajları</strong></p><ul><li><strong>Yerel uygulama içinde web içeriklerini gösterebilme</strong>: Uygulamanızın içinde HTML, CSS ve JavaScript ile yazılmış sayfaları gösterebiliriz.</li><li><strong>Yerel ve web tabanlı özellikleri birleştirme</strong>: Bir uygulamada hem yerel hem de web tabanlı özellikler bir arada sunulabilir.</li><li><strong>Mevcut web uygulamalarını entegre etme</strong>: WebView sayesinde halihazırda çalışan bir web uygulamasını mobil uygulamaya entegre edebiliriz.</li></ul><p><strong>WebView Kullanımı</strong></p><p>Flutter’da WebView kullanmak oldukça basittir. Bunun için birden fazla paketler vardır. Biz <a href="https://medium.com/r?url=https%3A%2F%2Fpub.dev%2Fpackages%2Fflutter_inappwebview"><strong>InAppWebView</strong></a><strong> </strong>ile web sayfalarını görüntülemeyi sağlayan bir örnek yapacağız. Bu paket web özelliklerine ihtiyaç duyduğunuzda kesinlikle göz önünde bulundurmamız gereken güçlü bir alternatiftir</p><p><strong>1. WebView Flutter Paketinin Kurulumu</strong></p><p>İlk adım olarak, pubspec.yaml dosyamıza flutter_inappwebview paketini ekliyoruz.</p><pre>flutter pub add flutter_inappwebview</pre><pre>dependencies:<br>  flutter:<br>    sdk: flutter<br>  flutter_inappwebview: latest_version</pre><p><strong>2. iOS için Ek Yapılandırma</strong></p><p>Eğer iOS’ta InAppWebView kullanmayı planlıyorsak, bazı ek yapılandırmalar yapmamız gerekiyor. ios/Runner/Info.plist dosyasına aşağıdaki satırları ekliyoruz:</p><pre>&lt;key&gt;NSAppTransportSecurity&lt;/key&gt;<br>&lt;dict&gt;<br>    &lt;key&gt;NSAllowsArbitraryLoads&lt;/key&gt;<br>    &lt;true/&gt;<br>&lt;/dict&gt;<br>&lt;key&gt;io.flutter.embedded_views_preview&lt;/key&gt;<br>&lt;true/&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Lpi7G3tYc7zICPUjSPNm2Q.png" /><figcaption><strong>Info.plist dosyasını okuması için sözdizimine dikkat edilmeli</strong></figcaption></figure><blockquote>Bu yapılandırma, WebView’in iOS’ta çalışması için gereklidir.</blockquote><p><strong>3.InAppWebView Kullanımı</strong></p><p><em>‘</em><a href="https://flutter.dev/"><em>https://flutter.dev</em></a><em>&#39; </em>web sayfasını kullanarak örnek yapalım.</p><pre>import &#39;package:flutter/material.dart&#39;;<br>import &#39;package:flutter_inappwebview/flutter_inappwebview.dart&#39;;<br><br>void main() {<br>  runApp(const MyApp());<br>}<br><br>class MyApp extends StatelessWidget {<br>  const MyApp({super.key});<br><br>  @override<br>  Widget build(BuildContext context) {<br>    return const MaterialApp(<br>      title: &#39;Flutter Demo&#39;,<br>      home: InAppWebViewExample(),<br>      debugShowCheckedModeBanner: false,<br>    );<br>  }<br>}<br><br>class InAppWebViewExample extends StatefulWidget {<br>  const InAppWebViewExample({super.key});<br><br>  @override<br>  InAppWebViewExampleState createState() =&gt; InAppWebViewExampleState();<br>}<br><br>class InAppWebViewExampleState extends State&lt;InAppWebViewExample&gt; {<br>  late InAppWebViewController _webViewController;<br><br>  @override<br>  Widget build(BuildContext context) {<br>    return Scaffold(<br>      appBar: AppBar(<br>        title: const Text(&#39;InAppWebView Example&#39;),<br>      ),<br>      body: InAppWebView(<br>        initialUrlRequest: URLRequest(<br>          url: WebUri(&#39;https://flutter.dev&#39;),<br>        ),<br>        onWebViewCreated: (InAppWebViewController controller) {<br>          _webViewController = controller;<br>        },<br>        onLoadStart: (controller, url) {<br>          setState(() {<br>            print(&quot;Page started loading: $url&quot;);<br>          });<br>        },<br>        onLoadStop: (controller, url) async {<br>          setState(() {<br>            print(&quot;Page finished loading: $url&quot;);<br>          });<br>        },<br>        onReceivedError: (controller, request, error) {<br>          setState(() {<br>            print(&quot;Page error: $error&quot;);<br>          });<br>        },<br>      ),<br>    );<br>  }<br>}</pre><ul><li>initialUrlRequest:Bu özellik, WebView’in başlatılacağı URL’yi belirler. URL’yi Uri.parse() fonksiyonunu kullanarak geçebiliriz.</li><li>onWebViewCreated:WebView’in oluşturulduğu anda çağrılan geri çağırma fonksiyonudur. Bu fonksiyon içinde WebViewController’a erişebiliriz. Bu sayede WebView ile çeşitli işlemler yapabiliriz (sayfa yükleme, JavaScript çalıştırma vb.).</li><li>onLoadStart - onLoadStop:Web sayfasının yüklenmeye başladığı ve bittiği anları yakalamak için kullanılır. Bu geri çağırma fonksiyonları sayfa yükleme durumlarını izlemek ve kullanıcıya geri bildirim vermek için kullanışlıdır.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/324/1*RUQeixt5kZ16ifRzXTvHmw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B4eIUMv5BnZCW5aAR0yprg.png" /></figure><p>Umarım faydalı olur, iyi çalışmalar. 💙</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bac35e622bd8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/etiya/flutterda-webview-nedir-ve-nas%C4%B1l-kullan%C4%B1l%C4%B1r-bac35e622bd8">Flutter’da WebView Nedir ve Nasıl Kullanılır?</a> was originally published in <a href="https://medium.com/etiya">Etiya</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Flutter’da Konum Bilgisine Erişme ve Harita İşlemleri]]></title>
            <link>https://medium.com/etiya/flutter-da-konum-bilgisine-eri%C5%9Fme-ve-harita-i%CC%87%C5%9Flemleri-5577e3ef1247?source=rss----81c9ca15fa26---4</link>
            <guid isPermaLink="false">https://medium.com/p/5577e3ef1247</guid>
            <category><![CDATA[flutter-google-map]]></category>
            <category><![CDATA[flutter-widget]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[flutter-maps]]></category>
            <category><![CDATA[flutter-app-development]]></category>
            <dc:creator><![CDATA[Ahmet YILDIZ]]></dc:creator>
            <pubDate>Mon, 14 Oct 2024 11:13:46 GMT</pubDate>
            <atom:updated>2024-12-17T10:43:52.548Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*doqHm81gYBIFr_F8K1EyWw.jpeg" /></figure><p>Herkese merhaba, Flutter’ da lokasyon ve harita işlemlerinin nasıl yapılacağından bahsedeceğim. Öncelikle yeni bir Flutter projesi oluşturalım. Ardından basitçe bir ekran tasarımı yapalım.</p><pre>import &#39;package:flutter/material.dart&#39;;<br><br>class HomePage extends StatefulWidget {<br>  const HomePage({super.key});<br><br>  @override<br>  State&lt;HomePage&gt; createState() =&gt; _HomePageState();<br>}<br><br>class _HomePageState extends State&lt;HomePage&gt; {<br>  @override<br>  Widget build(BuildContext context) {<br>    return Scaffold(<br>        appBar: AppBar(<br>          title: const Text(&quot;Location&quot;),<br>        ),<br>        body: Center(<br>          child: Column(<br>            mainAxisAlignment: MainAxisAlignment.spaceEvenly,<br>            children: [<br>              const Text(&quot;Latitude: &quot;, style: TextStyle(fontSize: 20),),<br>              const Text(&quot;Longitude: &quot;, style: TextStyle(fontSize: 20),),<br>              ElevatedButton(onPressed: () {<br><br>              }, child: const Text(&quot;Get Location&quot;)),<br>            ],<br>          ),<br>        ));<br>  }<br>}</pre><p>Oluşturduğumuz bu ekranı main.dart dosyamıza bağlayalım.</p><pre>import &#39;package:flutter/material.dart&#39;;<br>import &#39;package:location_map/home_page.dart&#39;;<br><br>void main() {<br>  runApp(const MyApp());<br>}<br><br>class MyApp extends StatelessWidget {<br>  const MyApp({super.key});<br><br>  @override<br>  Widget build(BuildContext context) {<br>    return MaterialApp(<br>      title: &#39;Flutter Demo&#39;,<br>      debugShowCheckedModeBanner: false,<br>      theme: ThemeData(<br>        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),<br>        useMaterial3: true,<br>      ),<br>      home: const HomePage(),<br>    );<br>  }<br>}</pre><p>Ardından pubspec.yaml dosyamıza gelip “geolocator” isimli paketimizi ekleyelim, pakete aşağıdaki linkten ulaşabiliriz.</p><p><a href="https://pub.dev/packages/geolocator">geolocator | Flutter package</a></p><pre>dependencies:<br>  flutter:<br>    sdk: flutter<br>  geolocator: 11.1.0</pre><p>Geolocator, Android SDK 34 ve üzerinde çalışıyor, bu sebeple eğer daha düşük bir SDK versiyonu kullanıyorsak hata alabiliriz. Eğer hata alırsak “<strong>app/build.gradle</strong>” dosyamızdaki “<strong>compileSdkVersion</strong>” ve “<strong>targetSdkVersion</strong>” değerlerini <strong>34</strong> yapmalıyız, minSdkVersion da 20 olmalı. “<strong>android/build.gradle</strong>” dosyamızdaki “<strong>ext.kotlin_version</strong>” da en az “<strong>1.9.10</strong>” olmalı.</p><p>Sonrasında “<strong>gradle.properties</strong>” dosyamıza geliyoruz, burada aşağıdaki kodların olması gerekli, eğer yoksa ekliyoruz.</p><pre>android.useAndroidX=true<br>android.enableJetifier=true</pre><p>Android tarafındaki izinler için, “<strong>AndroidManifest.xml</strong>” dosyamıza gelerek aşağıdaki kodları ekliyoruz. Ek olarak buradaki “<strong>android:exported</strong>” değeri de <strong>true</strong> olmalı, bunu da kontrol edelim.</p><pre>&lt;uses-permission android:name=&quot;android.permission.INTERNET&quot;/&gt;<br>&lt;uses-permission android:name=&quot;android.permission.ACCESS_FINE_LOCATION&quot;/&gt;<br>&lt;uses-permission android:name=&quot;android.permission.ACCESS_COARSE_LOCATION&quot;/&gt;</pre><p>Ardından Ios tarafındaki izinler için “Info.plist” dosyamıza geliyoruz, aşağıdaki kodları ekliyoruz.</p><pre>&lt;key&gt;NSLocationWhenInUseUsageDescription&lt;/key&gt;<br>&lt;string&gt;Location permission&lt;/string&gt;</pre><p>Gerekli kurulumları yaptık, izinleri verdik, şimdi tasarladığımız ekrana dönerek kodlama kısmına geçebiliriz.</p><p>Burada enlem ve boylam için iki adet değişken tanımlıyoruz. Ardından enlem ve boylam bilgilerini getirecek olan asenkron fonksiyonumuzu yazıyoruz. Burada dikkat etmemiz gereken bir durum var. “<strong>desiredAccuracy</strong>” değeri bize hassasiyeti seçtiriyor. Ancak bu hassasiyet yüksek olunca cihazın batarya tükemi de yüksek oluyor. Bu neden ihtiyacımıza uygun olan hassasiyeti seçmek önemli. Hassasiyetle ilgili aralıkları aşağıda görebiliriz. Kodumuzun son hali de şu şekilde:</p><pre>import &#39;package:flutter/material.dart&#39;;<br>import &#39;package:geolocator/geolocator.dart&#39;;<br><br>class HomePage extends StatefulWidget {<br>  const HomePage({super.key});<br><br>  @override<br>  State&lt;HomePage&gt; createState() =&gt; _HomePageState();<br>}<br><br>class _HomePageState extends State&lt;HomePage&gt; {<br>  double latitude = 0.0;<br>  double longitude = 0.0;<br><br>  Future&lt;void&gt; getLocation() async {<br>    var location = await Geolocator.getCurrentPosition(desiredAccuracy: LocationAccuracy.high);<br>    setState(() {<br>      latitude = location.latitude;<br>      longitude = location.longitude;<br>    });<br>  }<br><br>  @override<br>  Widget build(BuildContext context) {<br>    return Scaffold(<br>        appBar: AppBar(<br>          title: const Text(&quot;Location&quot;),<br>        ),<br>        body: Center(<br>          child: Column(<br>            mainAxisAlignment: MainAxisAlignment.spaceEvenly,<br>            children: [<br>              Text(&quot;Latitude: $latitude&quot;, style: const TextStyle(fontSize: 20),),<br>              Text(&quot;Longitude: $longitude&quot;, style: const TextStyle(fontSize: 20),),<br>              ElevatedButton(onPressed: () {<br>                    getLocation();<br>                  },<br>                  child: const Text(&quot;Get Location&quot;)),<br>            ],<br>          ),<br>        ),<br>    );<br>  }<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*msjtgi5QdPoDGOxqUP6J8Q.png" /><figcaption>Hassasiyet aralıkları</figcaption></figure><p>Şimdi uygulamayı çalıştırıp gerekli izinleri vermemiz gerekli. Uygulama çalıştıktan sonra, emulatorde veya fiziksel cihazda uygulamanın ayarlarına giderek gerekli düzenlemeyi yapıyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/574/1*mSoTXpsTLWJx_eIULf2ANA.png" /></figure><p>Bu düzenlemeden sonra da Google Maps uygulamasını bir kez açıp, sağ alt tarafta bulunan, bulunduğumuz konumu gösteren butona bir kez tıklıyoruz. Ardından açılan uyarıda da iznimizi veriyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/574/1*draxXlk9Fby2Sf2HqmXitA.png" /></figure><p>Şimdi kendi uygulamamıza geri dönüyoruz, butona tıkladığımızda bize enlem ve boylam bilgilerini getirecektir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/570/1*sD0HRb9ELPJI3m0RIB06TA.png" /></figure><p>Enlem ve boylam bilgilerine eriştiğimize göre şimdi harita kullanımıyla ilgili kısma geçelim. MapPage isminde yeni bir sayfa oluşturalım, basitçe bir tasarım yapalım:</p><pre>import &#39;package:flutter/material.dart&#39;;<br><br>class MapPage extends StatefulWidget {<br>  const MapPage({super.key});<br><br>  @override<br>  State&lt;MapPage&gt; createState() =&gt; _MapPageState();<br>}<br><br>class _MapPageState extends State&lt;MapPage&gt; {<br>  @override<br>  Widget build(BuildContext context) {<br>    return Scaffold(<br>      appBar: AppBar(<br>        title: const Text(&quot;Map&quot;),<br>      ),<br>      body: Center(<br>        child: Column(<br>          mainAxisAlignment: MainAxisAlignment.spaceEvenly,<br>          children: [<br>            ElevatedButton(<br>              onPressed: () {<br><br>              },<br>              child: const Text(&quot;Go to Location&quot;),<br>            ),<br>          ],<br>        ),<br>      ),<br>    );<br>  }<br>}</pre><p>Ardından pubspec.yaml dosyamıza gelip google_maps_flutter paketinin kurulumunu tamamlayalım, pakete aşağıdaki linkten ulaşabiliriz:</p><p><a href="https://pub.dev/packages/google_maps_flutter">google_maps_flutter | Flutter package</a></p><pre>dependencies:<br>  flutter:<br>    sdk: flutter<br>  geolocator: 11.1.0<br>  google_maps_flutter: ^2.5.3</pre><p>Android tarafındaki izinleri yukarıda verdiğimiz için tekrar aynı işlemleri yapmamıza gerek yok, o işlemleri yapmadıysanız harita kullanımı için hata alırsınız. Bu noktaya dikkat etmek gerekli.</p><p>Harita ile işlem yapabilmek için bir Api Key gerekli. “<a href="https://mapsplatform.google.com/">https://mapsplatform.google.com/</a>” linkinden bir Api Key oluşturabilirsiniz. Belirli bir kullanıma kadar Api Key ücretsiz oluşturulabilir, ancak bir kredi kartı bilgisi girilmesi gerekiyor.</p><p>“<strong>AndroidManifest.xml</strong>” dosyamıza gelerek Api Keyi ekliyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/738/1*U-ukpBacFbk9IkxEKARwRg.png" /></figure><p>Ardından Ios için Runner içerisindeki “<strong>AppDelegate.swift</strong>” dosyamıza geliyoruz, GoogleMaps’ i import olarak ekliyoruz, ardından da Api Keyi ekliyoruz:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*Yq3VHY_zLFwRWt_mm29vNA.png" /></figure><p>Daha sonra Info.plist dosyamıza gelip aşağıdaki izinleri ekliyoruz:</p><pre>&lt;key&gt;io.flutter.embedded_views_preview&lt;/key&gt;<br>&lt;string&gt;YES&lt;/string&gt;</pre><p>Şimdi kodlama kısmına geçebiliriz. Bir controller oluşturuyoruz. Ardından başlangıç pozisyonu belirlememiz gerekli, bunu belirliyoruz. Örneğin ben İzmir, Çeşme’ yi belirledim. Bir de gitmek istediğimiz lokasyonu belirlemeliyiz, bunu da İzmir, Konak olarak belirledim. Sonrasında lokasyona gitmek için fonksiyon yazıyoruz. Yazdığımız fonksiyonu da butona tıklayınca çalıştıracağız. Ekranda bir harita görüntüsü oluşturmak için GoogleMap widgetını kullanıyoruz. Burada “<strong>initialCameraPosition”</strong> değerine başlangıç pozisyonumuzu veriyoruz. “<strong>mapType”</strong>, haritanın türünü belirliyor, ben normal bir harita görüntüsü seçtim, farklı tipte görüntü de seçebiliriz. onMapCreated ile de controller oluşturup, yukarıda oluşturduğumuz controller ile bağdaştırıyoruz. Son olarak da ekranın tamamına yayılmaması için bir haritayı Sizedbox içine alıyoruz. Kodumuzun son hali şu şekilde:</p><pre>import &#39;dart:async&#39;;<br><br>import &#39;package:flutter/material.dart&#39;;<br>import &#39;package:google_maps_flutter/google_maps_flutter.dart&#39;;<br><br>class MapPage extends StatefulWidget {<br>  const MapPage({super.key});<br><br>  @override<br>  State&lt;MapPage&gt; createState() =&gt; _MapPageState();<br>}<br><br>class _MapPageState extends State&lt;MapPage&gt; {<br>  Completer&lt;GoogleMapController&gt; mapController = Completer();<br><br>  var startLocation = const CameraPosition(target: LatLng(38.309, 26.225), zoom: 11);<br>  var endLocation = const CameraPosition(target: LatLng(38.4219809, 27.0879633), zoom: 13);<br><br>  Future&lt;void&gt; goToLocation() async {<br>    final GoogleMapController controller = await mapController.future;<br>    controller.animateCamera(CameraUpdate.newCameraPosition(endLocation));<br>  }<br><br>  @override<br>  Widget build(BuildContext context) {<br>    return Scaffold(<br>      appBar: AppBar(<br>        title: const Text(&quot;Map&quot;),<br>      ),<br>      body: Center(<br>        child: Column(<br>          mainAxisAlignment: MainAxisAlignment.spaceEvenly,<br>          children: [<br>            SizedBox(width: 250, height: 250,<br>              child: GoogleMap(<br>                initialCameraPosition: startLocation,<br>                mapType: MapType.normal,<br>                onMapCreated: (GoogleMapController controller) {<br>                  mapController.complete(controller);<br>                },<br>              ),<br>            ),<br>            ElevatedButton(<br>              onPressed: () {<br>                goToLocation();<br>              },<br>              child: const Text(&quot;Go to Location&quot;),<br>            ),<br>          ],<br>        ),<br>      ),<br>    );<br>  }<br>}</pre><p>Bu şekilde projemizi çalıştırdığımızda, önce başlangıç konumumuzu gösteren bir harita görüntüsü oluşacak, butona tıkladığımızda ise bitiş noktasına gidecek.</p><p>Şimdi haritada işaretlemeyi nasıl yapacağımıza bakalım. Bir liste oluşturuyoruz, içerisinde işaretleme yapmak istediğimiz yerler olacak. Örneğin ben az önceki başlangıç ve bitiş noktalarını ekliyorum. Sonrasında bu oluşturduğumuz işaret listesini, ekranımızdaki GoogleMap widgetına ekliyoruz. Bu yaptığımız işlem sayesinde belirlediğimiz konumlar haritada işaretlenmiş olacak ve yazdığımız açıklamaları da üstüne tıkladığımızda görebileceğiz. Dilersek üstüne tıkladığımızda yol tarifi alabiliriz veya Google Maps uygulamasında da görüntüleyebiliriz. Kodumuzun son hali de şu şekilde:</p><pre>import &#39;dart:async&#39;;<br><br>import &#39;package:flutter/material.dart&#39;;<br>import &#39;package:google_maps_flutter/google_maps_flutter.dart&#39;;<br><br>class MapPage extends StatefulWidget {<br>  const MapPage({super.key});<br><br>  @override<br>  State&lt;MapPage&gt; createState() =&gt; _MapPageState();<br>}<br><br>class _MapPageState extends State&lt;MapPage&gt; {<br>  Completer&lt;GoogleMapController&gt; mapController = Completer();<br><br>  var startLocation = const CameraPosition(target: LatLng(38.2966934,26.3943467), zoom: 11);<br>  var endLocation = const CameraPosition(target: LatLng(38.4275454,27.131135), zoom: 11);<br><br>  List&lt;Marker&gt; mapMarkers = [<br>    const Marker(<br>      markerId: MarkerId(&quot;1&quot;),<br>      position: LatLng(38.2966934,26.3943467),<br>      infoWindow: InfoWindow(title: &quot;Start Location&quot;, snippet: &quot;Çeşme&quot;),<br>    ),<br>    const Marker(<br>      markerId: MarkerId(&quot;2&quot;),<br>      position: LatLng(38.4275454,27.131135),<br>      infoWindow: InfoWindow(title: &quot;End Location&quot;, snippet: &quot;Konak&quot;),<br>    ),<br>  ];<br><br>  Future&lt;void&gt; goToLocation() async {<br>    final GoogleMapController controller = await mapController.future;<br>    controller.animateCamera(CameraUpdate.newCameraPosition(endLocation));<br>  }<br><br>  @override<br>  Widget build(BuildContext context) {<br>    return Scaffold(<br>      appBar: AppBar(<br>        title: const Text(&quot;Map&quot;),<br>      ),<br>      body: Center(<br>        child: Column(<br>          mainAxisAlignment: MainAxisAlignment.spaceEvenly,<br>          children: [<br>            SizedBox(width: 400, height: 600,<br>              child: GoogleMap(<br>                initialCameraPosition: startLocation,<br>                mapType: MapType.normal,<br>                markers: Set.from(mapMarkers),<br>                onMapCreated: (GoogleMapController controller) {<br>                  mapController.complete(controller);<br>                },<br>              ),<br>            ),<br>            ElevatedButton(<br>              onPressed: () {<br>                goToLocation();<br>              },<br>              child: const Text(&quot;Go to Location&quot;),<br>            ),<br>          ],<br>        ),<br>      ),<br>    );<br>  }<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/288/1*yvGI78NNcCToRlOYzC0Jag.png" /></figure><p>Umarım açıklayıcı ve faydalı bir yazı olmuştur, sonraki yazılarımda görüşmek üzere.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5577e3ef1247" width="1" height="1" alt=""><hr><p><a href="https://medium.com/etiya/flutter-da-konum-bilgisine-eri%C5%9Fme-ve-harita-i%CC%87%C5%9Flemleri-5577e3ef1247">Flutter’da Konum Bilgisine Erişme ve Harita İşlemleri</a> was originally published in <a href="https://medium.com/etiya">Etiya</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Flutter’da WebSocket Kullanımı]]></title>
            <link>https://medium.com/etiya/flutter-da-websocket-kullan%C4%B1m%C4%B1-62cb20f54dc5?source=rss----81c9ca15fa26---4</link>
            <guid isPermaLink="false">https://medium.com/p/62cb20f54dc5</guid>
            <category><![CDATA[mobile-apps]]></category>
            <category><![CDATA[flutter-development]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[flutter-app-development]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <dc:creator><![CDATA[Ahmet YILDIZ]]></dc:creator>
            <pubDate>Mon, 14 Oct 2024 11:12:25 GMT</pubDate>
            <atom:updated>2024-12-17T10:42:58.464Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xAbmi5aotjiDA8bG.jpg" /></figure><p>WebSocket, çift yönlü bir iletişim kanalı sağlar. Sunucu ve istemci arasında sürekli açık bir bağlantı sunar. Bu sayede, uygulamanızda anlık güncellemeler veya hızlı veri akışları gerçekleştirmek mümkündür. Bir WebSocket bağlantısı açıldığında, veri akışı hem sunucudan istemciye hem de istemciden sunucuya şeklinde gerçekleşebilir. WebSocket kullanımı, mobil uygulamalarda canlı veri akışı, sohbet uygulamaları ve gerçek zamanlı bildirimler gibi senaryolarda idealdir.</p><p>Bir demo için yeni bir Flutter projesi oluşturalım. Ardından aşağıdaki paketi projemize ekleyelim.</p><p><a href="https://pub.dev/packages/web_socket_channel">web_socket_channel | Dart package</a></p><p>Gerekli paketi ekledikten sonra basitçe bir tasarım oluşturup, bunu main.dart dosyamıza bağlayalım.</p><pre>import &#39;package:flutter/material.dart&#39;;<br><br>class HomeScreen extends StatefulWidget {<br>  const HomeScreen({super.key});<br><br>  @override<br>  State&lt;HomeScreen&gt; createState() =&gt; _HomeScreenState();<br>}<br><br>class _HomeScreenState extends State&lt;HomeScreen&gt; {<br>  var textController = TextEditingController();<br><br>  @override<br>  Widget build(BuildContext context) {<br>    return Scaffold(<br>      appBar: AppBar(<br>        title: const Text(&#39;WebSocket Demo&#39;),<br>        backgroundColor: Colors.blue,<br>      ),<br>      body: Padding(<br>        padding: const EdgeInsets.all(16.0),<br>        child: Column(<br>          mainAxisAlignment: MainAxisAlignment.start,<br>          children: [<br>            TextField(<br>              controller: textController,<br>              decoration: const InputDecoration(<br>                labelText: &#39;Enter a message&#39;,<br>              ),<br>            ),<br>          ],<br>        ),<br>      ),<br>      floatingActionButton: FloatingActionButton(<br>        backgroundColor: Colors.blue,<br>        onPressed: () {<br>          textController.clear();<br>        },<br>        child: const Icon(<br>          Icons.send,<br>          color: Colors.white,<br>        ),<br>      ),<br>    );<br>  }<br>}</pre><p>Burada bir TextField içine mesaj gireceğiz, sonrasında butona tıkladığımızda mesajı göndereceğiz. Mesajı gönderirken de controller içindeki veriyi temizliyoruz.</p><p>Ardından WebSocket için kuruluma geçiyoruz. “webSocketChannel” isimli bir değişken oluşturup, bu değişkene bağlanmak istediğimiz URL’ yi atıyoruz. Demomuzda test amaçlı “wss://echo.websocket.org” URL’ sini kullanacağız. Gelen mesajları bir listede tutup bu listeyi kullanıcıya göstereceğiz. Bunun için de “messages” isimli boş bir liste oluşturuyoruz.</p><pre>final webSocketChannel = WebSocketChannel.connect(<br>  Uri.parse(&#39;wss://echo.websocket.org&#39;),<br>);<br><br>List&lt;String&gt; messages = [];</pre><p>Sonrasında bir StreamBuilder oluşturuyoruz, stream parametresine de oluşturmuş olduğumuz “webSocketChannel” isimli değişkeni veriyoruz. Daha sonra builder parametresindeki snapshot içinde data varsa, bunu listemize ekliyoruz. StreamBuilder bize bir ListView dönsün, burada da mesajlarımızı gösterelim. Bunun için de gerekli parametreleri aşağıdaki gibi ekliyoruz.</p><pre>Expanded(<br>  child: StreamBuilder(<br>    stream: webSocketChannel.stream,<br>    builder: (context, snapshot) {<br>      if (snapshot.hasData) {<br>        messages.add(snapshot.data.toString());<br>      }<br>      return ListView.builder(<br>        itemCount: messages.length,<br>        itemBuilder: (context, index) {<br>          return ListTile(<br>            leading: const Icon(Icons.message),<br>            title: Text(messages[index]),<br>          );<br>        },<br>      );<br>    },<br>  ),<br>)</pre><p>Mesaj gönderebilmek için butondaki onPressed içine gelerek gerekli kodumuzu ekliyoruz.</p><pre>webSocketChannel.sink.add(textController.text);</pre><p>Mesaj gönderme dışındaki diğer işlevler için de ihtiyacınıza yönelik kodları ekleyebilirsiniz. Örneğin bağlantıyı kapatmak için de bir buton ekleyelim. Bağlantıyı kontrol ederek bağlantı sağlandığında, bir hata olduğunda, bağlantı koparıldığında da bize Snackbar ile bir bildirim çıksın. Kodun tamamı aşağıdaki hale gelmiş oldu:</p><pre>import &#39;package:flutter/material.dart&#39;;<br>import &#39;package:web_socket_channel/web_socket_channel.dart&#39;;<br><br>class HomeScreen extends StatefulWidget {<br>  const HomeScreen({super.key});<br><br>  @override<br>  State&lt;HomeScreen&gt; createState() =&gt; _HomeScreenState();<br>}<br><br>class _HomeScreenState extends State&lt;HomeScreen&gt; {<br>  var textController = TextEditingController();<br>  final webSocketChannel = WebSocketChannel.connect(<br>    Uri.parse(&#39;wss://echo.websocket.org&#39;),<br>  );<br><br>  List&lt;String&gt; messages = [];<br>  bool isConnected = false;<br><br>  @override<br>  Widget build(BuildContext context) {<br>    return Scaffold(<br>      appBar: AppBar(<br>        title: const Text(&#39;WebSocket Demo&#39;),<br>        backgroundColor: Colors.blue,<br>      ),<br>      body: Padding(<br>        padding: const EdgeInsets.all(16.0),<br>        child: Column(<br>          mainAxisAlignment: MainAxisAlignment.start,<br>          children: [<br>            ElevatedButton(<br>              onPressed: () {<br>                webSocketChannel.sink.close();<br>              },<br>              child: const Text(&#39;Close Connection&#39;),<br>            ),<br>            const Padding(padding: EdgeInsets.all(16.0)),<br>            TextField(<br>              controller: textController,<br>              decoration: const InputDecoration(<br>                labelText: &#39;Enter a message&#39;,<br>              ),<br>            ),<br>            const Padding(padding: EdgeInsets.all(16.0)),<br>            Expanded(<br>              child: StreamBuilder(<br>                stream: webSocketChannel.stream,<br>                builder: (context, snapshot) {<br>                  if (snapshot.hasError) {<br>                    WidgetsBinding.instance.addPostFrameCallback((_) {<br>                      ScaffoldMessenger.of(context).showSnackBar(<br>                        SnackBar(<br>                          content: Text(&#39;Error: ${snapshot.error}&#39;),<br>                          backgroundColor: Colors.red,<br>                        ),<br>                      );<br>                    });<br>                  }<br>                  if (snapshot.connectionState == ConnectionState.active &amp;&amp;<br>                      !isConnected) {<br>                    isConnected = true;<br>                    WidgetsBinding.instance.addPostFrameCallback((_) {<br>                      ScaffoldMessenger.of(context).showSnackBar(<br>                        const SnackBar(<br>                          content: Text(&#39;Bağlantı açıldı&#39;),<br>                          backgroundColor: Colors.green,<br>                        ),<br>                      );<br>                    });<br>                  }<br>                  if (snapshot.connectionState == ConnectionState.done) {<br>                    WidgetsBinding.instance.addPostFrameCallback((_) {<br>                      ScaffoldMessenger.of(context).showSnackBar(<br>                        const SnackBar(<br>                          content: Text(&#39;Bağlantı kapatıldı&#39;),<br>                          backgroundColor: Colors.red,<br>                        ),<br>                      );<br>                    });<br>                  }<br>                  if (snapshot.hasData) {<br>                    messages.add(snapshot.data.toString());<br>                  }<br>                  return ListView.builder(<br>                    itemCount: messages.length,<br>                    itemBuilder: (context, index) {<br>                      return ListTile(<br>                        leading: const Icon(Icons.message),<br>                        title: Text(messages[index]),<br>                      );<br>                    },<br>                  );<br>                },<br>              ),<br>            ),<br>          ],<br>        ),<br>      ),<br>      floatingActionButton: FloatingActionButton(<br>        backgroundColor: Colors.blue,<br>        onPressed: () {<br>          webSocketChannel.sink.add(textController.text);<br>          textController.clear();<br>        },<br>        child: const Icon(<br>          Icons.send,<br>          color: Colors.white,<br>        ),<br>      ),<br>    );<br>  }<br>}</pre><p>Kodumuz son haliyle yazdığımız mesajları WebSockete iletiyor, kullandığımız URL de bir test URL’ si olduğu için yazdığımız mesajları bize geri gönderiyor, “Close Connection” butonuna tıkladığımızda da bağlantıyı kesiyor. Aynı zamanda bağlantı durumunu kontrol ederek de bize Snackbar ile bildirim gösteriyor.</p><p>Basitçe Flutter’da WebSocket kullanımından bahsettim, umarım bilgilendirici olmuştur.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=62cb20f54dc5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/etiya/flutter-da-websocket-kullan%C4%B1m%C4%B1-62cb20f54dc5">Flutter’da WebSocket Kullanımı</a> was originally published in <a href="https://medium.com/etiya">Etiya</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Comparison of Mobile Development Platforms]]></title>
            <link>https://medium.com/etiya/comparison-of-mobile-development-platforms-f1a78dd8ad22?source=rss----81c9ca15fa26---4</link>
            <guid isPermaLink="false">https://medium.com/p/f1a78dd8ad22</guid>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[ios-app-development]]></category>
            <category><![CDATA[react-native]]></category>
            <dc:creator><![CDATA[Ferid Cafer]]></dc:creator>
            <pubDate>Wed, 09 Oct 2024 14:10:35 GMT</pubDate>
            <atom:updated>2024-10-09T14:10:35.112Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ArQrFiOyus_ITxSd-fWOIQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/953/1*Uas1KevbOf_UvJnqvzzypg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/953/1*pKRyh4qQMJK6cu_IvZtE0Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/952/1*FdulxaO_P5mtbl5KLc49hA.png" /></figure><h3>Flutter Library for Native Apps</h3><p>It is possible for a native application to use one Flutter library.</p><ul><li>The Flutter portion of the app sends messages to its <em>host</em>, the non-Dart portion of the app, over a platform channel.</li><li>The <em>host</em> listens on the platform channel, and receives the message. It then calls into any number of platform-specific APIs — using the native programming language — and sends a response back to the <em>client</em>, the Flutter portion of the app.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*GH4kZcbRuVSgucLZNlj2qw.png" /><figcaption>Platform Channel</figcaption></figure><h3>Key Reasons for Larger Flutter APK/IPA Sizes:</h3><p><strong>&gt; Bundled Libraries and Dependencies:</strong></p><ul><li>Flutter includes a vast collection of pre-compiled libraries and dependencies that are essential for its functionality. These libraries, such as Dart, Skia, and platform-specific components, are bundled into the final APK/IPA, significantly increasing its size.</li><li>In contrast, native apps often use a smaller subset of libraries, leading to smaller file sizes.</li></ul><p><strong>&gt; Cross-Platform Compatibility:</strong></p><ul><li>Flutter’s ability to target multiple platforms (Android, iOS, web, and desktop) comes at a cost. The framework needs to include code and assets for each supported platform, even if your app only targets one. This redundancy contributes to larger file sizes.</li><li>Native apps, being platform-specific, can be optimized for their target platform, potentially resulting in smaller sizes.</li></ul><p><strong>&gt; Widget Tree and Rendering Engine:</strong></p><ul><li>Flutter’s declarative UI paradigm, based on a widget tree, requires a rendering engine to interpret and display the UI elements. This engine, along with its associated libraries, adds to the APK/IPA size.</li><li>Native apps typically use platform-specific UI frameworks that are often more lightweight and integrated with the operating system, leading to smaller file sizes.</li></ul><h3>References</h3><ul><li><a href="https://nateshmbhat.medium.com/flutter-vs-react-native-performance-benchmarks-you-cant-miss-%EF%B8%8F-2e31905df9b4">Flutter Vs React Native : Performance Benchmarks you can’t miss ! 🔥⚡️</a></li><li><a href="https://inveritasoft.com/blog/flutter-vs-react-native-vs-native-deep-performance-comparison">Flutter vs React Native vs Native: Deep Performance Comparison | inVerita</a></li><li><a href="https://medium.com/@dihsar/flutter-vs-native-a-comprehensive-comparison-4374f7e1af52">Flutter vs. Native: A Comprehensive Comparison</a></li><li><a href="https://docs.flutter.dev/platform-integration/platform-channels">Writing custom platform-specific code</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f1a78dd8ad22" width="1" height="1" alt=""><hr><p><a href="https://medium.com/etiya/comparison-of-mobile-development-platforms-f1a78dd8ad22">Comparison of Mobile Development Platforms</a> was originally published in <a href="https://medium.com/etiya">Etiya</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Katlanır Cihazlar için Uygulama Geliştirme]]></title>
            <link>https://medium.com/etiya/katlan%C4%B1r-cihazlar-i%C3%A7in-uygulama-geli%C5%9Ftirme-22aee48caeeb?source=rss----81c9ca15fa26---4</link>
            <guid isPermaLink="false">https://medium.com/p/22aee48caeeb</guid>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[foldable-phone]]></category>
            <category><![CDATA[mobile-app-developers]]></category>
            <category><![CDATA[mobile-app-design]]></category>
            <category><![CDATA[foldable-smartphone]]></category>
            <dc:creator><![CDATA[Ferid Cafer]]></dc:creator>
            <pubDate>Fri, 16 Aug 2024 11:55:50 GMT</pubDate>
            <atom:updated>2024-08-16T11:55:50.050Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-bxtzq7iAiZPH6dcxnzLqQ.jpeg" /></figure><p>Katlanır cihazlar hem telefon hem de tablet özelliklerini bir arada taşıdığı için dünya genelinde hatırı sayılır bir popülarite kazandı. Hatta, öyle ki, çok sayıda marka son derece ince, hafif ve pratik katlanır model sundu piyasaya. Örnek verecek olursak; Samsung, Honor, Huawei, Oppo, Vivo, OnePlus, Tecno, Xiaomi.</p><p>Peki, bu durum mobil uygulama geliştiricilerini nasıl etkilemeye başladı? Bir mobil uygulamanın, kullanıcısına keyifli bir deneyim sunması için yazılım geliştiricilerinin nelere dikkat etmesi gerekiyor?</p><p>Katlanır cihazlar esasında iki türlüdür; dikine katlananlar ve yanlamasına katlananlar.</p><p>Dikine katlananlar, açıldığında bir telefonunki kadar ekran sunar. Katlandığında ise oldukça küçük bir yer kaplar ve dışındaki ekran ise (eğer ekran varsa) sadece saat ve bildirim geldiğine dair uyarı gibi temel basit fonksiyon içerir.</p><p>Yanlamasına katlananlar ise, mobil geliştiricilerin üzerinde durması gereken bir türdür. Dikine katlanan cihaz, bir telefondan ibaret iken, yanlamasına katlananlar, kapalı haliyle telefon, açık haliyle tablet özelliği taşırlar. İşte bizim odaklanacağımız konu tam da burası.</p><p>Teknik Açıdan</p><p>Katlanır cihazların 3 durumu vardır:</p><ol><li>Kapalı</li><li>Açık</li><li>Yarı Açık</li></ol><p>Kapalı hâliyle telefonu, açık hâliyle de tableti andırır. Yarı açık durum ise, ekranın üst kısmının aplikasyon, alt kısmının ise klavye olarak kullanılması hâlidir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ev5A5lMhAtm7-_VKA-3ieQ.png" /><figcaption>Kapalı, Açık, Yarı Açık (soldan sağa)</figcaption></figure><p>Geliştiricilerin bu üç durumu temel alarak dikkat etmeleri gereken hususlar şunlardır:</p><ol><li>Ekran boyutu ve konfigürasyon:</li></ol><ul><li>Katlanabilir cihazların birden fazla ekran konfigürasyonu vardır.</li><li>Uygulamaların farklı ekran boyutlarına ve en-boy oranlarına dinamik olarak uyum sağlaması gerekir.</li></ul><p>2. Responsive tasarım ve içerik uyarlaması:</p><ul><li>Çeşitli katlama konfigürasyonlarına uyum sağlayan esnek düzenler kullanın.</li><li>Ekran değiştiğinde kullanıcı arayüzü ögelerinin nasıl yeniden konumlandırılacağını ve içeriğin nasıl optimize edileceğini düşünün.</li><li>Açık durumdaki geniş ekran alanından en iyi şekilde yararlanın.</li></ul><p>3. Süreklilik ve geçişler:</p><ul><li>Cihaz katlanırken veya açılırken geçişlerin sorunsuz olmasını sağlayın.</li><li>Ekran değişiklikleri arasında uygulama durumunu ve kullanıcı deneyimini koruyun.</li></ul><p>4. Çoklu pencere desteği:</p><ul><li>Katlanabilir cihazlar genellikle birden fazla uygulamanın yan yana çalışmasına izin verir.</li><li>Uygulamaları bölünmüş ekran modlarında iyi çalışacak şekilde tasarlayın.</li></ul><p>5. Kullanıcı etkileşimi:</p><ul><li>Katlanabilir cihazlara özgü yeni hareketler ve etkileşim yöntemleri tasarlayın.</li><li>Katlama eylemlerinin girdi olarak nasıl kullanılabileceğini düşünün.</li></ul><p>6. Test zorlukları:</p><ul><li>Test edilecek daha fazla konfigürasyon (kapalı, açık, yarı açık).</li></ul><p>7. Platforma özgü yönergeler:</p><ul><li>Cihaz üreticileri ve işletim sistemleri tarafından sağlanan yönergeleri takip edin.</li></ul><p>Özetle, yazılım geliştirirken, katlanır cihazları sadece telefon olarak değerlendirmek eksiklik olur ve kullanıcı hoşnutsuzluğuna sebebiyet verir. Aynı zamanda, sadece tablet olarak düşünüp, kullanıcıyı aplikasyonumuzu kullanırken cihazını daima açık hâlde tutmaya mecbur bırakmak da başka bir sorun olarak karşımıza çıkar. Bu konuyu bütüncül düşünerek yukarıda belirtilen birçok parametreyi dikkate alarak, günden güne kullanıcısı artan katlanır cihazlar için de en iyi deneyimi sunan aplikasyonlar geliştirebiliriz.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=22aee48caeeb" width="1" height="1" alt=""><hr><p><a href="https://medium.com/etiya/katlan%C4%B1r-cihazlar-i%C3%A7in-uygulama-geli%C5%9Ftirme-22aee48caeeb">Katlanır Cihazlar için Uygulama Geliştirme</a> was originally published in <a href="https://medium.com/etiya">Etiya</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[API Gateway]]></title>
            <link>https://medium.com/etiya/api-gateway-4274e1daab1f?source=rss----81c9ca15fa26---4</link>
            <guid isPermaLink="false">https://medium.com/p/4274e1daab1f</guid>
            <category><![CDATA[makale]]></category>
            <dc:creator><![CDATA[Cansu Sarp]]></dc:creator>
            <pubDate>Mon, 25 Dec 2023 13:35:18 GMT</pubDate>
            <atom:updated>2023-12-25T13:35:18.331Z</atom:updated>
            <content:encoded><![CDATA[<p>An API Gateway is a server that acts as an entry point for an application programming interface (API). It is a crucial component in a microservices architecture, serving as a central hub that manages and facilitates communication between various microservices and client applications. The primary purpose of an API Gateway is to streamline and simplify the interactions between clients and microservices by providing a unified interface, security, and various other services.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*YUV4lrcMkB1BKkN1" /><figcaption>Photo by <a href="https://unsplash.com/@sergeiwing?utm_source=medium&amp;utm_medium=referral">Sergei Wing</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><strong>Benefits of API Gateway:</strong></p><ul><li><strong><em>Security: </em></strong>In addition to authentication and authorization, API Gateways can enforce security policies, such as encrypting data in transit, validating input data, and protecting against common security threats.</li><li><strong><em>Logging and Monitoring: </em></strong>API Gateways often provide logging and monitoring capabilities, allowing administrators to track and analyze API usage, performance, and errors.</li><li><strong><em>Centralized Management: </em></strong>API Gateways provide a centralized point for managing and controlling access to APIs. This simplifies administration tasks, such as authentication, authorization, and monitoring, as they can be configured in one central location.</li><li><strong><em>Developer Productivity: </em></strong>API Gateways can improve developer productivity by abstracting away the complexities of managing various aspects of API communication. Developers can focus more on building and enhancing microservices without worrying about low-level details related to security, routing, and other concerns.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*U8hE_XSnNB-Fbf1F" /><figcaption>Photo by <a href="https://unsplash.com/@cloudett?utm_source=medium&amp;utm_medium=referral">Laura Cleffmann</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Best API Gateway Products</h3><p>There are several API Gateway products but some of them are more efficient. Some are developer-friendly, some are budget-friendly … Let&#39;s check it out.</p><p><strong>Kong Gateway</strong></p><p>It is the most popular open-source cloud-native API gateway built on a lightweight proxy. Kong stands out with a large documentation source and user-friendly tutorials. Kong has two options to use. One of them is open-source and the other one is enterprise.</p><p><strong>Apache APISIX</strong></p><p>This is an example of a high-performance API Gateway. Also, it is open-source. It provides high scalability, smart directing, and detailed monitoring. All of the functions are free.</p><p><strong>AWS API Gateway</strong></p><p>AWS API Gateway is a fully managed service that makes it easy for developers to create, publish, maintain, monitor, and secure APIs. It integrates well with other AWS services and suits organizations already using the AWS ecosystem.</p><p><strong>NGINX</strong></p><p>While NGINX is primarily known as a high-performance web server, it can also function as an API Gateway. NGINX is praised for its speed, reliability, and efficiency in handling API traffic. Many organizations use NGINX as part of their API management solution.</p><h3>What happens if we don’t use API Gateway in large-sized projects?</h3><p>In summary, while it’s technically possible to build and manage a microservices architecture without an API Gateway, doing so can lead to increased complexity, security risks, and operational challenges. API Gateways serve as a valuable tool for streamlining API management tasks, improving security, and enhancing overall system performance.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4274e1daab1f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/etiya/api-gateway-4274e1daab1f">API Gateway</a> was originally published in <a href="https://medium.com/etiya">Etiya</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>