<?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 Hasan Yoldaş Toma on Medium]]></title>
        <description><![CDATA[Stories by Hasan Yoldaş Toma on Medium]]></description>
        <link>https://medium.com/@hasanyoldastoma?source=rss-48f257cdaef------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*IDeiF7DGm_VP8Od19_rxhQ.jpeg</url>
            <title>Stories by Hasan Yoldaş Toma on Medium</title>
            <link>https://medium.com/@hasanyoldastoma?source=rss-48f257cdaef------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 20:21:01 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@hasanyoldastoma/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[Flutter Shiny Button]]></title>
            <link>https://medium.com/@hasanyoldastoma/flutter-shiny-button-a3620733e9df?source=rss-48f257cdaef------2</link>
            <guid isPermaLink="false">https://medium.com/p/a3620733e9df</guid>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[dart]]></category>
            <dc:creator><![CDATA[Hasan Yoldaş Toma]]></dc:creator>
            <pubDate>Sun, 30 Apr 2023 16:02:17 GMT</pubDate>
            <atom:updated>2023-04-30T16:02:17.974Z</atom:updated>
            <content:encoded><![CDATA[<p>While browsing on Instagram the other day, I came across a button called ‘Shiny’ that caught my attention. It was written in Swift, but I decided to recreate it using the Flutter framework. The source code for the Flutter Shiny Button project will be available soon on flutterkopf.com. Enjoy!</p><pre>// ignore_for_file: sort_child_properties_last<br><br>import &#39;dart:ui&#39;;<br><br>import &#39;package:camera/camera.dart&#39;;<br>import &#39;package:flutter/cupertino.dart&#39;;<br>import &#39;package:flutter/material.dart&#39;;<br><br>late List&lt;CameraDescription&gt; _cameras;<br>Future&lt;void&gt; main() async {<br>  WidgetsFlutterBinding.ensureInitialized();<br><br>  _cameras = await availableCameras();<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>      theme: ThemeData(<br>        primarySwatch: Colors.blue,<br>      ),<br>      home: const MyHomePage(),<br>    );<br>  }<br>}<br><br>class MyHomePage extends StatefulWidget {<br>  const MyHomePage({<br>    super.key,<br>  });<br><br>  @override<br>  State&lt;MyHomePage&gt; createState() =&gt; _MyHomePageState();<br>}<br><br>class _MyHomePageState extends State&lt;MyHomePage&gt; {<br>  late CameraController controller;<br>  bool isPressed = true;<br>  @override<br>  void initState() {<br>    super.initState();<br>    controller = CameraController(_cameras[1], ResolutionPreset.max);<br><br>    controller.initialize().then((_) {<br>      if (!mounted) {<br>        return;<br>      }<br><br>      setState(() {});<br>    }).catchError((Object e) {<br>      if (e is CameraException) {<br>        switch (e.code) {<br>          case &#39;CameraAccessDenied&#39;:<br>            // Handle access errors here.<br>            break;<br>          default:<br>            // Handle other errors here.<br>            break;<br>        }<br>      }<br>    });<br>  }<br><br>  @override<br>  void dispose() {<br>    controller.dispose();<br>    super.dispose();<br>  }<br><br>  @override<br>  Widget build(BuildContext context) {<br>    if (!controller.value.isInitialized) {<br>      return Container();<br>    }<br>    double blur = isPressed ? 15.0 : 30.0;<br>    final backgroundColor = Color(0xFFE7ECE7);<br>    Offset distance = isPressed ? const Offset(3, 3) : const Offset(3, 3);<br>    return Scaffold(<br>      body: Center(<br>        child: Listener(<br>          onPointerUp: (_) =&gt; setState(() =&gt; isPressed = false),<br>          onPointerDown: (_) =&gt; setState(() =&gt; isPressed = true),<br>          child: TweenAnimationBuilder&lt;double&gt;(<br>              tween: Tween&lt;double&gt;(<br>                  begin: isPressed ? 1 : 0.95, end: isPressed ? 0.95 : 1.0),<br>              duration: const Duration(milliseconds: 100),<br>              builder: (context, scale, child) {<br>                return Transform.scale(<br>                  scale: scale,<br>                  child: AnimatedContainer(<br>                    duration: const Duration(milliseconds: 100),<br>                    margin: const EdgeInsets.symmetric(horizontal: 20),<br>                    width: MediaQuery.of(context).size.width,<br>                    height: 80,<br>                    decoration: BoxDecoration(<br>                      color: Colors.transparent,<br>                      border: isPressed<br>                          ? null<br>                          : Border.all(color: Colors.white, width: 2),<br>                      borderRadius: BorderRadius.circular(1000),<br>                      boxShadow: [<br>                        BoxShadow(<br>                          blurRadius: blur,<br>                          offset: distance,<br>                          color: Colors.black26,<br>                        ),<br>                      ],<br>                    ),<br>                    alignment: Alignment.center,<br>                    child: Stack(<br>                      fit: StackFit.expand,<br>                      children: [<br>                        ClipRRect(<br>                          borderRadius: BorderRadius.circular(1000),<br>                          child: CameraPreview(controller),<br>                        ),<br>                        ClipRRect(<br>                          borderRadius: BorderRadius.circular(1000),<br>                          child: BackdropFilter(<br>                            filter: ImageFilter.blur(<br>                                sigmaX: isPressed ? 12.0 : 15.0,<br>                                sigmaY: isPressed ? 12.0 : 15.0),<br>                            child: Container(),<br>                          ),<br>                        ),<br>                        Align(<br>                          alignment: Alignment.center,<br>                          child: isPressed<br>                              ? const CupertinoActivityIndicator(<br>                                  color: Colors.white,<br>                                )<br>                              : const Text(<br>                                  &quot;Button&quot;,<br>                                  style: TextStyle(<br>                                      color: Colors.black38, fontSize: 24),<br>                                ),<br>                        ),<br>                      ],<br>                    ),<br>                  ),<br>                );<br>              }),<br>        ),<br>      ),<br>    );<br>  }<br>}</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a3620733e9df" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Who Am I]]></title>
            <link>https://medium.com/@hasanyoldastoma/who-am-i-1746f77da930?source=rss-48f257cdaef------2</link>
            <guid isPermaLink="false">https://medium.com/p/1746f77da930</guid>
            <category><![CDATA[my-own-life]]></category>
            <dc:creator><![CDATA[Hasan Yoldaş Toma]]></dc:creator>
            <pubDate>Fri, 14 Apr 2023 23:39:37 GMT</pubDate>
            <atom:updated>2023-04-14T23:39:37.034Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello, my name is Hasan Yoldaş Toma and I am a software engineer. Let me briefly tell you about my life story. I was born in 1999 and I have been interested in programming since my childhood. I started my software development journey in 2013 with Visual Basic language. I was self-taught by watching videos and then moved on to learning other languages such as C#, C++, and Java. I also developed games with Unity. During my university years, I worked on the Vehicle Brain and Axle parts of an electric vehicle project. This allowed me to delve into embedded software development. In my third year of university, I became acquainted with Flutter and have been developing mobile applications with it ever since.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1746f77da930" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>