<?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 onat çipli on Medium]]></title>
        <description><![CDATA[Stories by onat çipli on Medium]]></description>
        <link>https://medium.com/@ciplionat35?source=rss-b7fc0e1d9879------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*TU0HKLQr0xF45U7FQ0BCGA.jpeg</url>
            <title>Stories by onat çipli on Medium</title>
            <link>https://medium.com/@ciplionat35?source=rss-b7fc0e1d9879------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 16:11:40 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ciplionat35/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[Bringing Instagram’s Super React Feature to Your Flutter Apps with Quick Interact]]></title>
            <link>https://medium.com/flutter-community/bringing-instagrams-super-react-feature-to-your-flutter-apps-with-quick-interact-f72dc9fa1de9?source=rss-b7fc0e1d9879------2</link>
            <guid isPermaLink="false">https://medium.com/p/f72dc9fa1de9</guid>
            <category><![CDATA[ux]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[flutter-app-development]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[instagram]]></category>
            <dc:creator><![CDATA[onat çipli]]></dc:creator>
            <pubDate>Mon, 27 Nov 2023 15:04:39 GMT</pubDate>
            <atom:updated>2023-11-27T15:04:39.082Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*yl8Vd4UNkDIi7EbM" /><figcaption>Photo by <a href="https://unsplash.com/@dole777?utm_source=medium&amp;utm_medium=referral">dole777</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><a href="https://pub.dev/packages/quick_interact">quick_interact | Flutter Package</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*5lSe6uT4-QABcT-AwSOEZQ.gif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/442/1*7gPMZXYcQZGbZLlz4rYDew.gif" /></figure><h3>Introduction:</h3><p>You know how you’re scrolling through Instagram, and you come across those reels that reveal your best friends? And then, there’s this nifty feature, officially called “<strong>Quick Send”</strong> or <strong>“Super React” looks pretty much similar to me</strong></p><p><strong><em>I don’t know the correct name btw if you do please let me know in the comments!!</em></strong></p><p>Anyway, this feature let you swiftly send any post, reel, or story with a long press. Plus, it enables you to react to any message with the same long press <strong>— pretty cool, isn’t it? 😄</strong></p><p>This feature caught my eye, and I thought, “Why not bring this cool functionality into our projects?” We were already using something similar for one of our client projects for sending reactions, and it proved to be a hit! So, I decided to craft a widget to let everyone access this feature — introducing <strong>“</strong><a href="https://pub.dev/packages/quick_interact"><strong>Quick Interact</strong></a><strong>”</strong>, a Flutter package inspired by Instagram’s Super React!</p><p>I just want to say it <a href="https://pub.dev/packages/quick_interact"><strong>Quick Intreact</strong></a> since as I was liked the Flutter Interact event a lot on that days..</p><h3>Motivation:</h3><p>Remember the excitement when you first discovered <strong>Instagram’s Super React?</strong> That’s the feeling I wanted to replicate in other projects! The idea was to bring that engaging, user-friendly experience that Instagram offers into the Flutter world. Quick Interact was born out of a desire to make such versatile and familiar interactions accessible to developers and users alike.</p><h3>Key Features:</h3><p>Crafting Quick Interact was like assembling a puzzle — each piece, a feature, adding value to the whole picture. The goal was to create a package that wasn’t just a replication but a tool that offered interactive widgets for all, customizable to every unique need.</p><h3>Installation &amp; Usage:</h3><p>Switching gears to developer mode, let’s dive into the installation and usage of Quick Interact. Installing the package is a breeze, whether you prefer updating the <strong>pubspec.yaml</strong> file or using the command line:</p><pre>dependencies:<br>  quick_interact: ^latest_version</pre><p>Or via the command line:</p><pre>flutter pub add quick_interact</pre><p>Now, let’s explore some usage examples:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/462/1*JS4oWNqzCk2D7i1cw9_bdA.gif" /></figure><ul><li><strong>Icon Quick Interaction:</strong></li></ul><pre>Widget iconQuickReaction({required QuickInteractConfig config}) {<br>  return Center(<br>    child: QuickInteractions(<br>      quickInteractionWidgets: const [<br>        Icon(Icons.thumb_up),<br>        Icon(Icons.thumb_down),<br>        Icon(Icons.favorite),<br>        Icon(Icons.bookmark),<br>      ],<br>      onQuickInteractCompleted: (index) {<br>        print(&#39;Quick interaction selected: $index&#39;);<br>      },<br>      config: config,<br>      child: const Icon(Icons.send),<br>    ),<br>  );<br>}</pre><p>This example demonstrates how to create quick interactions with different icons, using the QuickInteractConfig for customization.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/442/1*7gPMZXYcQZGbZLlz4rYDew.gif" /></figure><ul><li><strong>User Avatar Quick Interaction:</strong></li></ul><pre>Widget userAvatarQuickReaction({required QuickInteractConfig config}) {<br>  return Center(<br>    child: QuickInteractions(<br>      quickInteractionWidgets: const [<br>        CircleAvatar(<br>          radius: 15,<br>          backgroundImage:<br>          NetworkImage(&#39;https://randomuser.me/api/portraits/men/1.jpg&#39;),<br>        ),<br>        // ... other avatars ...<br>      ],<br>      onQuickInteractCompleted: (index) {<br>        print(&#39;Quick interaction selected: $index&#39;);<br>      },<br>      animate: true,<br>      config: QuickInteractConfig(),<br>      showToolTipDelay: const Duration(milliseconds: 300),<br>      child: const Icon(Icons.send),<br>    ),<br>  );<br>}</pre><p>Here, we’re using CircleAvatar widgets for user avatar quick reactions, showcasing the versatility of Quick Interact.</p><p>Since in Flutter that all widgets.. You can use for anything maybe emojis??</p><h3>Customization with QuickInteractConfig:</h3><p>The QuickInteractConfig API is your palette for crafting unique interactions. Whether you’re aiming for different styles or animations, this API has you covered. Currently, transition and scale animations are supported, and you can adjust the duration for smoother animations. You can have look to default constructor and also other named ones <strong>QuickInteractConfig.onlyTransition and QuickInteractConfig.onlyScale</strong> for different animation behaviors but I feel like you can do better ones please feel free to create PR.</p><pre>  /// [QuickInteractConfig] is a configuration model for QuickInteractBuilder and QuickInteract classes.<br>  /// Attributes:<br>  /// - [widgetSize]: Size of the quick interaction widgets container.<br>  /// - [widgetPadding]: Padding between quick interaction widgets.<br>  /// - [transitionAnimationEndOffset]: Offset animations end value.<br>  /// - [scaleAnimationEndScale]: Scale animations end value.<br>  /// - [containerColor]: Color of the quick interaction container.<br>  /// - [containerHeight]: Height of the quick interaction container.<br>  /// - [containerAnimationDuration]: Duration of the container animation.<br>  /// - [cursorAnimationDuration]: Duration of the cursor animation.<br>  /// - [containerAnimationCurve]: Curve of the container animation.<br>  /// - [widgetAnimationCurve]: Curve of the widget animation.<br><br>  /// Creates a new instance of [QuickInteractConfig].<br>  /// The default elevation is set to 5.<br>  const QuickInteractConfig({<br>    this.widgetSize = 35,<br>    this.widgetPadding = 4,<br>    this.cursorAnimationDuration = const Duration(milliseconds: 300),<br>    this.containerColor,<br>    this.containerHeight = 40,<br>    this.containerBorderRadius = const BorderRadius.all(<br>      Radius.circular(30),<br>    ),<br>    this.containerAnimationDuration = const Duration(milliseconds: 300),<br>    this.containerAnimationCurve = Curves.linearToEaseOut,<br>    this.widgetAnimationCurve = Curves.linearToEaseOut,<br>    this.transitionAnimationEndOffset = const Offset(0, -1),<br>    this.scaleAnimationEndScale = 1.5,<br>    this.elevation = 5,<br>  }) : assert(widgetSize &lt;= containerHeight,<br>            &#39;Widget size cannot be less than container height&#39;);</pre><h3>Best Use Cases:</h3><p>Quick Interact shines in scenarios like sending messages or reactions, much like Instagram’s Super React. Imagine the possibilities — from quick sends to instant reactions, the package adapts to various use cases. And for the developers wondering where to make endpoint calls, the onQuickInteractCompleted callback is your go-to:</p><pre>onQuickInteractCompleted: (index) {<br>  print(&#39;Quick interaction selected: $index&#39;);<br>},</pre><h3>Upcoming Features &amp; Conclusion:</h3><p>The journey with Quick Interact is just beginning. With upcoming features like safe area display and state change with a builder constructor, the adventure continues. Reflecting on the inspiration from Instagram’s Super React to the creation of this package, it’s exciting to see where it will go next.</p><h3>Call to Action:</h3><p>Now, it’s your turn to join the adventure! Dive into Quick Interact, experiment with its features, and let’s see the creative ways you implement it. Your feedback and insights are the compass guiding the future of this package. Explore the documentation, try out the examples, and let’s continue this story together!</p><p>Since I haven’t been here for a long time, I was but couldn’t able to create some articles for you guys feel free to follow me on twitter or X… ????? Idk what is the correct name again 😅<br><a href="https://twitter.com/OnatCipli">https://twitter.com/OnatCipli</a></p><p>Thanks for reading this article hope you enjoy..</p><p>Ooops I forgot the links here; <br><a href="https://github.com/onatcipli/quick_interact">https://github.com/onatcipli/quick_interact</a><br><a href="https://pub.dev/packages/quick_interact">https://pub.dev/packages/quick_interact</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f72dc9fa1de9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/flutter-community/bringing-instagrams-super-react-feature-to-your-flutter-apps-with-quick-interact-f72dc9fa1de9">Bringing Instagram’s Super React Feature to Your Flutter Apps with Quick Interact</a> was originally published in <a href="https://medium.com/flutter-community">Flutter Community</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Effortless Renaming in Flutter with the Rename CLI Tool v3]]></title>
            <link>https://medium.com/flutter-community/effortless-renaming-in-flutter-with-the-rename-cli-tool-v3-eaf97195ee5b?source=rss-b7fc0e1d9879------2</link>
            <guid isPermaLink="false">https://medium.com/p/eaf97195ee5b</guid>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[command-line]]></category>
            <category><![CDATA[flutter-app-development]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[dart]]></category>
            <dc:creator><![CDATA[onat çipli]]></dc:creator>
            <pubDate>Wed, 18 Oct 2023 17:43:02 GMT</pubDate>
            <atom:updated>2023-10-18T17:43:02.547Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*EeRzshuB6Rd4NzU8" /><figcaption>Photo by <a href="https://unsplash.com/@priscillag?utm_source=medium&amp;utm_medium=referral">Priscilla Gyamfi</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Introduction</h3><p><a href="https://pub.dev/packages/rename">The Rename CLI Tool</a> is a utility designed to modify your Flutter project’s AppName and BundleId across various platforms. It aims to streamline the renaming process in Flutter projects, saving developers time and effort.</p><ul><li><a href="https://pub.dev/packages/rename">rename | Dart Package</a></li><li><a href="https://github.com/onatcipli/rename">GitHub - onatcipli/rename: it is an dart package which renames the app for ios and android</a></li></ul><h3>Key Features</h3><p><a href="https://github.com/onatcipli/rename">The Rename CLI Tool</a> supports multiple platforms including <strong>IOS, Android, MacOS, Linux, Web (only app name related functionality), and Windows</strong>.</p><p>It provides a <strong>simple command-line interface to change the AppName and BundleId across these platforms.</strong></p><h3>Installation &amp; Usage</h3><p>Installing the Rename CLI Tool is as simple as running a command:</p><pre>flutter pub global activate rename</pre><p>To use the tool, you can run the <strong>rename command followed by the options you want to change.</strong></p><p>For example,<strong> to change the app name</strong>, you can use the <strong>setAppName</strong> command:</p><pre>rename setAppName --targets ios,android - value &quot;YourNewAppName&quot;</pre><p>To retrieve the current AppName for a specific platform:</p><pre>rename getAppName --targets ios</pre><p>Similarly, use <strong>getBundleId</strong> and <strong>setBundleId</strong> to retrieve or set the BundleId for the specified platforms.</p><pre>rename getBundleId --targets android</pre><pre>rename setBundleId - targets android - value &quot;com.rename.new.bundleId&quot;</pre><p>For more detailed usage instructions, please refer to the <a href="https://github.com/onatcipli/rename"><strong>README.md</strong></a> file in the project repository.</p><h3>Best Use Cases</h3><p><a href="https://github.com/onatcipli/rename">The Rename CLI Tool</a> is ideal for developers who frequently need to rename their Flutter projects. Whether you’re rebranding an existing project or just fixing a typo in the app name, this tool can save you a lot of time and effort. Also you can just use after flutter create to creating your real bundleId and app name</p><h3>Conclusion &amp; Call to Action</h3><p><a href="https://github.com/onatcipli/rename">The Rename CLI Tool</a> is a powerful utility that <strong>simplifies the renaming process in Flutter projects. With its support for multiple platforms and easy-to-use command-line interface</strong>, it’s a valuable tool for any Flutter developer.</p><p>We invite you to try out the <a href="https://github.com/onatcipli/rename">Rename CLI Tool</a> and let us know what you think. Your feedback is crucial in helping us improve the tool and make it even more useful for developers. Check out the <a href="https://github.com/onatcipli/rename">GitHub repository</a> and the <a href="https://pub.dev/packages/rename">package on pub.dev</a> to get started.</p><p>Thank you for reading this article. We hope you find <a href="https://github.com/onatcipli/rename">the Rename CLI Tool</a> helpful in your Flutter development journey.</p><h3>Conclusion</h3><p>Thank you for taking the time to read this article. I hope you found it informative and it helps you in your Flutter development journey. If you have any questions or would like to discuss further on this topic, feel free to reach out. Your feedback and suggestions are always welcome, as they help in refining the content and bringing more value to the community.</p><p>Connect with Me</p><ul><li>Twitter: <a href="https://twitter.com/OnatCipli">@OnatCipli</a></li><li>Medium: <a href="https://medium.com/u/b7fc0e1d9879">onat çipli</a></li><li>GitHub: <a href="https://github.com/onatcipli">@onatcipli</a></li><li>LinkedIn: <a href="https://www.linkedin.com/in/onat-%C3%A7ipli/">@onatçipli</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eaf97195ee5b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/flutter-community/effortless-renaming-in-flutter-with-the-rename-cli-tool-v3-eaf97195ee5b">Effortless Renaming in Flutter with the Rename CLI Tool v3</a> was originally published in <a href="https://medium.com/flutter-community">Flutter Community</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Integrating Bottom Navigation with Go Router in Flutter]]></title>
            <link>https://medium.com/flutter-community/integrating-bottom-navigation-with-go-router-in-flutter-c4ec388da16a?source=rss-b7fc0e1d9879------2</link>
            <guid isPermaLink="false">https://medium.com/p/c4ec388da16a</guid>
            <category><![CDATA[navigation]]></category>
            <category><![CDATA[dart]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[go-router]]></category>
            <dc:creator><![CDATA[onat çipli]]></dc:creator>
            <pubDate>Wed, 20 Sep 2023 13:34:31 GMT</pubDate>
            <atom:updated>2023-09-23T08:20:47.312Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*GNtkIK13NhoaasWv" /><figcaption>Photo by <a href="https://unsplash.com/@jerrykavan?utm_source=medium&amp;utm_medium=referral">Jaromír Kavan</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><strong>TLDR:</strong> This article explores the powerful features of Go Router, a routing library for Flutter. It showcases how Go Router facilitates advanced navigation within tabs, including root navigator and preserving tab-specific state. The article emphasizes the benefits of using Go Router for seamless and efficient navigation in complex Flutter applications.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*Tu_FeiGyWL_VvyIiAcNxmw.gif" /></figure><p><a href="https://youtube.com/shorts/G8D2SSIWHfU?feature=share">Integrating Bottom Navigation with Go Router in Flutter</a></p><h3>Introduction</h3><p>Routing is one of the most essential parts of any Flutter application. While Flutter offers a built-in navigation system, third-party packages like <a href="https://pub.dev/packages/go_router"><strong>Go Router</strong></a> provide an enhanced, more intuitive way to manage your app’s routes. In this article, we’ll explore how to integrate Go Router with <a href="https://api.flutter.dev/flutter/material/BottomNavigationBar-class.html"><strong>BottomNavigation</strong></a> in Flutter using a Singleton helper class.</p><h3>What is Routing?</h3><p>Routing is the mechanism that handles the navigation between different screens in your application. In Flutter, this is often managed through the Navigator 2.0 API, which allows for a flexible and straightforward way to handle transitions between pages.</p><h3>Why Choose Go Router?</h3><p>Selecting a routing package is a <strong>critical decision in the Flutter development process</strong>, and <strong>Go Router</strong> offers a multitude of features that make it a compelling choice. Here&#39;s <strong>why you might consider using Go Router</strong> in your next Flutter project:</p><ul><li><strong>Declarative Syntax: </strong>Go Router uses a declarative syntax, making your routing <strong>logic easy to read and manage</strong>. This intuitive syntax simplifies route definition, making it easier for developers to get started. You can see all of your routes(pages) in one place.</li></ul><pre>final routes = [<br>      GoRoute(<br>        parentNavigatorKey: parentNavigatorKey,<br>        path: signUpPath,<br>        pageBuilder: (context, state) {<br>          return getPage(<br>            child: const SignUpPage(),<br>            state: state,<br>          );<br>        },<br>      ),<br>      GoRoute(<br>        parentNavigatorKey: parentNavigatorKey,<br>        path: signInPath,<br>        pageBuilder: (context, state) {<br>          return getPage(<br>            child: const SignInPage(),<br>            state: state,<br>          );<br>        },<br>      ),<br>      GoRoute(<br>        path: detailPath,<br>        pageBuilder: (context, state) {<br>          return getPage(<br>            child: const DetailPage(),<br>            state: state,<br>          );<br>        },<br>      ),<br>];</pre><ul><li><strong>Named Routes: </strong>Having named routes provides an extra layer of abstraction that makes your routes easier to manage. It allows you to centralize your routing logic, making your codebase easier to maintain and refactor.</li></ul><pre>....<br>  static const String signUpPath = &#39;/signUp&#39;;<br>  static const String signInPath = &#39;/signIn&#39;;<br>  static const String detailPath = &#39;/detail&#39;;<br>....</pre><ul><li><strong>Type Safety: </strong>Go Router is designed with type safety in mind. This ensures that you are less likely to run into runtime errors due to type mismatches, making your application more robust and maintainable.</li></ul><pre>  GoRoute(<br>    path: &#39;/details/:id&#39;, // :id is a parameter<br>    pageBuilder: (context, GoRouterState state) {<br>      // Access parameters and enforce type safety using type casting<br>      final id = int.tryParse(state.params[&#39;id&#39;] ?? &#39;&#39;) ?? -1;<br><br>      // Given that `id` is now an integer, you can proceed safely<br>      return getPage(<br>        child: DetailsPage(id: id),<br>        state: state,<br>      );<br>    },<br>  ),</pre><ul><li><strong>Deep Linking: </strong>Deep linking is a feature that allows you to navigate to a particular screen or state within your app through a URL. Go Router supports deep linking out-of-the-box, enabling more sophisticated navigation scenarios and improved user experiences.</li><li><strong>Redirection:</strong> Go Router supports route redirection, a useful feature when you want to reroute users based on specific conditions like authentication status. This feature provides additional flexibility when handling complex routing scenarios.</li></ul><pre>GoRoute(<br>        path: &#39;/dashboard&#39;,<br>        pageBuilder: (context, state) =&gt; MaterialPage(child: DashboardScreen()),<br>        // Redirects to login if not authenticated<br>        redirect: (state) {<br>          if (!isUserAuthenticated()) {<br>            return &#39;/login&#39;;<br>          }<br>          return null;<br>        },<br>      ),</pre><ul><li><strong>Parameter Passing: </strong>Go Router simplifies passing parameters between routes, including complex data types. This is managed without the need for serialization or parsing, making the exchange of data between routes seamless.</li></ul><h3>Setting Up Go Router in Flutter</h3><p>To get started with <a href="https://pub.dev/packages/go_router"><strong>Go Router</strong></a>, we first need to add the package to our Flutter project. This can be done by using the following command:</p><pre>flutter pub add go_router</pre><p>This command adds the latest version of the Go Router package to your project. Now, let’s delve into the heart of our routing setup — the CustomNavigationHelper class.</p><h3>Initialization and Singleton Design Pattern</h3><p>In Flutter, it’s often beneficial to have a centralized navigation helper, especially if you’re working with multiple routes and navigators. Here, we implement the singleton pattern for our navigation helper</p><pre>class CustomNavigationHelper {<br>  static final CustomNavigationHelper _instance =<br>      CustomNavigationHelper._internal();<br><br>static CustomNavigationHelper get instance =&gt; _instance;<br>  factory CustomNavigationHelper() {<br>    return _instance;<br>  }<br><br>  CustomNavigationHelper._internal() {<br>    // Router initialization happens here.<br>  }<br>}</pre><p><strong>Explanation:</strong> The above code defines a singleton instance of the CustomNavigationHelper. This ensures that only a single instance of this class is created and shared throughout the application.</p><h3>Defining Navigator Keys</h3><p>For advanced navigation setups, especially when dealing with multiple <strong>navigators or tabs, Flutter requires unique keys.</strong> We define these keys at the beginning of our helper. If you don’t add these keys there could be some issues <strong>in Navigation or Transition animations</strong> so don’t forget to add keys.</p><pre>static final GlobalKey&lt;NavigatorState&gt; parentNavigatorKey =<br>      GlobalKey&lt;NavigatorState&gt;();<br><br>static final GlobalKey&lt;NavigatorState&gt; homeTabNavigatorKey =<br>      GlobalKey&lt;NavigatorState&gt;();<br>  // ... other navigator keys</pre><p><strong>Explanation:</strong> Each key represents a unique navigator. For example, homeTabNavigatorKey is specifically for the home tab&#39;s navigation stack.</p><h3>Routes Declaration</h3><p>Routes guide our application on how to navigate between different screens. In Go Router, routes are represented by instances of GoRoute. Let&#39;s see a basic example:</p><pre>static const String homePath = &#39;/home&#39;;<br><br>// ... inside the CustomNavigationHelper._internal()<br>  final routes = [<br>    GoRoute(<br>      path: homePath,<br>      pageBuilder: (context, GoRouterState state) {<br>        return getPage(<br>          child: const HomePage(),<br>          state: state,<br>        );<br>      },<br>    ),<br>    // ... other routes<br>  ];</pre><p><strong>Explanation:</strong> The homePath is a string that represents the route for the HomePage. In the routes list, we associate this string with a page builder, which returns the HomePage widget when this route is navigated to.</p><h3>Initializing the Go Router</h3><p>After defining our routes, we initialize the GoRouter:</p><pre>// ... at the end of the CustomNavigationHelper._internal()<br>// ... after we declared our routes<br><br>router = GoRouter(<br>  navigatorKey: parentNavigatorKey,<br>  initialLocation: signUpPath,<br>  routes: routes,<br>);</pre><p><strong>Explanation:</strong> The GoRouter takes in a list of routes we&#39;ve defined, an <strong>initial location (the page the app opens on first launch)</strong>, and a navigator key.</p><h3>Helper Function: getPage</h3><p>The getPage function is a utility function to wrap our routes in a MaterialPage:</p><pre>static Page getPage({<br>  required Widget child,<br>  required GoRouterState state,<br>}) {<br>  return MaterialPage(<br>    key: state.pageKey,<br>    child: child,<br>  );<br>}</pre><p><strong>Explanation:</strong> This function takes a widget (the page we want to navigate to) and a state, returning a MaterialPage that wraps our widget. This makes our route definitions cleaner and more readable. In this part its important to pass state.pageKey to MaterialPage for go router. It is preventing the weird animations or any confusion in the routing</p><h3>Using the CustomNavigationHelper</h3><p>Finally, in our main app widget, we can utilize the CustomNavigationHelper to set up our application with the Go Router, It is important the first initialize the <strong>CustomNavigationHelper </strong>because we need to set the our routes before our app starts and you can do that by simply accessing the CustomNavigationHelper.instance or CustomNavigationHelper() both will be same since its a Singleton class.</p><pre>main() {<br>  CustomNavigationHelper.instance; // Initializing our navigation helper<br>  runApp(const App());<br>}</pre><pre>class App extends StatelessWidget {<br>  const App({Key? key}) : super(key: key);</pre><pre>  @override<br>  Widget build(BuildContext context) {<br>    return MaterialApp.router(<br>      debugShowCheckedModeBanner: false,<br>      routerConfig: CustomNavigationHelper.router,<br>    );<br>  }<br>}</pre><p><strong>Explanation:</strong> In our main function, we first initialize the CustomNavigationHelper, and then run our main app widget. Inside the App widget, we use the MaterialApp.router constructor and provide it with our GoRouter configuration.</p><h3>Advanced Routing with StatefulShellRoute, StatefulShellBranch, and PageBuilder</h3><h4>StatefulShellRoute.indexedStack with PageBuilder</h4><p>In the StatefulShellRoute.indexedStack named constructor, one of the important properties is pageBuilder. The pageBuilder is responsible for rendering the UI for the Shell part and its child.</p><pre>StatefulShellRoute.indexedStack(<br>  parentNavigatorKey: parentNavigatorKey,<br>  branches: [<br>    // Branches defined here...<br>  ],<br>  pageBuilder: (<br>    BuildContext context,<br>    GoRouterState state,<br>    StatefulNavigationShell navigationShell,<br>  ) {<br>    return getPage(<br>      child: BottomNavigationPage(<br>        child: navigationShell,<br>      ),<br>      state: state,<br>    );<br>  },<br>)</pre><p><strong>Explanation:</strong> Here, the pageBuilder function takes three arguments:</p><ul><li>BuildContext context: The build context.</li><li>GoRouterState state: The current router state.</li><li>StatefulNavigationShell navigationShell: A custom object that holds the navigation state for the child branches.</li></ul><p>The function returns a page that contains our BottomNavigationPage, which in turn holds the navigationShell. This way, the BottomNavigationPage <strong>becomes a shell for the child branches,</strong> effectively becoming the bottom navigation interface for the entire app. Also we have AppBar in BottomNavigation page so the child will be in the body only.</p><h4>The Role of PageBuilder in StatefulShellBranch’s routes</h4><p>In each StatefulShellBranch, and for its routes each GoRoute class have the pageBuilder property is also used but for a different purpose.</p><pre>StatefulShellBranch(<br>  navigatorKey: homeTabNavigatorKey,<br>  routes: [<br>    GoRoute(<br>      path: homePath,<br>      pageBuilder: (context, GoRouterState state) {<br>        return getPage(<br>          child: const HomePage(),<br>          state: state,<br>        );<br>      },<br>    ),<br>  ],<br>)</pre><p><strong>Explanation:</strong> Within the StatefulShellBranch, the pageBuilder is responsible for defining what UI is displayed for each individual route within the branch. This is how each tab can have its own navigation stack, separate from the others.</p><p>By using the pageBuilder property wisely in both StatefulShellRoute.indexedStack and StatefulShellBranch routes <strong>GoRoute</strong> we ensure a robust, modular, and efficient routing mechanism that works perfectly with bottom navigation.</p><p>In summary, the pageBuilder in StatefulShellRoute.indexedStack serves as a shell to host the bottom navigation interface, while the pageBuilder in each StatefulShellBranch takes care of the individual pages that are part of each tab&#39;s navigation stack. This layered approach allows for a seamless user experience</p><h3>How BottomNavigationPage and Go Router Work Together</h3><p>Now let’s look at the BottomNavigationPage class and how it works in tandem with the CustomNavigationHelper.</p><h4>The BottomNavigationPage Class</h4><p>This widget is essentially a stateful wrapper for your bottom navigation bar. It takes a StatefulNavigationShell as its child.</p><pre>class BottomNavigationPage extends StatefulWidget {<br>  const BottomNavigationPage({<br>    super.key,<br>    required this.child,<br>  });<br>  <br>  final StatefulNavigationShell child;<br>  // ...<br>}</pre><h4>Handling Navigation Changes</h4><p>Inside the BottomNavigationPage, we manage the state of the bottom navigation by using widget.child.goBranch method.</p><pre>onTap: (index) {<br>  widget.child.goBranch(<br>    index,<br>    initialLocation: index == widget.child.currentIndex,<br>  );<br>  setState(() {});<br>},</pre><p><strong>Explanation:</strong> When a tab is tapped, the goBranch method of the StatefulNavigationShell child is called. This method changes the current branch, hence switching the navigation stack. After that, setState is called to rebuild the UI with the new branch.</p><h4>Combining Both Worlds</h4><p>When setting up the StatefulShellRoute.indexedStack, you pass it as the child to BottomNavigationPage.</p><pre>pageBuilder: (<br>  BuildContext context,<br>  GoRouterState state,<br>  StatefulNavigationShell navigationShell,<br>) {<br>  return getPage(<br>    child: BottomNavigationPage(<br>      child: navigationShell,<br>    ),<br>    state: state,<br>  );<br>},</pre><p><strong>Explanation: </strong>The pageBuilder in StatefulShellRoute.indexedStack returns a MaterialPage that contains the BottomNavigationPage. This allows Go Router to seamlessly manage the routes while still providing a custom bottom navigation experience.</p><p>By combining CustomNavigationHelper with BottomNavigationPage, you not only manage your routes dynamically but <strong>also maintain individual navigation stacks for each tab in your bottom navigation</strong>. This results in a clean, modular, and easy-to-manage navigation setup in your Flutter application.</p><h3>The BottomNavigationPage as a UI Shell</h3><h4>What is a Shell?</h4><p>In application development, a “shell” is often a component that hosts other parts of the application’s UI. It provides a consistent layout or set of interactions. In the context of our Flutter app, both the BottomNavigationPage and the AppBar act as shells.</p><h4>BottomNavigationPage Explained</h4><p>The BottomNavigationPage class is a StatefulWidget that takes a StatefulNavigationShell as a required parameter. This shell contains the navigation state for the individual branches (tabs) that are managed by the StatefulShellRoute.indexedStack.</p><pre>....<br>class _BottomNavigationPageState extends State&lt;BottomNavigationPage&gt; {<br>  @override<br>  Widget build(BuildContext context) {<br>    return Scaffold(<br>      appBar: AppBar(<br>        title: const Text(&#39;Bottom Navigator Shell&#39;),<br>      ),<br>      body: SafeArea(<br>        child: widget.child,<br>      ),<br>      bottomNavigationBar: BottomNavigationBar(<br>        ....<br>      ),<br>    );<br>  }<br>}</pre><p>Here’s a breakdown of its main components:</p><p>AppBar</p><p>The AppBar in the Scaffold provides a consistent top section across different pages. It hosts the title, which in our example is set to &#39;Bottom Navigator Shell&#39;.</p><p>Body</p><p>The body of the Scaffold is set to SafeArea(child: widget.child). Here, widget.child is the StatefulNavigationShell passed into this widget, which in turn contains the current page based on the active tab. The SafeArea ensures that the UI doesn&#39;t overlap any system interfaces.</p><p>BottomNavigationBar</p><p>The BottomNavigationBar is where things get more interactive. It not only displays the available tabs but also handles tab switching.</p><pre>BottomNavigationBar(<br>  type: BottomNavigationBarType.fixed,<br>  currentIndex: widget.child.currentIndex,<br>  onTap: (index) {<br>    widget.child.goBranch(<br>      index,<br>      initialLocation: index == widget.child.currentIndex,<br>    );<br>    setState(() {});<br>  },<br>  ...<br>)</pre><p>Here, currentIndex is fetched from StatefulNavigationShell to indicate which tab is currently active. When a tab is tapped, the onTap method uses goBranch from StatefulNavigationShell to switch to the appropriate branch. The setState(() {}) ensures that the UI is rebuilt to reflect the changes.</p><h4>How it All Ties Together</h4><ol><li>AppBar gives a constant top shell.</li><li>BottomNavigationBar acts as the bottom shell and also as the controller for switching between different tabs.</li><li>Body displays the current page that corresponds to the active tab, thus ensuring a seamless user experience.</li></ol><p>In essence, the BottomNavigationPage serves as a cohesive shell that wraps around the navigational aspects and the individual pages of the application. It leverages the StatefulNavigationShell to maintain and manage the navigation state, thus facilitating a sophisticated yet straightforward user interface.</p><h3>Complete Example</h3><p>The following code snippet provides a <strong>comprehensive example of how to use Go Router in a Flutter app</strong>, showcasing features like route definition and <strong>StatefulShellRoute and other things </strong>like how to navigate from root navigator or from the shell etc.</p><p>You can find the complete source code for this example on <a href="https://gist.github.com/onatcipli/aed0372c987b4ae32311fe32bb4c1209">GitHub Gist</a>.</p><p>Additionally, if you’d like to try running this app, you can do so on <strong>DartPad via this </strong><a href="https://dartpad.dev/aed0372c987b4ae32311fe32bb4c1209?"><strong>live test link</strong></a><strong>.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c4ec388da16a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/flutter-community/integrating-bottom-navigation-with-go-router-in-flutter-c4ec388da16a">Integrating Bottom Navigation with Go Router in Flutter</a> was originally published in <a href="https://medium.com/flutter-community">Flutter Community</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ripple into page with Flutter]]></title>
            <link>https://medium.com/flutter-community/ripple-into-page-with-flutter-2e3a1cfa5c41?source=rss-b7fc0e1d9879------2</link>
            <guid isPermaLink="false">https://medium.com/p/2e3a1cfa5c41</guid>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[flutter-ui]]></category>
            <category><![CDATA[flutter-widget]]></category>
            <category><![CDATA[dart]]></category>
            <category><![CDATA[flutter-app-development]]></category>
            <dc:creator><![CDATA[onat çipli]]></dc:creator>
            <pubDate>Fri, 21 May 2021 20:30:59 GMT</pubDate>
            <atom:updated>2021-05-21T20:30:59.278Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/887/1*jNntOgOzuuWWDHy9BB-8lg.png" /></figure><p>Welcome back again, Last week I saw the ripple page transitions and want to build for myself a widget to do that. <strong>So the </strong><a href="https://pub.dev/packages/ripple_navigation"><strong>ripple_navigation</strong></a><strong> package appeared</strong></p><h3>First and easy way to do this use the package</h3><p>It is pretty much straightforward and easy to use all you need to do is select a start point so widget as you guessed.</p><p>Do not forget to import the package first!</p><pre><strong>import</strong> &#39;package:ripple_navigation/ripple_navigation.dart&#39;;</pre><p>wrap that widget with <strong>RippleLocation </strong>widget from the package, <strong>f</strong>or example in my case its <strong>FloatingActionButton</strong></p><pre>RippleLocation(<br>    rippleController: rippleController,<br>    child: FloatingActionButton(<br>        onPressed: onPressed,<br>        tooltip: &#39;Increment&#39;,<br>        child: Icon(Icons.add),<br>    ),<br>)</pre><p><strong>RippleLocation </strong>widget needs <strong>rippleController, </strong>first create the <strong>rippleController</strong> inside your <strong>StatelessWidget or StatefullWidget</strong></p><pre><strong>GlobalKey</strong>&lt;<strong>RippleLocationState</strong>&gt; rippleController = <strong>GlobalKey</strong>();</pre><p>So you are ready to the navigate to next page with the ripple transition, all you need to do is use the <strong>pushRippleTransitionPage </strong>method from the controller</p><pre>rippleController.currentState.pushRippleTransitionPage(<br>  context,<br>  SecondPage(),<br>);</pre><p>And it is all Set up!!! <a href="https://github.com/onatcipli/ripple_navigation/blob/master/example/lib/main.dart">You can also check the example inside the package</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*pdy23ACDM8ewyDaCRwzlsw.gif" /></figure><p>This is the package repository on Github,<strong> if this story hits 500 claps I will show what is going under the hood.</strong></p><p><a href="https://github.com/onatcipli/ripple_navigation">onatcipli/ripple_navigation</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2e3a1cfa5c41" width="1" height="1" alt=""><hr><p><a href="https://medium.com/flutter-community/ripple-into-page-with-flutter-2e3a1cfa5c41">Ripple into page with Flutter</a> was originally published in <a href="https://medium.com/flutter-community">Flutter Community</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hey Flutter, Welcome to the Stores]]></title>
            <link>https://medium.com/flutter-community/hey-flutter-welcome-to-the-stores-a60bc781fb9a?source=rss-b7fc0e1d9879------2</link>
            <guid isPermaLink="false">https://medium.com/p/a60bc781fb9a</guid>
            <category><![CDATA[play-store]]></category>
            <category><![CDATA[dart]]></category>
            <category><![CDATA[releases]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[app-store]]></category>
            <dc:creator><![CDATA[onat çipli]]></dc:creator>
            <pubDate>Tue, 28 Apr 2020 12:14:13 GMT</pubDate>
            <atom:updated>2020-05-01T00:46:26.626Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VnIb3nczEfq3oCLAn-uxew.png" /></figure><p>Hi, guys I just went through from the publish process both <strong>AppStore</strong> and <strong>PlayStore</strong> with my <strong>NetworkUpp(</strong><a href="https://apps.apple.com/tr/app/networkupp/id1499186365?l=tr"><strong>ios</strong></a><strong>/</strong><a href="https://play.google.com/store/apps/details?id=com.ciplidev.network_up"><strong>android</strong></a><strong>) app</strong> and I did think I should note the general steps according to the store for myself and since I love sharing and helping other people I shared them with you <strong>Welcome to the Stores</strong></p><h3>Creating Flutter App</h3><p>I will create a flutter app from the command line and I publish this app with my developer accounts. You probably want to publish your currently working app that&#39;s no problem the steps will be the same but if you have some dependencies like Push Notification or background tasks you need some extra work like enabling some capabilities for IOS</p><p>flutter create repo_explorer</p><blockquote>By the way, I’m thinking to implement the GitHub Repository Explorer Application that&#39;s why I named as repo_explorer. After implement this I can add the steps about how to release new version.</blockquote><p>I create my flutter project and let&#39;s begin with AppStore.</p><p>You can generate app icons from the<a href="http://appicon.co/"> appicon.co</a> and add manually to your project or you can use a <a href="https://pub.dev/packages/flutter_launcher_icons">flutter_launcher_icons </a>package. If you want to add native splash screen you can use <a href="https://pub.dev/packages/flutter_native_splash">flutter_native_splash</a> package.</p><h3>Release to the AppStore — iOS</h3><p>First, to publish an app to <a href="https://www.apple.com/tr/ios/app-store/">AppStore</a> you need to <a href="https://developer.apple.com/programs/enroll/">enroll Apple Developer Program</a></p><blockquote>For an individual account, they charge 100$ dollar per year.</blockquote><p>I assume you had enrolled Apple Developer Program. if not you can pass the AppStore step.</p><p>Every iOS application is associated with a unique Bundle ID, so we need to configure this the easiest way is opening <strong>repo_explorer/ios/Runner.xcworkspace</strong> file with Xcode</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TMjwH_CsHrC31426dhhLXA.png" /></figure><p>We need to ensure we have logged in with a Developer Account which has already enrolled if we have not logged in with our account you can from Xcode preferences</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/732/1*UO_QkKiJkENZGJoiU7aMXg.png" /></figure><p>If you enrolled account is not here you need to add with the plus icon</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rGxKiekRNNp4hGX1ELgAWA.png" /></figure><p>So In Xcode, we have our enrolled account. Click the Runner on Project Navigator after that open Signing &amp; Capabilities ensure you selected All and Automatically manage signing is enabled then select your team. After selecting your team, you need to configure Bundle Identifier, I changed as <strong>com.onatcipli.repoExplorer</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e9WrhKF2qAHv4Ls5938OWQ.png" /></figure><p>we change bundle identifier but it is not seen on <a href="https://developer.apple.com/account/resources/identifiers/list/bundleId">developer.apple.com in Identifiers section</a>, don&#39;t panic it is normal to create it we have two option</p><p><strong>The first option</strong>(which is my favorite), you can add a random capability on Xcode then remove it. This action triggers the Xcode to create this bundle identifier. As you can see in the following picture it&#39;s added when Identifier managed by Xcode in name section Xcode add XC</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2d1JED6EHkoLsS__fAy0YQ.png" /></figure><p><strong>The second option</strong> is opening the <a href="https://developer.apple.com/account/resources/identifiers/list/bundleId">developer.apple.com in Identifiers section</a> and adding manually with the plus icon which is after the Identifiers.</p><h4>App Store Connect</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*neHvvYu-Z9yiCjV_dBlHYw.png" /></figure><p>Now We need to create an App first click the My Apps then create the plus icon for adding new App to App Store Connect</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DXKcjxyl7c1s79Cd58mhfQ.png" /></figure><p>After clicking create button you see the App Information Page,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2cAuRLgNUObfFbyKICd4rw.png" /></figure><p>NOTE: If you don&#39;t want to support iPad or Landscape modes in your app <strong>uncheck</strong> these areas on General tab</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5h_hqlvnV7LpikSoXOLi7g.png" /></figure><p>now, We can go to Xcode and take the create the <strong>archive</strong> of the project from Product →Archive</p><blockquote>Ensure you selected Generic iOS Device</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2paYwiooKd0hoRKTl_lPcQ.png" /></figure><p>After Archive finished <strong>Organizer needs to be open if it is not</strong> you can always open from the <strong>Window →Organizer</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZFZChZojxboNnJbfOlsdtw.png" /></figure><p>So we opened Organizer now we can select our app and click to <strong>Distribute App.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BiVASkbAQ5kY49e9STnoow.png" /></figure><p>and gone through with defaults you just need to next next next after the upload process finished you will receive a mail from <strong>App Store Connect.</strong></p><p>After that, we opened our app in <a href="https://appstoreconnect.apple.com/">App Store Connect</a> and select <strong>Prepare for Submission</strong> from the left and fill the required areas such as <strong>App Preview and Screenshots, Keywords, Promotional Text, Description, Support URL, Marketing URL, App Review Information and Build.</strong></p><blockquote>For App Preview and Screenshots Apple wants at least 3 picture for your app and you can see <a href="https://help.apple.com/app-store-connect/#/devd274dd925">the specifications from this link</a> <br>but in short, you need <br>3 pictures<strong> (1242 x 2688 pixels) for 6.5 inches,<br></strong>3 pictures <strong>(1242 x 2208 pixels) for 5.5 inches,<br></strong>If the iPad(3rd Gen) supported 3 pictures <strong>(2048 x 2732 pixels) for 12.9 inches,<br></strong>If the iPad(2nd Gen) supported 3 pictures <strong>(2048 x 2732 pixels) for 12.9 inches.</strong></blockquote><blockquote>For creating these pictures generally, I open 3 simulators and take screenshots from the app and handle the pixels on Figma(which is my favorite:)</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XUKRwkF36E02Mv51vCBRoA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hTV8n9hMqNN2Tt6ecFbGgg.png" /></figure><blockquote><strong>Before submitting the app for avoiding the rejection you should read </strong><a href="https://developer.apple.com/app-store/review/"><strong>Avoiding the Common App Rejections</strong></a><strong> and </strong><a href="https://developer.apple.com/app-store/review/guidelines/"><strong>App Store Review Guidelines</strong></a></blockquote><p>After adding build and all required areas we click first save button after save finished click the Submit for Review button if anything missing App Store Connect will help us to find that missing thing like that:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HI3N-xFRpbAmv_fgANGj-w.png" /></figure><p>After finishing all missing parts clicking to Submit for Review will open this window and fill these areas according to your app</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1017/1*TzO3vvvU-UyZYo2CNujcXw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sgov5ci9YMk6mrFfk-mIFg.png" /></figure><h3>Well Done Submitted to AppStore!!</h3><blockquote>See the status means from the <a href="https://help.apple.com/app-store-connect/#/dev3d6869aff">App Build Statuses</a> and <a href="https://help.apple.com/app-store-connect/#/dev18557d60e">App Statuses</a></blockquote><p>We submitted our app now we need to wait for a review if it is suitable to AppStore needs when the state of the app changes to Waiting for Review to In Review a reviewer reviews your app after that your app status will be changed by the reviewer if there is a problem it will change to Rejected if not it will change to Ready to Sell so you can ready to store!!</p><h3>Do you want PlayStore too? may be web?</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F26xBDL9X2vhjHYVRm%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2F26xBDL9X2vhjHYVRm%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2F26xBDL9X2vhjHYVRm%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="244" frameborder="0" scrolling="no"><a href="https://medium.com/media/772e67d5c0b177d34c249be643e3e39d/href">https://medium.com/media/772e67d5c0b177d34c249be643e3e39d/href</a></iframe><p>Keep going! for the web, you can read my previous article</p><p><a href="https://medium.com/flutter-community/flutter-web-github-actions-github-pages-dec8f308542a">Flutter Web — Github Actions-Github Pages</a></p><h3>Release to the PlayStore — Android</h3><p>First, You need a <strong>Google Developer Account</strong> and it costs <strong>$25</strong> and allows users to publish apps on the <strong>Google Play Store</strong> only.</p><blockquote>If you do not have Keystore create a Keystore with the following command<br>on Mac/Linux : <br><strong>keytool -genkey -v -keystore ~/key.jks -keyalg RSA -keysize 2048 -validity 10000 -alias key</strong></blockquote><blockquote>on Windows (don&#39;t forget to change USER_NAME):<br><strong>keytool -genkey -v -keystore c:/Users/USER_NAME/key.jks -storetype JKS -keyalg RSA -keysize 2048 -validity 10000 -alias key</strong></blockquote><p>This command stores the key.jks file in your home directory. If you want to store it elsewhere, change the argument you pass to the -keystore parameter. <strong>However, keep the </strong><strong>keystore file private; don’t check it into public source control!</strong></p><h3>Reference the Keystore from the app</h3><p>Create a file named &lt;app dir&gt;/android/key.properties that contains a reference to your keystore(Do not check in to public source):</p><pre>storePassword=&lt;password from previous step&gt;<br>keyPassword=&lt;password from previous step&gt;<br>keyAlias=key<br>storeFile=Users/onatcipli/key.jks</pre><blockquote>If you get an error about storeFile path location you can <a href="https://stackoverflow.com/q/53973333/10685785">see this SO post</a></blockquote><h3>Configure signing in Gradle</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/414/1*B7NhSTLTLEMgFbsUgCo_rg.png" /></figure><p>Configure signing for your app by editing the<br>&lt;app dir&gt;/android/app/build.gradle file.</p><p>Add code before android block:</p><pre>def keystoreProperties = new Properties()<br> def keystorePropertiesFile = rootProject.file(‘key.properties’)<br> if (keystorePropertiesFile.exists()) {<br> keystoreProperties.load(new FileInputStream(keystorePropertiesFile))<br> }</pre><p>change the <strong>buildTypes</strong> code block with the following:</p><pre>   signingConfigs {<br>       release {<br>           keyAlias keystoreProperties[&#39;keyAlias&#39;]<br>           keyPassword keystoreProperties[&#39;keyPassword&#39;]<br>           storeFile keystoreProperties[&#39;storeFile&#39;] ? file(keystoreProperties[&#39;storeFile&#39;]) : null<br>           storePassword keystoreProperties[&#39;storePassword&#39;]<br>       }<br>   }<br>   buildTypes {<br>       release {<br>           signingConfig signingConfigs.release<br>       }<br>   }</pre><blockquote>You may need to run flutter clean after changing the gradle file.</blockquote><p>So we need to get our app apk to publish our app in <strong>PlayStore</strong> ( — split-per-abi reduces to apk sizes with splitting according to devices hardware)</p><pre>flutter build apk — split-per-abi</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jLZANxKhM6cWP_ACc09lXQ.png" /></figure><p>Now we can go to the <a href="https://play.google.com/apps/publish">Google Play Console</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZaHgrkm353tIjCUpxhsP1Q.png" /></figure><p>Click the Create Application button and type your AppName we will see the following page to publish our app, We need to check these checkboxes</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qB7W_UraC-qU7UrGcL9zjw.png" /></figure><p>Start with the <strong>App releases section, </strong>Click the <strong>Create Release/Edit Release </strong>button in the following page after that apply signed by google than drag and drop the list of apk that you have inside release folder</p><pre>repo_explorer/build/outputs/apk/releases</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/798/1*uW_BB0WlGDZ34vXrwDIH2w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/955/1*1dIvedE-4vxEfj5Pxj9NFw.png" /></figure><p>After upload complete, you should complete <strong>Content rating</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/956/1*yurZoibbpgRhWdD7gkITVA.png" /></figure><p>after handling <strong>Content rating,</strong> you should complete <strong>App content</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/837/1*Si4LUWE5QWj8WO3rGrFp4Q.png" /></figure><p>After handling <strong>App content, </strong>you should complete <strong>Pricing and Distribution.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EWHC--SJBfzpXvZvoozNXg.png" /></figure><p>after that, you can pass to the <strong>Store listing section.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2g0ewmMooCKUJwUFpS0aVA.png" /></figure><p>You need <strong>at least 1 app icon(512x512) and application 2 screenshots(min length for any side 320px max length for any side: 3840px)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/290/1*PUy7l90bC-YtQC6QUBs9Sw.png" /></figure><p>After completing the <strong>Store listing section,</strong> now you need to go to <strong>App releases</strong> section and click the Review button then you will see this page</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/970/1*VeTlbelXg2ncdv-uAbqjNQ.png" /></figure><h3>Well Done Submitted to PlayStore!!</h3><blockquote>See the google play console app status means from the <a href="https://support.google.com/googleplay/android-developer/answer/7159011#rollout">rollout</a> and <a href="https://support.google.com/googleplay/android-developer/answer/6334282?hl=en">Publish a draft app</a></blockquote><p>After a tester test your app and app information it will be available on PlayStore !!!</p><p><strong>You can reach and follow me on twitter </strong><a href="https://twitter.com/CipliOnat"><strong>@CipliOnat</strong></a><strong> or </strong><a href="https://www.linkedin.com/in/onat-%C3%A7ipli/?originalSubdomain=tr"><strong>Linkedin</strong></a><strong>.</strong></p><p><a href="https://www.twitter.com/FlutterComm">JavaScript is not available.</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a60bc781fb9a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/flutter-community/hey-flutter-welcome-to-the-stores-a60bc781fb9a">Hey Flutter, Welcome to the Stores</a> was originally published in <a href="https://medium.com/flutter-community">Flutter Community</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Flutter ile Mağzalara Çıkmak (Evden Çıkmadan!)]]></title>
            <link>https://medium.com/flutter-i%CC%87zmir/flutter-ile-ma%C4%9Fzalara-%C3%A7%C4%B1kmak-evden-%C3%A7%C4%B1kmadan-54a8ea425796?source=rss-b7fc0e1d9879------2</link>
            <guid isPermaLink="false">https://medium.com/p/54a8ea425796</guid>
            <category><![CDATA[play-store]]></category>
            <category><![CDATA[dart]]></category>
            <category><![CDATA[app-store]]></category>
            <category><![CDATA[publishing]]></category>
            <category><![CDATA[flutter]]></category>
            <dc:creator><![CDATA[onat çipli]]></dc:creator>
            <pubDate>Sat, 25 Apr 2020 06:39:43 GMT</pubDate>
            <atom:updated>2020-04-28T12:19:27.256Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VnIb3nczEfq3oCLAn-uxew.png" /></figure><h3>Flutter ile Mağazalara Uygulama Göndermek(AppStore — PlayStore)</h3><p>Merhaba arkadaşlar, <strong>NetworkUpp(</strong><a href="https://apps.apple.com/tr/app/networkupp/id1499186365?l=tr"><strong>ios</strong></a><strong>/</strong><a href="https://play.google.com/store/apps/details?id=com.ciplidev.network_up"><strong>android</strong></a><strong>)</strong> uygulamamla hem AppStore hem de PlayStore’a yayınlama sürecinden geçtim. Store bazında genel adımları kendim için not etmem gerektiğini düşündüm ve tecrübelerimi sizinle paylaşmak istedim.</p><h3>Flutter Projesi Yaratma</h3><p>Terminal üzerinden bir uygulama oluşturacağım ve geliştirici hesaplarımla bu uygulamayı yayınlayacağım. Muhtemelen şu anda çalışan uygulamanızı benimle birlikte yayınlamak isteyeceksiniz. Benzer adımları uygulayarak siz de uygulamalarınızı yayınlayabilirsiniz. Ancak Push Notification veya Background Tasks gibi bazı bağımlılıklarınız varsa, IOS için bazı gereklilikleri(Capabilities) etkinleştirmeniz gerekecek.</p><p>flutter create repo_explorer</p><blockquote>Bu arada, GitHub Repository Explorer uygulamasını geliştirmeyi düşünüyorum, bu yüzden repo_explorer olarak adlandırdım. Bunu geliştirdikten sonra yeni sürümün nasıl yayınlanacağı anlatan yeni bir yazı oluşturebilirim.</blockquote><p>Flutter projemi açtım ve AppStore ile başlayalım.</p><blockquote>Uygulamanıza uygulama icon’u eklemek için ya <a href="http://appicon.co/">appicon.co</a> sitesinden iconunuz oluşturtup porjenize manuel olarak ekleyebilirsiniz yada<strong> </strong><a href="https://pub.dev/packages/flutter_launcher_icons"><strong>flutter_launcher_icons </strong></a>paketini kullanabiliriz.Eğer splash page diye adlandırdığımız sayfadan eklemek istersenizde<strong> </strong><a href="https://pub.dev/packages/flutter_native_splash"><strong>flutter_native_splash</strong></a><strong> </strong>paketini kullanabilirisiniz ( SplashPage uygulama açılırken beklenen sürede kullanıcıya gösterilen sayfa gibi düşünebilirisiniz.).</blockquote><h3>App Store’a Yayınlama — iOS</h3><p>İlk olarak, bir uygulamayı <a href="https://www.apple.com/tr/ios/app-store/">AppStore’da</a> yayınlamak için <a href="https://developer.apple.com/programs/enroll/">Apple Geliştirici Programına kaydolmanız</a> gerekir</p><blockquote><a href="https://developer.apple.com/programs/enroll/">Bireysel bir hesap için yılda 100$ dolar alıyorlar.</a></blockquote><p>Apple Geliştirici Programına kaydolduğunuzu varsayıyorum. Eğer yanılıyorsam, AppStore adımını geçebilirsiniz çünkü Apple Geliştirici programına kaydolamdan AppleStore’a uygulama atamazsınız.</p><p>Her iOS uygulaması eşsiz benzersiz bir Bundle ID ile ilişkilidir, bunu en kolay şekilde ayarlamak için flutter projemizin içindeki <strong>Runner.xcworkspace</strong> dosyasını <strong>Xcode</strong> ile açarak başlıyalım.</p><blockquote><strong>repo_explorer/ios/Runner.xcworkspace</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TMjwH_CsHrC31426dhhLXA.png" /></figure><p>Apple Geliştirici Hesabı ile giriş yaptığımızdan emin olmalıyız. Eğer giriş yapmadıysanız Xcode tercihlerinden yapabilirsiniz</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/732/1*UO_QkKiJkENZGJoiU7aMXg.png" /></figure><p>Kayıtlı hesabınız aşağıdaki listede yoksa artı simgesiyle eklemeniz gerekir</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rGxKiekRNNp4hGX1ELgAWA.png" /></figure><p>Artık Xcode’da hesabımız listeleniyor. Projenizdeki Runner’a tıklayın ve <strong>Signing &amp; Capabilities</strong> tabına geçin. Burada otomatik imzalama kısmının işaretli olduğundan emin olun ve bundle ID’yi değiştirin. Ben <strong>com.onatcipli.repoExplorer</strong> olarak değiştirdim</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e9WrhKF2qAHv4Ls5938OWQ.png" /></figure><p>Bundle ID’yi değiştirmenize rağmen <a href="https://developer.apple.com/account/resources/identifiers/list/bundleId">developer.apple.com içerisindeki Identifiers bölümünde</a> görünmüyorsa panik yapmayın normaldir,çünkü daha oluşturmadık, Bundle ID’yi oluşurmak için iki seçeneğimiz var</p><p><strong>İlk seçenek (bu benim favorim)</strong>, Xcode’a rastgele bir özellik ekleyebilir ve kaldırabilirsiniz. Bu aksiyon, bundle ID’yi oluşturmak için Xcode’u tetikler. Aşağıdaki resimde görebileceğiniz gibi, İsim bölümünde Xcode tarafından XC eklenmiş</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2d1JED6EHkoLsS__fAy0YQ.png" /></figure><p><strong>İkinci seçenek</strong>, <a href="https://developer.apple.com/account/resources/identifiers/list/bundleId">developer.apple.com </a>üzerindeki Identifier bölümünden artı simgesiyle manuel olarak eklemektir.</p><h4>App Store Connect</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*neHvvYu-Z9yiCjV_dBlHYw.png" /></figure><p>Şimdi bir Uygulama oluşturmanız gerekiyor, önce Uygulamalarım’ı tıklayın, ardından App Store Connect’e yeni Uygulama eklemek için artı simgesine tıklayın</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DXKcjxyl7c1s79Cd58mhfQ.png" /></figure><p>Oluştur’a tıkladıktan sonra aşağıdaki App Information sayfasını görürsünüz</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2cAuRLgNUObfFbyKICd4rw.png" /></figure><p><strong>NOT</strong>: Uygulamanızda <strong>iPad</strong> veya <strong>yatay modlarını desteklemek istemiyorsanız</strong> Genel sekmesinde bu alanların <strong>işaretini kaldırın</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5h_hqlvnV7LpikSoXOLi7g.png" /></figure><p>Şimdi Xcode’a gidebilir ve <strong>Ürün → Arşivden(Product →Archive) </strong>projenin arşivini oluşturabiliriz</p><blockquote>Generic iOS Cihazını(Generic iOS Device) seçtiğinizden emin olun.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2paYwiooKd0hoRKTl_lPcQ.png" /></figure><p>Arşivleme bittikten sonra Organizer açık değilse, Window’dan açabilirsiniz(<strong>Window →Organizer</strong>)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZFZChZojxboNnJbfOlsdtw.png" /></figure><p><strong>Organizer’ı</strong> açtıktan sonra uygulamamızı seçebilir ve <strong>Distribute App</strong> kısmına tıklayabiliriz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BiVASkbAQ5kY49e9STnoow.png" /></figure><p>yükleme işleminin tamamlanmasının ardından <strong>App Store Connect’ten</strong> bir mail alacaksınız.</p><p>Bunu yaptıktan sonra, <a href="https://appstoreconnect.apple.com/">App Store Connect’te</a> uygulamamızı açalım ve soldan Gönderime Hazırla’yı(<strong>Prepare for Submission</strong>) seçip Uygulama Önizleme ve <strong>Ekran Görüntüleri, Anahtar Kelimeler, Promosyon Metni, Açıklama, Destek URL’i, Pazarlama URL’i, Uygulama İnceleme Bilgileri ve Derleme</strong> gibi gerekli alanları dolduralım</p><blockquote>Uygulama Önizlemesi ve Ekran Görüntüleri için Apple, uygulamanız için en az 3 resim istiyor. <a href="https://help.apple.com/app-store-connect/#/devd274dd925">Screenspesifications sayfasından teknik özellikleri görebilirsiniz</a>.<br>Özet geçmek gerekirse<br><strong>6,5 inç için 3 fotoğraf (1242 x 2688 piksel),</strong><br><strong>5.5 inç için 3 fotoğraf (1242 x 2208 piksel),<br>İPad (3. Nesil) 12,9 inç için 3 fotoğraf (2048 x 2732 piksel),<br>İPad (2. Nesil) 12,9 inç için 3 fotoğraf (2048 x 2732 piksel)</strong></blockquote><blockquote>Genel olarak bu resimleri oluşturmak için 3 simülatör açıyorum ve uygulamadan ekran görüntüleri alıyorum. Figma’da pikselleri ayarlıyorum ( bu benim favorim :) )</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XUKRwkF36E02Mv51vCBRoA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hTV8n9hMqNN2Tt6ecFbGgg.png" /></figure><blockquote>Reddedilmemek için uygulamayı göndermeden önce, <a href="https://developer.apple.com/app-store/review/">Ortak Uygulama Reddetmelerini</a>(<a href="https://developer.apple.com/app-store/review/">Avoiding the Common App Rejections</a>) ve <a href="https://developer.apple.com/app-store/review/guidelines/">App Store İnceleme Yönergelerini Önleme’yi okumalısınız</a>(<a href="https://developer.apple.com/app-store/review/guidelines/">App Store Review Guidelines</a>).</blockquote><p>Build ve diğer tüm alanları ekledikten sonra Kaydet düğmesini tıklıyoruz. İncelemeye Gönder dedikten sonra eksik varsa aşağıdaki gibi uyarı alıyoruz:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HI3N-xFRpbAmv_fgANGj-w.png" /></figure><p>Tüm bilgileri tamamladıktan sonra İncelemeye Gönder’e tıkladıktan sonra bu pencere açılacak ve uygulamanıza göre bu alanları dolduracaktır.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1017/1*TzO3vvvU-UyZYo2CNujcXw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sgov5ci9YMk6mrFfk-mIFg.png" /></figure><h3>App Store’a Gönderildi!</h3><blockquote>See the status means from the <a href="https://help.apple.com/app-store-connect/#/dev3d6869aff">App Build Statuses</a> and <a href="https://help.apple.com/app-store-connect/#/dev18557d60e">App Statuses</a></blockquote><p>Uygulamamızı incelemeye gönderdik ve İnceleme için bekliyor durumunda. İnceleme başladığında İnceleniyor olarak güncellenecek ve onaylandığında Satışa Hazır olarak değişecek. Bunu gördüğümüzde mağazada yerimizi almışız demektir!!</p><h3>PlayStore’a Yayınlama — Android</h3><p>İlk olarak, bir Google Geliştirici Hesabına ihtiyacınız var ve bu hesabın ücreti 25 ABD dolarıdır.</p><blockquote>Keystore yoksa, Mac / Linux&#39; üzerinden aşağıdaki komutla bir Keystore oluşturun :</blockquote><blockquote><strong>keytool -genkey -v -keystore ~/key.jks -keyalg RSA -keysize 2048 -validity 10000 -alias key</strong></blockquote><blockquote>Windows (USER_NAME’i değiştirmeyi unutmayın) :<br><strong>keytool -genkey -v -keystore c:/Users/USER_NAME/key.jks -storetype JKS -keyalg RSA -keysize 2048 -validity 10000 -alias key</strong></blockquote><p>Bu komut key.jks dosyasını ana dizininizde saklar. Başka bir yerde saklamak istiyorsanız, -keystore parametresine ilettiğiniz bağımsız değişkeni değiştirin. Ancak, <strong>keystore dosyasını gizli tutun!</strong></p><h3>Uygulama üzerinden Keystore Referansı</h3><p>Keystore dosyanıza referans içeren &lt;app dir&gt;/android/key.properties adlı bir dosya oluşturun (herkesin görebileceği biyerde tutmayın!) :</p><pre>storePassword=&lt;password from previous step&gt;<br>keyPassword=&lt;password from previous step&gt;<br>keyAlias=key<br>storeFile=/Users/onatcipli/key.jks</pre><blockquote>Eğer storeFile dosya yolu ile ilgili hata alırsanız, <a href="https://stackoverflow.com/q/53973333/10685785">bu soruya göz atabilirsiniz</a></blockquote><h3>Gradle’da imzalamayı yapılandırma</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/414/1*B7NhSTLTLEMgFbsUgCo_rg.png" /></figure><p>&lt;app dir&gt;/android/app/build.gradle dosyasını editleyerek başlayabiliriz.</p><p>Aşağıdaki kodu android kod bloğundan sonra ekleyin:</p><pre> def keystoreProperties = new Properties()<br> def keystorePropertiesFile = rootProject.file(‘key.properties’)<br> if (keystorePropertiesFile.exists()) {<br> keystoreProperties.load(new FileInputStream(keystorePropertiesFile))<br> }</pre><p><strong>buildTypes</strong> kod bloğunu aşağıdaki gibi değiştirin:</p><pre>signingConfigs {<br>       release {<br>           keyAlias keystoreProperties[&#39;keyAlias&#39;]<br>           keyPassword keystoreProperties[&#39;keyPassword&#39;]<br>           storeFile keystoreProperties[&#39;storeFile&#39;] ? file(keystoreProperties[&#39;storeFile&#39;]) : null<br>           storePassword keystoreProperties[&#39;storePassword&#39;]<br>       }<br>   }<br>   buildTypes {<br>       release {<br>           signingConfig signingConfigs.release<br>       }<br>   }</pre><blockquote>Gradle dosyasını değişiklikten sonra flutter clean yapmanız gerekebilir.</blockquote><p>uygulamamızı <strong>PlayStore’da</strong> yayınlamak için uygulama apk’mizi almamız gerekiyor(<strong> — split-per-abi</strong> cihaz donanımına göre bölünerek apk boyutlarına küçülüyor)</p><pre>flutter build apk — split-per-abi</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jLZANxKhM6cWP_ACc09lXQ.png" /></figure><p>Şimdi <a href="https://play.google.com/apps/publish">Google Play Console</a>’una gidebiliriz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZaHgrkm353tIjCUpxhsP1Q.png" /></figure><p>Uygulama Oluştur butonunu tıklayın ve Uygulama Adınızı yazın. Uygulamamızı yayınlamak için aşağıdaki sayfayı göreceğiz ve bu onay kutularının tamamlanıp yeşillenmesi gerekiyor. Fotoğrafta sırasıyla belirtim.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qB7W_UraC-qU7UrGcL9zjw.png" /></figure><p>Sürüm Oluştur buton’una tıkladıktan sonra uygulamanızın google tarafından imzalanmasını istermisiniz diye bir soru gelirse evet’e basın ve APK’ları sürükleyip bırakmaya hazırız.</p><pre>repo_explorer/build/outputs/apk/releases</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/798/1*uW_BB0WlGDZ34vXrwDIH2w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/955/1*1dIvedE-4vxEfj5Pxj9NFw.png" /></figure><p><strong>Uygulama sürümlerindeki Yükleme işlemi</strong> bittikten sonra, <strong>İçerik değerlendirme</strong> aşamasına geçiyoruz</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/956/1*yurZoibbpgRhWdD7gkITVA.png" /></figure><p><strong>İçerik değerlendirme</strong> işlemi bittikten sonra <strong>Uygulama içeriği</strong> kısmına geçiyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/837/1*Si4LUWE5QWj8WO3rGrFp4Q.png" /></figure><p>Uygulama içeriği kısmıda bitirdikten sonra <strong>Fiyatlandırma ve dağıtım aşamasına ilerliyoruz.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EWHC--SJBfzpXvZvoozNXg.png" /></figure><p>Bundan sonra <strong>Mağza giriş</strong> aşamasını tamamlıyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2g0ewmMooCKUJwUFpS0aVA.png" /></figure><p>Bu aşamada en az<strong> 1 tane uygulama ikonu(512x512) ve 2 tane uygulama resmi gerekiyor (herhangi bir kenarı en az 320piksel en fazla 3840piksel olmalı)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/290/1*PUy7l90bC-YtQC6QUBs9Sw.png" /></figure><p>Mağza giriş işleminide tamamladıktan sonra yukarıda gördüğümüz gibi yapılması gereken herşeyi yapmış bulunuyoruz burda <strong>Uygulama sürümlerine</strong> giderek Production kartındaki manage butonuna basıp ilerliyoruz en son aşağıdaki görsel ile karşılaştığımızda uygulamamız artık roll-out olmuş bulunuyor yani PlayStore daki yetkililer tarafından incelenip uygun olup olmadığı kontrol edilecek.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/970/1*VeTlbelXg2ncdv-uAbqjNQ.png" /></figure><h3>PlayStore’a gönderildi!!</h3><blockquote>GooglePlay console’da uygulamarın durumunun ne anlama geldiğini tamamen anlayabilmek için bu yazılara bakabilirsiniz: <a href="https://support.google.com/googleplay/android-developer/answer/7159011#rollout">rollout</a> ve <a href="https://support.google.com/googleplay/android-developer/answer/6334282?hl=en">Publish a draft app</a></blockquote><p>Uygulamamızı incelemeye gönderdik ve İnceleme için bekliyor durumunda. İnceleme başladığında İnceleniyor olarak güncellenecek ve onaylandığında Satışa Hazır olarak değişecek. Bunu gördüğümüzde mağazada yerimizi almışız demektir!!</p><p><strong>Sormak istediğiniz bişey varsa twitter </strong><a href="https://twitter.com/CipliOnat"><strong>@CipliOnat</strong></a><strong> veya </strong><a href="https://www.linkedin.com/in/onat-%C3%A7ipli/?originalSubdomain=tr"><strong>Linkedin</strong></a><strong> üzerinden iletişime geçebilirsiniz.</strong></p><p>Bu yazımı Türkçe’ye çevrilmesindeki büyük katkılarından dolayı <a href="https://medium.com/u/59b2c987f540">Çağrı Aydın</a> çok teşekkür ederim.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=54a8ea425796" width="1" height="1" alt=""><hr><p><a href="https://medium.com/flutter-i%CC%87zmir/flutter-ile-ma%C4%9Fzalara-%C3%A7%C4%B1kmak-evden-%C3%A7%C4%B1kmadan-54a8ea425796">Flutter ile Mağzalara Çıkmak (Evden Çıkmadan!)</a> was originally published in <a href="https://medium.com/flutter-i%CC%87zmir">Flutter İzmir</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[GoDaddy’den aldığım domain adımı Github-pages ile nasıl dağıtırım]]></title>
            <link>https://medium.com/@ciplionat35/godaddyden-ald%C4%B1%C4%9F%C4%B1m-domain-ad%C4%B1m%C4%B1-github-pages-ile-nas%C4%B1l-da%C4%9F%C4%B1t%C4%B1r%C4%B1m-57ffb712a135?source=rss-b7fc0e1d9879------2</link>
            <guid isPermaLink="false">https://medium.com/p/57ffb712a135</guid>
            <dc:creator><![CDATA[onat çipli]]></dc:creator>
            <pubDate>Sat, 21 Mar 2020 22:32:29 GMT</pubDate>
            <atom:updated>2020-03-21T22:32:29.553Z</atom:updated>
            <content:encoded><![CDATA[<h3>Domain adınız yoksa</h3><p>Ben genelde güzel indirim denk geldiğinde domain adlarımı GoDaddy’den alıyorum. Sizde <a href="https://tr.godaddy.com/offers/domains/godaddy-nb?isc=goflltk24&amp;countryview=1&amp;currencyType=TRY&amp;gclid=EAIaIQobChMI-6fru_Ht4gIVBCrTCh25MAMsEAAYASAAEgJEjfD_BwE&amp;gclsrc=aw.ds">buraya tıklayarak kendi adınızı aratıp alabilirsiniz.</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L1_imzHsmZZSs03t5vtAkg.png" /></figure><blockquote>Bu adımları tamamlayarak domain adımızı alıyoruz.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EI5Oo3BiecFOj73tZfpflQ.png" /></figure><h3>Artık Domain Adımız Var!</h3><p>Alan adımıza tıkladıktan sonra,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JluAzQmSFOyRvDrvwUtsOQ.png" /></figure><p>Alt taraflarda bulunan <strong>DNS’i Yönet </strong>yazısına tıklıyoruz</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/595/1*tWvUbvStkjWOUTS0lZIekQ.png" /></figure><p>Şimdi Alan adımızı Github-pages ile yaymak için, Alan adı servis sağlayıcımızdan <em>(Burada GoDaddy oluyor ama siz başka servis sağlaycısı kullanabilirsiniz) </em>Github’ın IP adreslerine yönlendirme yapmamız gerekiyor.</p><blockquote>185.199.108.153</blockquote><blockquote>185.199.109.153</blockquote><blockquote>185.199.110.153</blockquote><blockquote>185.199.111.153</blockquote><p>Yukarıda bulunana Github-Pages için Github tarafından sağlanmış IP adreslerini <strong>DNS Yönetimi ekranında Ekle tuşuna basarak ekliyoruz </strong>,</p><p>4 adet eklemiş olacağız:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/893/1*uKdsCbAqITpaSmyh6Iak6g.png" /></figure><p>işlem bittiğinde ise kayıtlarımızda tüm eklediğimiz Ip adreslerini bu şekilde görmeliyiz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WIn_eF56Zca16ZNC0OJ5WA.png" /></figure><p>Burdan sonra Domain isim sağlayıcımız<em>(</em><a href="https://tr.godaddy.com/offers/domains/godaddy-nb?isc=trdomtry1&amp;countryview=1&amp;currencyType=TRY&amp;gclid=EAIaIQobChMIuqycxPft4gIVjEPTCh3AJgaCEAAYASAAEgIAG_D_BwE&amp;gclsrc=aw.ds"><em>GoDaddy</em></a><em>)</em> ile olan işimiz bitti. İsim sağlayıcımız tarafından gerekli yönlendirme yapıldı.</p><h3>Sıra geldi Aldığımız Domain Adını Github Pages ile yayınlamaya</h3><p>Yeni veya var olan bi repository’nin ayarlar kısmına gidip, yayınlamak istediğimiz kaynak kodun branch’ini seçiyoruz</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NDcfeU21Nh9w94zQgUcLhA.png" /></figure><p>burada kaynak kodu seçtikten sonra artık domain adımızı ilgili yere girerek sitemizi Github pages ile eşleştirmiş oluyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*riPTD0D73ihyCW7C9-gjWw.png" /></figure><p>Custom Domain kısmına kendi domain adımızı giriyoruz.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F3o7WIBUGFNiQFiBfVu%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2F3o7WIBUGFNiQFiBfVu%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2F3o7WIBUGFNiQFiBfVu%2Fgiphy-downsized-large.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="435" frameborder="0" scrolling="no"><a href="https://medium.com/media/3d381cfed5ebfdf52d2a3fd565a0c9c9/href">https://medium.com/media/3d381cfed5ebfdf52d2a3fd565a0c9c9/href</a></iframe><p><strong>Ta Daa</strong> ve sitemiz artık ilgili domain isminde kaynak kodumuzdan yayınlanıyor !!</p><p><strong>Vakit ayırıp okuduğunuz için teşekkür ederim umarım yardımcı olmuştur, </strong><a href="https://twitter.com/CipliOnat"><strong>@CipliOnat</strong></a><strong> yada </strong><a href="https://www.linkedin.com/in/onat-%C3%A7ipli/?originalSubdomain=tr"><strong>Linkedin</strong></a><strong> hesaplarımı daha fazla içerik için takip edebilirsiniz.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=57ffb712a135" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Flutter Web — Github Actions-Github Pages]]></title>
            <link>https://medium.com/flutter-community/flutter-web-github-actions-github-pages-dec8f308542a?source=rss-b7fc0e1d9879------2</link>
            <guid isPermaLink="false">https://medium.com/p/dec8f308542a</guid>
            <category><![CDATA[dart]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[github-pages]]></category>
            <category><![CDATA[github-actions]]></category>
            <dc:creator><![CDATA[onat çipli]]></dc:creator>
            <pubDate>Sun, 15 Dec 2019 20:06:57 GMT</pubDate>
            <atom:updated>2019-12-21T04:17:11.447Z</atom:updated>
            <content:encoded><![CDATA[<h3>Flutter Web — Github Actions-Github Pages</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2adBDBgzNounV9WhluUh5Q.png" /></figure><p>Today We will publish and build our <strong>flutter </strong>application to the web with <strong>Github Actions</strong> and It will be hosted by the <strong>gh-pages.</strong></p><p>Github just releases another feature called Actions. Actions help us to create <strong>CI&amp;CD integrations</strong> with our repositories and that&#39;s amazing. On the other hand, Flutter Team just announced that building web applications on beta in <a href="https://www.youtube.com/watch?v=9OeMqgrY5J8&amp;t=6001s">Flutter Interact</a>.</p><blockquote>Little secret: Also they anounce build desktop applications with flutter, it is on alpha for now and works on MacOs 🤩</blockquote><h3>Flutter Web — Let&#39;s Get Started !!! !! !</h3><p>First thing first, To create a flutter web application we need to be <strong>on beta or master or dev channel </strong>so how can I <a href="https://flutter.dev/docs/get-started/web">enable flutter web?</a></p><pre>flutter channel beta<br>$ flutter upgrade<br>$ flutter config --enable-web</pre><p>after enabling web, We can create a new project which comes with web support flutter create my_new_project or we can add web support to an existing project with flutter create . (in your project root).</p><p>Creating flutter project : flutter create flutter_web</p><p>Now we have a flutter project that can run on the web. To publish or host it with <strong>gh-pages</strong>, we need to open a repository</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/460/1*tKV7uvlod8oj6LeR79aqFg.png" /></figure><pre>git init<br>git add --all<br>git commit -m &quot;first commit&quot;<br>git remote add origin https://github.com/onatcipli/flutter_web.git<br>git push -u origin master</pre><p>now we push the initial state of our flutter project to master.</p><h3>Gh-Pages — Project Site</h3><p><a href="https://pages.github.com/">Hosted directly from your GitHub repository</a>. How can I enable <strong>gh-pages</strong> for project sites?</p><p>We just need to flutter build files on <strong>origin/gh-pages</strong> branch then GitHub will host that files as a website in URL: <strong>username.github.io/repository_name</strong></p><h3>Github Actions</h3><p>We will create an action to build and publish our flutter web project but we need an access token to commit from machines that will run our actions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GFaZs_9MoJ_xE4d3To5dTw.png" /></figure><p>select <strong>repo:status</strong> and <strong>public_repo</strong> section to commit public repositories.</p><blockquote>If your repository is private you need to select private sections as well.</blockquote><p>After token created copy that and keep somewhere because you couldn&#39;t see it again, we need it a few moments later…</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FNdKVEei95yvIY%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FNdKVEei95yvIY%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FNdKVEei95yvIY%2Fgiphy.gif&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="244" frameborder="0" scrolling="no"><a href="https://medium.com/media/56e4358162ef2fea2c613086e6a678b9/href">https://medium.com/media/56e4358162ef2fea2c613086e6a678b9/href</a></iframe><h3>Secrets</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WubUqUiFcyQ4xFz1nHdwGQ.png" /></figure><p><strong>Make the name ‘commit_secret’</strong> cause that will match inside action file, add your access token key to <strong>value</strong> part</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/547/1*zZoPlhbA3WRa6J_SHiPZag.png" /></figure><p>Now In our secrets, we have an access token key and we can reach this token with its name brilliant!!! We will use it in our <strong>flutter_build_publis_web.yml </strong>to be able to commit our gh-pages branch, why we need to commit the <strong>gh-pages</strong> branch? To GitHub host our files(flutter build web outputs) which is a web application.</p><p>Let&#39;s get into the fun part which is creating <strong><em>flutter_build_publish_web.yml</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ed28aQCYg-UblawYcOoCkg.png" /></figure><p>After clicking <strong>Set up a workflow yourself, </strong>We will see this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ofk1uiqlWT3BTR1TbcOf_A.png" /></figure><p>We need to a little bit as following you can copy and paste it but You need to change some values.</p><p>First, change <strong>user.email</strong> <strong>(line 26)</strong> and <strong>user.name (line 27)</strong> as I commented on the following gist git config --global user.email your_email<br>git config --global user.name your_name</p><p>Second, change with your remote (<strong>line 30)</strong></p><p>git remote add origin <a href="https://${{secrets.commit_secret}}/">https://${{secrets.commit_secret}}</a>@github.com/your_username/repository_name.git</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8c153f4d51d1f42ab195305970481077/href">https://medium.com/media/8c153f4d51d1f42ab195305970481077/href</a></iframe><p>After making these changes we are ready to go!! When clicking the start commit and commit we just push that commit to master. Master will have a new commit pushed and that should trigger our Github Action.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/197/1*hkeZ_pSCXx49a1hcmmEM1w.png" /></figure><p>We configure it in our action. We can see the running or finished actions from the Actions tab.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O2JxtZEqcjFY83R81Zxo9w.png" /></figure><p>And When we click the action name we can see the details about it</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R2Wq24QkVTA2YezZ9dNbyg.png" /></figure><p>after action completed we can launch the hosted repository URL which is <a href="http://onatcipli.github.io/flutter_web">onatcipli.github.io/flutter_web</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MZAOlULi1mIIxcS3e2u68w.png" /></figure><blockquote>the pattern is like : username.github.io/repository_name</blockquote><p>Now we build our CI&amp;CD with GitHub Actions in every push on master the action will be triggered again.</p><p>Let&#39;s change the AppBar title and try it will it work.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xyFJedD5VZF31cFtYf1fFw.png" /></figure><p>Commit and push to the master, <strong>it takes 2min 24 seconds</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vp5dzCOSAiW01vJWllsN2Q.png" /></figure><p>And the AppBar changed!</p><p>I also create my portfolio website with flutter <a href="http://onatcipli.github.io/">check this out(onatcipli.github.io)</a> it is not finished yet but uses the GitHub Actions and hosted by GitHub Pages as well.</p><p>the repository source: <a href="https://github.com/onatcipli/flutter_web">https://github.com/onatcipli/flutter_web</a><br>hosted web application of that repository: <a href="https://onatcipli.github.io/flutter_web/#/">https://onatcipli.github.io/flutter_web</a></p><p><strong>You can reach and follow me on twitter </strong><a href="https://twitter.com/CipliOnat"><strong>@CipliOnat</strong></a><strong> or </strong><a href="https://www.linkedin.com/in/onat-%C3%A7ipli/?originalSubdomain=tr"><strong>Linkedin</strong></a><strong>.</strong></p><p><a href="https://www.twitter.com/FlutterComm">JavaScript is not available.</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dec8f308542a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/flutter-community/flutter-web-github-actions-github-pages-dec8f308542a">Flutter Web — Github Actions-Github Pages</a> was originally published in <a href="https://medium.com/flutter-community">Flutter Community</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Pub Lish Executable Command Line Application with Dart]]></title>
            <link>https://medium.com/flutter-community/pub-lish-executable-command-line-application-with-dart-1c334af090bf?source=rss-b7fc0e1d9879------2</link>
            <guid isPermaLink="false">https://medium.com/p/1c334af090bf</guid>
            <category><![CDATA[command-line]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[dart]]></category>
            <category><![CDATA[flutter]]></category>
            <dc:creator><![CDATA[onat çipli]]></dc:creator>
            <pubDate>Tue, 03 Dec 2019 21:25:37 GMT</pubDate>
            <atom:updated>2019-12-03T21:25:37.406Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5BTiXP4dr9WSFVcVr9ENsw.png" /></figure><p>Today I will be creating <strong>an executable command-line application</strong> and <strong>publish </strong>that package in <a href="https://pub.dev/"><strong>pub.dev</strong></a>. The package will be about creating files (<strong>.dart ) </strong>inside the <em>./lib directory.</em></p><blockquote>Inspired from the <a href="https://ionicframework.com/docs/cli/commands/generate">Ionic generate command</a>s, In ionic, you can generate pages, components, providers via command-line. So I want to create it for flutter too.</blockquote><h4>Step 1 (Creating the command-line application)</h4><p>Create it from the command line, <a href="https://pub.dev/packages/stagehand"><strong>stagehand </strong></a>is a Dart command-line application <strong>which gives you templates for creating Dart apps</strong></p><pre>// first of all to use the package we need to activate it with<br>// following command</pre><pre>$ pub global activate stagehand</pre><pre>// then We can create the command-line application</pre><pre>$ mkdir your_project_name<br>$ cd your_project_name<br>$ stagehand console-full</pre><h4>or Alternatively creat from your Android Studio or IntelliJ Idea</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/780/1*jIHnhRgHBPgIMC-2ssVAUg.png" /></figure><h4>Step 2</h4><p>Let’s make our executable, to make our command-line application executable we need to update our pubspec.yaml` file</p><p>I update the <strong>version, homepage, and author</strong> to make this is a package later.</p><p>Also, add the <a href="https://pub.dev/packages/args">args </a>package to be able to parse the commands which coming from the command-line</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/769/1*zgiL0lBXR63y2f3IPaEMmg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/187/1*3tHv1QiLiDq2UwQsUdR62A.png" /></figure><p>The names you type under the executables must match the file names in the <strong>./bin /</strong> directory</p><p>For example, The executable that we add in <strong>pubspec.yaml</strong> file <strong>flutter_generate </strong>match with <strong>./bin/flutter_generate.dart</strong> file.</p><p><strong>So you can rename your /bin/main.dart file</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/95ee5ece7734ec75ffaf880136a92e74/href">https://medium.com/media/95ee5ece7734ec75ffaf880136a92e74/href</a></iframe><p>First, we create ArgParser to parse the commands, options, and flags. I add an option(“name”) it just prints the given name console. To test it, We need to activate our command-line application first <a href="https://dart.dev/tools/pub/cmd/pub-global#running-a-script-from-your-path"><strong>(Make sure you configured your path)</strong></a></p><pre>// if you are in your project root dir<br>pub global activate --source path .</pre><pre>// or just give the project path<br>pub global activate --source path ./path/to/your/projectDir</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/704/1*ntFX1EVU5urwt3slaU31_w.png" /></figure><p>after that, we can run our first executable with the following code</p><pre>pub global run flutter_generate --name YourName</pre><pre>or</pre><pre>flutter_generate --name &quot;make sure you configure the path&quot;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*KEIPSWbDQQQLTIoODe5qDw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/718/1*BfUZZfg31KLpYHopaVuOKg.png" /></figure><p>To publish your command-line application as a package to <a href="http://pub.dev/">pub.dev</a>. You need to add <strong>LICENSE </strong>and <strong>example </strong>project which shows how to use your package. You can read the following article to learn how to publish your package.</p><p><a href="https://medium.com/flutter-community/how-to-create-publish-and-manage-flutter-packages-b4f2cd2c6b90">How to Create, Publish and Manage Flutter Packages</a></p><blockquote>TLDR: After adding LICENSE and example project you ready the publish your package with the <em>pub lish</em> command which is a shortcut for <em>pub publish</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/465/1*2RgurOlnU0YNDJynfDHzZQ.png" /></figure><p>After publishing your package you can activate your command-line app with</p><pre>pub global activate your_app_name</pre><pre>// my command-line app name is :flutter_generate so : </pre><pre>pub global activate flutter_generate</pre><h3>What flutter_generate package does</h3><p><a href="https://pub.dev/packages/flutter_generate">flutter_generate</a> is a simple executable command-line application that helps you to create a <strong>consistent structure in your project lib directory</strong> It is creating <strong>dart files</strong> with <strong>command-line commands</strong> and It is <strong>compatible with the </strong><a href="https://dart.dev/guides/language/effective-dart/style"><strong>effective dart style </strong></a><strong>guide</strong>. For Example following commands creates these files</p><pre>flutter_generate page home --stful</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/379/1*pYwTD3JKYWUyMGhdNyZ23A.png" /></figure><pre>flutter_generate widget --name loginCard --stless</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/341/1*0qC31tNhP1TZCtBbOnTOqQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/255/0*EeAyrfaIstvy-gwA.png" /></figure><pre>flutter_generate page --name login --stless</pre><pre>flutter_generate page --name signUp --stful</pre><pre>flutter_generate repository --name Authentication<br><br>flutter_generate model --name UserModel</pre><pre>flutter_generate widget --name signUpCard --stful</pre><p><a href="https://pub.dev/packages/flutter_generate">flutter_generate</a> home page and also check my other package <a href="https://pub.dev/packages/rename">rename</a> which renames the app name with rename --appname yourappname</p><p><strong>You can reach and follow me on twitter </strong><a href="https://twitter.com/CipliOnat"><strong>@CipliOnat</strong></a><strong> or </strong><a href="https://www.linkedin.com/in/onat-%C3%A7ipli/?originalSubdomain=tr"><strong>Linkedin</strong></a><strong>.</strong></p><p><a href="https://twitter.com/FlutterComm">JavaScript is not available.</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1c334af090bf" width="1" height="1" alt=""><hr><p><a href="https://medium.com/flutter-community/pub-lish-executable-command-line-application-with-dart-1c334af090bf">Pub Lish Executable Command Line Application with Dart</a> was originally published in <a href="https://medium.com/flutter-community">Flutter Community</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 Create, Publish and Manage Flutter Packages]]></title>
            <link>https://medium.com/flutter-community/how-to-create-publish-and-manage-flutter-packages-b4f2cd2c6b90?source=rss-b7fc0e1d9879------2</link>
            <guid isPermaLink="false">https://medium.com/p/b4f2cd2c6b90</guid>
            <category><![CDATA[publishing]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[dart]]></category>
            <dc:creator><![CDATA[onat çipli]]></dc:creator>
            <pubDate>Fri, 12 Jul 2019 22:01:01 GMT</pubDate>
            <atom:updated>2019-07-12T22:01:01.080Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Rss18z2JuZvdTIp1UVT1_g.jpeg" /></figure><h3>Dart Package vs Plugin Package</h3><p><strong>Dart packages: </strong>Only packages are written using Flutter and Dart SDKs independent of native platforms such which are Android and iOS. The <a href="https://pub.dev/packages/meet_network_image">meet_network_image</a> package is an example of a Dart package.</p><p><strong>Plugin packages:</strong> A special Dart package for Android (using Java or Kotlin) and/or iOS (using ObjC or Swift) platform-specific application that includes an API written in the Dart code. The <a href="https://pub.dev/packages/image_picker">image_picker</a> plugin allows you to take pictures or retrieve an existing image from your gallery <strong>using separate APIs for iOS and Android.</strong></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2Fl2JhHqyJkyh3nM5gY%2Ftwitter%2Fiframe&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2Fl2JhHqyJkyh3nM5gY%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2Fl2JhHqyJkyh3nM5gY%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="269" frameborder="0" scrolling="no"><a href="https://medium.com/media/6d865e5519be307dcd4aa21c0a26dbb4/href">https://medium.com/media/6d865e5519be307dcd4aa21c0a26dbb4/href</a></iframe><h3>Creating Dart Package</h3><p><strong><em>Step 1</em></strong></p><p>Open the <strong>command line</strong> in your operating system, and type the following line with your package_name</p><pre>flutter create --template<strong>=</strong>package package_name</pre><h4>OR</h4><p>If you are using an <strong>IntelliJ IDEA </strong>or <strong>Android Studio</strong>, you can <strong>convert the project type to a package </strong>when creating a Flutter project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/716/1*fTCQqajrzTl3txua0_uoPw.png" /></figure><p><strong><em>Step 2</em></strong></p><h4>Let’s put your project to the GitHub</h4><p>After opening a repository via Github, you can upload these commands one by one from the directory where your project is located to Github, remember to <strong>enter your own remote address!</strong></p><pre>git init<br>git add --all<br>git commit -m &quot;initial commit&quot;<br>git remote add origin https://github.com/onatcipli/custom_alert_box.git<br>git push -u origin master</pre><p>After pushing all project files to GitHub repository, We can begin with editing <strong>pubspec.yaml.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/321/1*N8ivuc9ta_u-qgBRAaBX8Q.png" /></figure><p>This is how our project files look like, <strong>lib/ is the folder that we will create and write the package codes<br><em>(In Step 3)</em></strong></p><h3>pubspec.yaml</h3><p>Let&#39;s begin with editing pubspec.yaml file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/473/1*tqI7bWws88r9NGGDM5Pk4g.png" /></figure><p>In the <strong>description </strong>part<strong>,</strong> you can write a brief description of the package and what the package does.</p><p>In the <strong>author </strong>part, you need to write to people who support this package by using the following pattern</p><blockquote>FirstName LastName&lt;E-mail&gt;</blockquote><blockquote>Onat Çipli&lt;ciplionat35@gmail.com&gt;</blockquote><p>In the <strong>homepage </strong>part, you can enter the package repository URL</p><h3>CHANGELOG.md</h3><blockquote>As you can see at the following part, we’ll list the changes in our package one by one in the changelog.md file.</blockquote><pre>## [version] - Date</pre><pre><em>* </em>explanations about changes.</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/336/1*o6mLrQP7QbEMRxRV760V7w.png" /></figure><pre>## [0.0.1] - 2019-06-15<br> <br><em>* </em>A description for people who will use that package or version.</pre><h3>LICENSE</h3><p><a href="https://choosealicense.com/">Choose an open source license</a>,</p><p>I will use <a href="https://choosealicense.com/licenses/mit/">MIT LICENSE</a>, you only need to write your name and the year</p><blockquote>Copyright © [year] [fullname]</blockquote><pre>Copyright (c) 2019 Onat Çipli</pre><pre>Permission is hereby granted, free of charge, to any person obtaining a copy<br>of this software and associated documentation files (the &quot;Software&quot;), to deal<br>in the Software without restriction, including without limitation the rights<br>to use, copy, modify, merge, publish, distribute, sublicense, and/or sell<br>copies of the Software, and to permit persons to whom the Software is<br>furnished to do so, subject to the following conditions:</pre><pre>The above copyright notice and this permission notice shall be included in all<br>copies or substantial portions of the Software.</pre><pre>THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR<br>IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,<br>FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE<br>AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER<br>LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,<br>OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE<br>SOFTWARE.</pre><p><strong><em>Step 3 (Writing package code /lib)</em></strong></p><p>Now it’s time for implementing our dart package code,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/252/1*psGbt-uMIqie_SptbUU26g.png" /></figure><p>We will delete the codes inside the custom_alert_box.dart file, to be able to create our code. (You need to fix test folder when you delete the code inside the custom_alert_box.dart, you can comment on the tests for now)</p><p>I just create a CustomAlertBox class, and inside that class, I create a static method named showCustomAlertBox to be able to show an alert box with using our package.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/31e5d86429ea3e075ea95c65c7cee382/href">https://medium.com/media/31e5d86429ea3e075ea95c65c7cee382/href</a></iframe><p><strong><em>Step 4</em></strong></p><h4>Creating Example</h4><p>Our package should include <strong>example </strong>project which using <strong>our Dart package </strong>code with help of that example project you can easily test your package code, by the way, is an example for other users to learn how to use your package.</p><p><strong>In our package directory,</strong></p><pre>C:\Users\msi\IdeaProjects\custom_alert_box</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/842/1*uDksGODsazE646JAdt_gsQ.png" /></figure><p>We are creating a new Flutter project in our Dart Package directory as bellow and inside the <strong>example </strong>project inside the pubspec.yaml file we need to add our package like following,</p><pre>...<br>dependencies:<br>  flutter:<br>    sdk: flutter</pre><pre>  custom_alert_box:<br>    path: ../<br>...</pre><p>After that point, <strong>we able to import our package</strong> and use it in the <strong>example </strong>project.</p><pre><em>import </em>&#39;package:custom_alert_box/custom_alert_box.dart&#39;;</pre><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8408441847048be9a274d726b2b58a4d/href">https://medium.com/media/8408441847048be9a274d726b2b58a4d/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/406/1*0e0G1NtLPPfh4P2R8RIfuQ.png" /></figure><p><strong><em>Step 5(Publish package)</em></strong></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FhGUSkkeC5JwR2%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FhGUSkkeC5JwR2%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FhGUSkkeC5JwR2%2Fgiphy-downsized-large.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="242" frameborder="0" scrolling="no"><a href="https://medium.com/media/e4058f0770ededd644dc525eab14bc4c/href">https://medium.com/media/e4058f0770ededd644dc525eab14bc4c/href</a></iframe><blockquote>Before this step we need to push all changes to GitHub remote.</blockquote><p>We able to publish our package to <a href="https://pub.dev/">pub.dev</a> with the following command,</p><p>flutter packages pub publish</p><p>After that, Command line gives you a link to verify your E-mail and pub.dev send you a mail about your package,</p><blockquote>Dear package maintainer,</blockquote><blockquote><a href="/service/mailto:ciplionat35@gmail.com">ciplionat35@gmail.com</a> has published a new version (0.0.1) of the<br>custom_alert_box package to the Dart package site (<a href="http://pub.dev/">pub.dev</a>).</blockquote><blockquote>For details, go to <a href="https://pub.dev/packages/custom_alert_box">https://pub.dev/packages/custom_alert_box/versions/0.0.1</a></blockquote><blockquote>If you have any concerns about this package, file an issue at<br><a href="https://github.com/dart-lang/pub-dev/issues">https://github.com/dart-lang/pub-dev/issues</a>.</blockquote><blockquote>Thanks for your contributions to the Dart community!</blockquote><blockquote>With appreciation, the Dart package site admin</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R2ED_8_bokAXitLRsB49cg.png" /></figure><h3><strong><em>Managing Package</em></strong></h3><p>Every time you make changes in your package, you can publish the new version with flutter packages pub publish but you need to push all the changes to GitHub and <strong>do not forget</strong> to write the changes to your CHANGELOG.md, change pubspec.yaml version</p><p><em>Package source code </em><a href="https://github.com/onatcipli/custom_alert_box"><em>custom_alert_box</em></a><em><br>Package </em><a href="https://github.com/onatcipli/custom_alert_box/tree/master/example"><em>example</em></a><em> source code<br>Published package </em><a href="https://pub.dev/packages/custom_alert_box"><em>custom_alert_box</em></a><em> 0.0.1 in </em><a href="http://pub.dev/"><em>pub.dev</em></a></p><p><strong>You can reach and follow me on twitter </strong><a href="https://twitter.com/CipliOnat"><strong>@CipliOnat</strong></a><strong> or </strong><a href="https://www.linkedin.com/in/onat-%C3%A7ipli/?originalSubdomain=tr"><strong>Linkedin</strong></a><strong>.</strong></p><p><a href="https://twitter.com/FlutterComm">https://twitter.com/FlutterComm</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b4f2cd2c6b90" width="1" height="1" alt=""><hr><p><a href="https://medium.com/flutter-community/how-to-create-publish-and-manage-flutter-packages-b4f2cd2c6b90">How to Create, Publish and Manage Flutter Packages</a> was originally published in <a href="https://medium.com/flutter-community">Flutter Community</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>