<?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[Stories by Kadir Çelikoğlu on Medium]]></title>
        <description><![CDATA[Stories by Kadir Çelikoğlu on Medium]]></description>
        <link>https://medium.com/@kadircelikogluu?source=rss-6e0d38251f87------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*O6P6iIUY0HBgrxfoUuR8Yw.jpeg</url>
            <title>Stories by Kadir Çelikoğlu on Medium</title>
            <link>https://medium.com/@kadircelikogluu?source=rss-6e0d38251f87------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 07:07:24 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kadircelikogluu/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[“Potential Loss of Keychain Access” nedir ve süreç nasıl yönetilmelidir?]]></title>
            <link>https://medium.com/@kadircelikogluu/potential-loss-of-keychain-access-nedir-ve-s%C3%BCre%C3%A7-nas%C4%B1l-y%C3%B6netilmelidir-fdc45e80eb63?source=rss-6e0d38251f87------2</link>
            <guid isPermaLink="false">https://medium.com/p/fdc45e80eb63</guid>
            <category><![CDATA[mobile]]></category>
            <category><![CDATA[xcode]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[dart]]></category>
            <dc:creator><![CDATA[Kadir Çelikoğlu]]></dc:creator>
            <pubDate>Sun, 17 May 2026 15:17:51 GMT</pubDate>
            <atom:updated>2026-05-17T15:17:51.499Z</atom:updated>
            <content:encoded><![CDATA[<h3>“Potential Loss of Keychain Access” uyarısını gördüm ne yapmalıyım ?</h3><p>“App Store Connect’e yeni build’i yüklediniz ve o meşhur uyarı karşınıza çıktı: <strong>‘Potential Loss of Keychain Access’</strong>. Uygulamanızı bir hesaptan diğerine taşıdınız, her şey harika gidiyordu ama Apple size kullanıcılarınızın Keychain verilerine (tokenlar, şifreler, hassas veriler) erişimi kaybedebileceğini söylüyor. Eğer bu makaleyi okuyorsanız muhtemelen şu an ‘Kullanıcılarımın hepsi log-out mu olacak?’ diye düşünüyorsunuz. Cevap: Eğer doğru adımı atarsanız, hayır. Gelin bu krizi birlikte çözelim.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aN5XyVLdaV5Tdge9ics_EA.jpeg" /></figure><p>Burada teknik sebebi kısaca açıklayıp hemen aksiyona geçiyoruz.</p><h3>1. Problem Neden Kaynaklanıyor?</h3><p>Kullanıcıların telefonundaki Keychain verileri, uygulamanızın <strong>App ID Prefix</strong>’ine (yani eski Team ID’nize) mühürlenmiştir. Uygulama yeni hesaba geçtiğinde Team ID değiştiği için iOS, yeni uygulamanın o eski verilere dokunmasına güvenlik gereği izin vermez. Apple sizi bu yüzden uyarıyor: <em>“Sen artık farklı birisin, eski verilere erişemezsin!”</em></p><h3>Çözüm: Keychain Sharing ile Eski Kimliğinizi Tanıtın</h3><p>Bu kilidi açmanın yolu, uygulamaya “Ben hala eski benim” dedirtmektir. Adım adım şu yolu izliyoruz:</p><ul><li><strong>Eski Team ID’yi Bulun:</strong> Transfer öncesi kullandığınız o 10 haneli kodu not edin.</li><li><strong>Keychain Sharing’i Aktif Edin:</strong> Xcode’da Project Settings &gt; Signing &amp; Capabilities sekmesine gidin. + Capability diyerek <strong>Keychain Sharing</strong> özelliğini ekleyin.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QpmwpgHI2-KRZ9ZC06upyQ.png" /></figure><ul><li><strong>Keychain Group Ekleme:</strong> Keychain Groups kısmına yeni bir girdi ekleyin. Format tam olarak şöyle olmalı:</li><li>ESKİ_TEAM_ID.com.uygulamaniz (Bundle ID)</li><li><strong>Entitlements Dosyasını Kontrol Edin:</strong> Xcode bu işlemi yaptığınızda bir .entitlements dosyası oluşturur. Burada keychain-access-groups altında hem yeni Team ID’nizin olduğu satırın hem de az önce eklediğiniz eski Team ID’li satırın olduğundan emin olun.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FsaLXxHsa0W4Jz54R9Z0vw.png" /></figure><blockquote><strong><em>Kritik İpucu:</em></strong><em> Bu işlemi uygulama transferinden sonraki </em><strong><em>ilk güncellemede</em></strong><em> yapmanız şarttır. Eğer bu adımı atlayıp bir kere build çıkarsanız, kullanıcılar o güncellemeyi aldığında eski verilere erişim kalıcı olarak kopabilir.</em></blockquote><p>Bu ayarı yaptıktan sonra App Store Connect’teki o uyarı muhtemelen gitmeyecektir (çünkü Apple hala bir değişim olduğunu biliyor). Ancak panik yapmanıza gerek yok; siz artık sisteme eski verilere erişim yetkisi olan bir ‘anahtar’ verdiniz.</p><p><strong>Son bir tavsiye:</strong> Yayına çıkmadan önce mutlaka bir TestFlight testi yapın. App Store’daki mevcut (eski hesapta olan) sürümü cihazınıza yükleyin, içine bir veri kaydedin ve ardından yeni hesaptan çıkan bu ‘Keychain Sharing’li sürümü üzerine kurun. Veriler halâ oradaysa, sorun çözülmüştür.</p><p>Umarım yaşadığınız problemin çözümüne katkı sağlayabilmişimdir. Okuduğunuz için teşekkür ederim.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fdc45e80eb63" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Position detection with Google ML Kit]]></title>
            <link>https://medium.com/@kadircelikogluu/position-detection-with-google-ml-kit-7984615b5c85?source=rss-6e0d38251f87------2</link>
            <guid isPermaLink="false">https://medium.com/p/7984615b5c85</guid>
            <category><![CDATA[dart]]></category>
            <category><![CDATA[google-ml-kit]]></category>
            <category><![CDATA[pose-estimation]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[pose-detection]]></category>
            <dc:creator><![CDATA[Kadir Çelikoğlu]]></dc:creator>
            <pubDate>Mon, 24 Jun 2024 19:26:07 GMT</pubDate>
            <atom:updated>2024-06-24T19:26:07.975Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/738/1*le4m-MKQ2S4XWM5fSsGbVg.png" /></figure><p>Hello everyone. I want to share with you how we can detect a position in Flutter using Google ML Kit and how we can show the coordinates we detect on the camera. If you are ready, we can start.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uK4ZPLMYhcicjHOWAJ6C5Q.jpeg" /></figure><p>First, we need to include google_mlkit_commons and google_mlkit_pose_detection libraries in our project.</p><pre>dependencies:<br>  flutter:<br>    sdk: flutter<br>  google_mlkit_commons: ^0.6.1<br>  google_mlkit_pose_detection: ^0.10.0</pre><p>Then we add our camera library and the permissions required for the camera to our project for both android and ios.</p><pre>dependencies:<br>  flutter:<br>    sdk: flutter<br>  camera: ^0.10.5+9</pre><p>For iOS, we must go to the ios/Runner/Info.plist folder and add the following line of code to our project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/878/1*NQnVJkTF3f1Rt5XDXFx-jA.png" /></figure><blockquote>&lt;key&gt;NSCameraUsageDescription&lt;/key&gt;<br>&lt;string&gt;your usage description here&lt;/string&gt;<br>&lt;key&gt;NSMicrophoneUsageDescription&lt;/key&gt;<br>&lt;string&gt;your usage description here&lt;/string&gt;</blockquote><p>For Android, we must go to the android/app/src/main/AndroidManifest.xml folder and add the following line of code to our project.</p><pre>&lt;uses-permission android:name=&quot;android.permission.CAMERA&quot;/&gt;<br>&lt;uses-feature android:name=&quot;android.hardware.camera&quot;/&gt;</pre><p>After doing these operations, we can proceed to our operations on the screen we will create for the camera.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/1*7-HYVP1ThSFWkLlN24lbfQ.gif" /></figure><p>To detect the position before moving to the camera screen, we use <a href="https://pub.dev/packages/google_mlkit_pose_detection">google_mlkit_pose_detection</a> to create a middle layer as shown in the figure.</p><pre>final class PoseDetectorView extends StatefulWidget {<br>  const PoseDetectorView({super.key});<br><br>  @override<br>  State&lt;StatefulWidget&gt; createState() =&gt; _PoseDetectorViewState();<br>}<br><br>class _PoseDetectorViewState extends State&lt;PoseDetectorView&gt; {<br>  final PoseDetector _poseDetector = PoseDetector(options: PoseDetectorOptions());<br>  bool _canProcess = true;<br>  bool _isBusy = false;<br>  CustomPaint? _customPaint;<br>  var _cameraLensDirection = CameraLensDirection.front;<br><br>  @override<br>  void dispose() async {<br>    _canProcess = false;<br>    _poseDetector.close();<br>    super.dispose();<br>  }<br><br>  @override<br>  Widget build(BuildContext context) {<br>    return CameraView(<br>      customPaint: _customPaint,<br>      onImage: _processImage,<br>      initialCameraLensDirection: _cameraLensDirection,<br>      onCameraLensDirectionChanged: (value) =&gt; _cameraLensDirection = value,<br>    );<br>  }<br><br>  Future&lt;void&gt; _processImage(InputImage inputImage) async {<br>    if (!_canProcess) return;<br>    if (_isBusy) return;<br>    _isBusy = true;<br>    final poses = await _poseDetector.processImage(inputImage);<br>    if (inputImage.metadata?.size != null &amp;&amp; inputImage.metadata?.rotation != null &amp;&amp; poses.isNotEmpty) {<br>      final painter = PosePainter(<br>        poses[0],<br>        inputImage.metadata!.size,<br>        inputImage.metadata!.rotation,<br>        _cameraLensDirection,<br>      );<br>      _customPaint = CustomPaint(painter: painter);<br>    } else {<br>      if (kDebugMode) {<br>        print(&#39;Poses found: ${poses.length}\n\n&#39;);<br>      }<br>      // TODO: set _customPaint to draw landmarks on top of image<br>      _customPaint = null;<br>    }<br>    _isBusy = false;<br>    if (mounted) {<br>      setState(() {});<br>    }<br>  }<br>}</pre><p>First of all, we need to create a _poseDetector object to detect position and continue our operations through the object we created. Then we need to use our _customPaint object to mark the motion we detect on the camera. <em>This code defines a Flutter `CustomPainter` class that draws pose landmarks on a human body on a canvas. This class is called `PosePainter` and uses pose data obtained using the pose detection feature of the Google ML Kit.</em></p><p><strong>Here’s what it does step by step:</strong></p><blockquote>### Class Definition and Members<br>- The `PosePainter` class is derived from the `CustomPainter` class.<br>- `PosePainter` takes four parameters:<br> — `pose`: Detected pose data (`Pose`).<br> — `imageSize`: The size of the original image (`Size`).<br> — `rotation`: Image rotation information (`InputImageRotation`).<br> — `cameraLensDirection`: Camera lens direction (`CameraLensDirection`).</blockquote><blockquote>### `paint` Method<br>The `paint` method is used to draw on the canvas.</blockquote><blockquote>- **Paint Settings**:<br> — Three `Paint` objects are defined: `paint`, `leftPaint`, and `rightPaint`. These objects define the style of lines and points (color, thickness, etc.).</blockquote><blockquote>- **Drawing Pose Landmarks**:<br> — The `pose.landmarks.forEach` loop goes around each pose point (`landmark`) and draws a circle (`canvas.drawCircle`). The coordinates of the landmarks are transformed using the `translateX` and `translateY` functions. These functions convert coordinates taking into account image size, canvas size, rotation and camera orientation.</blockquote><pre>import &#39;package:camera/camera.dart&#39;;<br>import &#39;package:flutter/material.dart&#39;;<br>import &#39;package:google_mlkit_pose_detection/google_mlkit_pose_detection.dart&#39;;<br>import &#39;coordinates_translator.dart&#39;;<br><br>final class PosePainter extends CustomPainter {<br>  PosePainter(<br>    this.pose,<br>    this.imageSize,<br>    this.rotation,<br>    this.cameraLensDirection,<br>  );<br><br>  final Pose pose;<br>  final Size imageSize;<br>  final InputImageRotation rotation;<br>  final CameraLensDirection cameraLensDirection;<br><br>  @override<br>  void paint(Canvas canvas, Size size) {<br>    final paint = Paint()<br>      ..style = PaintingStyle.stroke<br>      ..strokeWidth = 5.0<br>      ..color = const Color(0XFF45EF74);<br><br>    final leftPaint = Paint()<br>      ..style = PaintingStyle.stroke<br>      ..strokeWidth = 5.0<br>      ..color = const Color(0XFF45EF74);<br><br>    final rightPaint = Paint()<br>      ..style = PaintingStyle.stroke<br>      ..strokeWidth = 5.0<br>      ..color = const Color(0XFF45EF74);<br><br>    pose.landmarks.forEach((_, landmark) {<br>      canvas.drawCircle(<br>          Offset(<br>            translateX(<br>              landmark.x,<br>              size,<br>              imageSize,<br>              rotation,<br>              cameraLensDirection,<br>            ),<br>            translateY(<br>              landmark.y,<br>              size,<br>              imageSize,<br>              rotation,<br>              cameraLensDirection,<br>            ),<br>          ),<br>          1,<br>          paint);<br>    });<br><br>    void paintLine(PoseLandmarkType type1, PoseLandmarkType type2, Paint paintType) {<br>      final PoseLandmark joint1 = pose.landmarks[type1]!;<br>      final PoseLandmark joint2 = pose.landmarks[type2]!;<br>      canvas.drawLine(<br>          Offset(<br>              translateX(<br>                joint1.x,<br>                size,<br>                imageSize,<br>                rotation,<br>                cameraLensDirection,<br>              ),<br>              translateY(<br>                joint1.y,<br>                size,<br>                imageSize,<br>                rotation,<br>                cameraLensDirection,<br>              )),<br>          Offset(<br>              translateX(<br>                joint2.x,<br>                size,<br>                imageSize,<br>                rotation,<br>                cameraLensDirection,<br>              ),<br>              translateY(<br>                joint2.y,<br>                size,<br>                imageSize,<br>                rotation,<br>                cameraLensDirection,<br>              )),<br>          paintType);<br>    }<br><br>    //Draw arms<br>    paintLine(PoseLandmarkType.leftShoulder, PoseLandmarkType.leftElbow, leftPaint);<br>    paintLine(PoseLandmarkType.leftElbow, PoseLandmarkType.leftWrist, leftPaint);<br>    paintLine(PoseLandmarkType.rightShoulder, PoseLandmarkType.rightElbow, rightPaint);<br>    paintLine(PoseLandmarkType.rightElbow, PoseLandmarkType.rightWrist, rightPaint);<br><br>    //Draw Body<br>    paintLine(PoseLandmarkType.leftShoulder, PoseLandmarkType.leftHip, leftPaint);<br>    paintLine(PoseLandmarkType.rightShoulder, PoseLandmarkType.rightHip, rightPaint);<br><br>    //Draw legs<br>    paintLine(PoseLandmarkType.leftHip, PoseLandmarkType.leftKnee, leftPaint);<br>    paintLine(PoseLandmarkType.leftKnee, PoseLandmarkType.leftAnkle, leftPaint);<br>    paintLine(PoseLandmarkType.rightHip, PoseLandmarkType.rightKnee, rightPaint);<br>    paintLine(PoseLandmarkType.rightKnee, PoseLandmarkType.rightAnkle, rightPaint);<br>  }<br><br>  @override<br>  bool shouldRepaint(covariant PosePainter oldDelegate) {<br>    return oldDelegate.imageSize != imageSize || oldDelegate.pose != pose;<br>  }<br>}</pre><p>After completing these operations, we are now ready to make the necessary coloring for marking.</p><blockquote>Then, we need to check if camera permission has been granted. If the user gives consent to use their camera, we can proceed with the rest of the process. Here we also use the “CameraLensDirection.front” property to use the front camera.</blockquote><pre>Future&lt;void&gt; _initialize() async {<br>  final cameraPermissionStatus = await Permission.camera.status;<br>  if (_cameras.isEmpty) {<br>    _cameras = await availableCameras();<br>  }<br>  if (cameraPermissionStatus.isGranted) {<br>    for (var i = 0; i &lt; _cameras.length; i++) {<br>      if (_cameras[i].lensDirection == CameraLensDirection.front) {<br>        _cameraIndex = i;<br>        break;<br>      }<br>    }<br><br>    if (_cameraIndex != -1) {<br>      _startLiveFeed();<br>    }<br>  }<br>}</pre><p>Then we trigger the following function to start the live stream. Here we control the image format group to use the specified formats of the platform since the comparable image formats are different on Android and iOS platforms.</p><p>With the controller we created, we can process the image with the _processCameraImage function. In a moment we will talk about how this function works.</p><pre>Future&lt;void&gt; _startLiveFeed() async {<br>  final camera = _cameras[_cameraIndex];<br>  _controller = CameraController(<br>    camera,<br>    // Set to ResolutionPreset.high. Do NOT set it to ResolutionPreset.max because for some phones does NOT work.<br>    ResolutionPreset.high,<br>    enableAudio: false,<br>    imageFormatGroup: Platform.isAndroid<br>        ? ImageFormatGroup.nv21<br>        : ImageFormatGroup.bgra8888,<br>  );<br>  _controller?.initialize().then((_) {<br>    if (!mounted) {<br>      return;<br>    }<br>    _controller?.startImageStream((image) {<br>      if (locator&lt;HomeViewModel&gt;().countDownController.isStarted) {<br>        _processCameraImage(image);<br>      }<br>    }).then((value) {<br>      if (widget.onCameraFeedReady != null) {<br>        widget.onCameraFeedReady!();<br>      }<br>      if (widget.onCameraLensDirectionChanged != null) {<br>        widget.onCameraLensDirectionChanged!(camera.lensDirection);<br>      }<br>    });<br>    setState(() {});<br>  });<br>}</pre><p>Now we can take a look at the function I just mentioned, _processCameraImage, which processes the received image. This function sends the received image to the _inputImageFromCameraImage function and then we can explain the function like this:</p><p>This function is used to convert a `CameraImage` object into an `InputImage` object that Google ML Kit uses for image processing. Here is how it works step by step and what it does:</p><blockquote>1. **Controller Control**: <br> The function checks if a controller object named `_controller` is null. If it is null, the function returns null. This check is an early exit point that prevents the function from continuing.</blockquote><blockquote>2. **Camera and Sensor Orientation**:<br> Gets the camera with index `_cameraIndex` in the `_cameras` list and its sensor orientation (`sensorOrientation`). This value specifies how the camera’s sensor is oriented when capturing the image.</blockquote><blockquote>3. **Image Rotation**:<br> — **For iOS**: The `sensorOrientation` value is converted directly to the `InputImageRotation` type.<br> — For **Android**: <br> — A `rotationCompensation` is calculated based on the current orientation of the device.<br> — If the camera is a front camera, the `rotationCompensation` is added to the sensor orientation and the mode is taken with 360.<br> — If it is a rear camera, `rotationCompensation` is subtracted from the sensor orientation and 360 is added and the mode is taken.<br> — This calculated value is converted to the type `InputImageRotation`.</blockquote><blockquote>4. **Image Format**:<br> The `image.format.raw` value is converted to the `InputImageFormat` type. Since only certain formats (NV21 for Android, BGRA8888 for iOS) are supported, this is checked and null is returned if it is not in the appropriate format.</blockquote><blockquote>5. **Image Planes**:<br> Returns null if `image.planes` length is not 1, i.e. the image contains more than one plane. This check is done to make sure that only single plane images are processed.</blockquote><blockquote>6. **Creating an ``InputImage`` Object**:<br> — Using `InputImage.fromBytes`, the `InputImage` object is created.<br> — The required metadata (`size`, `rotation`, `format`, `bytesPerRow`) is provided.</blockquote><p><strong>The main purpose of this function is to transform the `CameraImage` object into an `InputImage` object that can be used by Google ML Kit’s image processing algorithms. During this transformation, the image is rotated and formatted accordingly, taking into account the orientation of the device and the orientation of the camera sensor.</strong></p><pre>InputImage? _inputImageFromCameraImage(CameraImage image) {<br>  if (_controller == null) return null;<br><br>  // get image rotation<br>  // it is used in android to convert the InputImage from Dart to Java: https://github.com/flutter-ml/google_ml_kit_flutter/blob/master/packages/google_mlkit_commons/android/src/main/java/com/google_mlkit_commons/InputImageConverter.java<br>  // `rotation` is not used in iOS to convert the InputImage from Dart to Obj-C: https://github.com/flutter-ml/google_ml_kit_flutter/blob/master/packages/google_mlkit_commons/ios/Classes/MLKVisionImage%2BFlutterPlugin.m<br>  // in both platforms `rotation` and `camera.lensDirection` can be used to compensate `x` and `y` coordinates on a canvas: https://github.com/flutter-ml/google_ml_kit_flutter/blob/master/packages/example/lib/vision_detector_views/painters/coordinates_translator.dart<br>  final camera = _cameras[_cameraIndex];<br>  final sensorOrientation = camera.sensorOrientation;<br>  // print(<br>  //     &#39;lensDirection: ${camera.lensDirection}, sensorOrientation: $sensorOrientation, ${_controller?.value.deviceOrientation} ${_controller?.value.lockedCaptureOrientation} ${_controller?.value.isCaptureOrientationLocked}&#39;);<br>  InputImageRotation? rotation;<br>  if (Platform.isIOS) {<br>    rotation = InputImageRotationValue.fromRawValue(sensorOrientation);<br>  } else if (Platform.isAndroid) {<br>    var rotationCompensation =<br>        _orientations[_controller!.value.deviceOrientation];<br>    if (rotationCompensation == null) return null;<br>    if (camera.lensDirection == CameraLensDirection.front) {<br>      // front-facing<br>      rotationCompensation = (sensorOrientation + rotationCompensation) % 360;<br>    } else {<br>      // back-facing<br>      rotationCompensation =<br>          (sensorOrientation - rotationCompensation + 360) % 360;<br>    }<br>    rotation = InputImageRotationValue.fromRawValue(rotationCompensation);<br>    // print(&#39;rotationCompensation: $rotationCompensation&#39;);<br>  }<br>  if (rotation == null) return null;<br>  // print(&#39;final rotation: $rotation&#39;);<br><br>  // get image format<br>  final format = InputImageFormatValue.fromRawValue(image.format.raw);<br>  // validate format depending on platform<br>  // only supported formats:<br>  // * nv21 for Android<br>  // * bgra8888 for iOS<br>  if (format == null ||<br>      (Platform.isAndroid &amp;&amp; format != InputImageFormat.nv21) ||<br>      (Platform.isIOS &amp;&amp; format != InputImageFormat.bgra8888)) return null;<br><br>  // since format is constraint to nv21 or bgra8888, both only have one plane<br>  if (image.planes.length != 1) return null;<br>  final plane = image.planes.first;<br><br>  // compose InputImage using bytes<br>  return InputImage.fromBytes(<br>    bytes: plane.bytes,<br>    metadata: InputImageMetadata(<br>      size: Size(image.width.toDouble(), image.height.toDouble()),<br>      rotation: rotation, // used only in Android<br>      format: format, // used only in iOS<br>      bytesPerRow: plane.bytesPerRow, // used only in iOS<br>    ),<br>  );<br>}</pre><p>Now we’re ready to try it. Once you’ve given the camera permission, all you have to do is watch the landmarks on your body being marked. I hope it has been a useful content for you. You can contact me for your questions. Enjoyable coding :)</p><h3>References</h3><ul><li><a href="https://developers.google.com/ml-kit/vision/pose-detection?hl=en">Pose detection | ML Kit | Google for Developers</a></li><li><a href="https://heartbeat.comet.ml/implementing-real-time-pose-estimation-on-mobile-using-flutter-af281d3740df">Implementing Real-Time Pose Estimation on Mobile Using Flutter</a></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/1*vVod95w9IPLHAypqF3y3Kw.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7984615b5c85" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to navigate to the relevant page by tapping the non-app notification?]]></title>
            <link>https://medium.com/@kadircelikogluu/how-to-navigate-to-the-relevant-page-by-tapping-the-non-app-notification-411f42a3429a?source=rss-6e0d38251f87------2</link>
            <guid isPermaLink="false">https://medium.com/p/411f42a3429a</guid>
            <category><![CDATA[notifications]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[onesignal]]></category>
            <dc:creator><![CDATA[Kadir Çelikoğlu]]></dc:creator>
            <pubDate>Sun, 07 May 2023 07:58:54 GMT</pubDate>
            <atom:updated>2023-05-07T07:58:54.223Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello, in this article, I will tell you how to go to the relevant page by touching the notification we received outside the application. Let’s get started if you’re ready.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*Yi15yckj-Ca44-2Nx_LSpw.gif" /></figure><p>Please do not forget to add the following plugin to your pubspec.yaml file:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/852/1*sMa8RIfJ7QeXbNgxyEh4xQ.png" /></figure><p>First, let’s look at a sample data retrieval from the notification service. First, after one signal integration and adding the corresponding codes to your project, you need to add the following add-ons in your “main.dart” file:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/843/1*mbWi2Fek8rT3pK5A_4PMBg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/852/1*MVCIt-iN_sgT8nXmVxZfrQ.png" /></figure><p>Here, we create a future method and add the lines of code that we need to add for one signal and add them under the main heading so that the project works directly when it gets built. Now let’s explain the tasks of these add-ons in order.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*ZRUd7KAtob-owZajKOURWw.gif" /></figure><blockquote><strong>“The task of the OneSignal.shared.setLogLevel”</strong> method: The first parameter (logLevel) checks how detailed the detailed logs in the console/logcat are, while the visual log level controls whether the SDK will show warnings for each message logged.</blockquote><blockquote><strong>“The task of method OneSignal.shared.setAppId”:</strong> Initiator for OneSignal. Note that this launcher accepts an iOSSettings object, you can switch to null on Android</blockquote><blockquote><strong>“The task of the OneSignal.shared.promptUserForPushNotificationPermission”</strong> method is to check whether the information you send is accepted by the system.</blockquote><blockquote><strong>“The task of the OneSignal.shared.setNotificationWillShowInForegroundHandler”</strong> method: When a notification arrives and the application calls the handler in the foreground to the notification in the foreground.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*dWO8G6S7SCZ4wQ8_tWLMZw.gif" /></figure><blockquote>And now let’s look at how to manage this information.<br>In the example below, we can intervene in events inside a notification clicked with the method “OneSignal.shared.setNotificationOpenedHandler((openedResult){}”. Then we discard the data inside the notification that is opened to the “note” variable.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/838/1*hVcfi4xO6Fgoc0oBVgHCZg.png" /></figure><p>Then, according to the words contained in the title of the notification and if the notification contains a url, we can redirect to pages related to different redirects. The most important point here is that you should use this information that you send on the page you will be directed to while entering the page, that is, in the “init” method. Otherwise, you will not be able to use the information you submit on that page. Let’s take a look at how we use this information on the page we are referring to:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*ur7L9IWgiOzS2V5lf88DRQ.gif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/811/1*26IR8iNDbiMFA-FC0xSjmQ.png" /></figure><p>As you can see, we put the information we send into the relevant block structures so that this system works depending on the information we send. For example, the event <strong>“FetchNewsArticleBySlug”</strong> works by taking a slug and the system will work when we send this message from the notification.</p><blockquote>Then we listen to this block structure under it and throw the information in the status of <strong>“FetchNewsArticleBySlugLoaded”,</strong> which works with slug to the “news” model, which stands empty. Then we use the “news” variable easily.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/1*1-5WofbsY2TvZApRMxOtDQ.png" /></figure><p>Thanks for reading, you can reach out to me for all your opinions, suggestions and wishes. I wish you pleasant days.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*GqlKVbi-j8242N4VeyihjQ.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=411f42a3429a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Data transfer between pages]]></title>
            <link>https://medium.com/@kadircelikogluu/data-transfer-between-pages-78bdd25324d5?source=rss-6e0d38251f87------2</link>
            <guid isPermaLink="false">https://medium.com/p/78bdd25324d5</guid>
            <category><![CDATA[flutter-widget]]></category>
            <category><![CDATA[dart]]></category>
            <category><![CDATA[go-router]]></category>
            <category><![CDATA[bloc]]></category>
            <category><![CDATA[flutter-app-development]]></category>
            <dc:creator><![CDATA[Kadir Çelikoğlu]]></dc:creator>
            <pubDate>Mon, 24 Oct 2022 07:09:32 GMT</pubDate>
            <atom:updated>2022-10-24T07:09:32.742Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OFgqXdOLbFCsk1tqmD3kiA.png" /></figure><p>I will talk about an issue that is done in our data sending processes and is usually not interfered with because it works. First of all, let’s talk about what we need to do on the first page between the two pages that we will transfer the data to.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/1*2WFEAfmEmcyBtSSv-uyp9w.gif" /></figure><p>On the first page where we will send data, we should show our data as shown in the example below, using the service file we created before and using the state management method (BLoC, Provider, GetX etc.).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/801/1*zBPOEdb6hlwVl0p70sW5EA.png" /></figure><p>On this page, we should show the BLoC structure and service operations that I used before, and the blog data that I got information from the API here, using ListView.builder.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/793/1*cdx_KtvXFXfDbxsoB_GM4A.png" /></figure><p>Of course, we have to show that data with the state management method you use while listing the data with ListView.builder. Here, using Bloc.builder, the data is provided with the BLoC state management method.Here, using Bloc.builder, the data is provided with the BLoC state management method. Now, let’s examine how we should send the data when the card is clicked by showing the data with the model received by the “AboutBabyCard”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*G_aR_z2qNpcZtpGs5wi_Ew.gif" /></figure><p>Now, we can show the data from the service and BLoC by using our “blogModel” data from the previous page on this page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/813/1*uAIUzBN5XnPAjOzkRoPF7A.png" /></figure><p>Then, for example, if there is an image url in the data, we can show it to the screen as follows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/797/1*nVLK-Eu2YQGDVFZdwL-fGQ.png" /></figure><p>And now we should not send the model to the other page by clicking on this page. Because this makes it impossible to add deep links and sends all the data at once, causing performance problems. Instead, it will be much more convenient for you to send the “id” number of the blog card you clicked on to the other page and act on the id.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/811/1*zJ4Jozk3Sp7L1mnjPcS3sQ.png" /></figure><p>And now we are in the final stage. Come on guys, we have to take one last step.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/1*kRwXX0hJbxSqInO2BD5bDQ.gif" /></figure><p>The id number we sent is available in the “blogId” above. Then we pull the data according to the “id” number with the BLoC process we created.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/797/1*qC-rdxH-MY8VuONwhFJKZw.png" /></figure><p>We are pulling the data on this page using the id we sent here and with the help of BlocBuilder. And then we can easily display the data. Yes, it’s that simple!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zv-WY01HyCMSJGYxXJhd0w.png" /></figure><p>Thank you for reading. I hope I was able to contribute. Good coding everyone.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/1*2vpJ01f-YEpV5rxUcqHdVg.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=78bdd25324d5" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>