<?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 Prudhvi Kumar Patthipati on Medium]]></title>
        <description><![CDATA[Stories by Prudhvi Kumar Patthipati on Medium]]></description>
        <link>https://medium.com/@patthipati?source=rss-32e3af93f3d7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*khGgK3pzQJ1GJCgbM0nEwQ.jpeg</url>
            <title>Stories by Prudhvi Kumar Patthipati on Medium</title>
            <link>https://medium.com/@patthipati?source=rss-32e3af93f3d7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 14:57:57 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@patthipati/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[Futter Feature first Code Structure]]></title>
            <link>https://medium.com/@patthipati/futter-feature-first-code-structure-d3dda988ca4b?source=rss-32e3af93f3d7------2</link>
            <guid isPermaLink="false">https://medium.com/p/d3dda988ca4b</guid>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[flutter-app-development]]></category>
            <category><![CDATA[code-structure]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[flutter-clean-code]]></category>
            <dc:creator><![CDATA[Prudhvi Kumar Patthipati]]></dc:creator>
            <pubDate>Thu, 31 Aug 2023 05:11:05 GMT</pubDate>
            <atom:updated>2023-09-06T09:01:16.614Z</atom:updated>
            <content:encoded><![CDATA[<p>Here is the core folder structure that Flutter provides</p><pre>flutter-app/<br>          |- android<br>          |- build<br>          |- ios<br>          |- lib<br>          |- test</pre><p>Now, let&#39;s dive into the lib folder which has the main code for the application.<br>Here is the folder structure we have been using in this project inside the <strong>lib</strong></p><pre>|- src<br>    |- config/<br>    |- core/<br>    |- features/<br>    |- domain/<br>    |- utils/<br>|- main.dart</pre><p><strong>src</strong><br>This directory contains all the code of the application.</p><ul><li><strong>config </strong>folder includes the configuration of the app (themes, routers, … etc.) and anything else related to the app’s configurations.</li><li><strong>core</strong></li><li><strong>features </strong>are the layer responsible for handling the user interface and user interaction with the application.</li><li><strong>domain </strong>contains the core business logic of the application. The separation of concerns helps to ensure that the application’s business logic remains independent of the user interface, the data storage mechanism, external APIs, and other external systems. This includes implementing data access methods, handling data validation and mapping, and managing the data source connection and transactions.</li><li><strong>util </strong>includes (constants, extensions, resources, … etc.) and anything related to that</li><li><strong>main.dart </strong>- This is the starting point of the application. All the application-level configurations are defined in this file i.e., theme, routes, title, orientation, etc...</li></ul><h3>config</h3><p>This directory contains files each with a custom class of an object widely used throughout the app&#39;s</p><pre>config/<br>	themes/<br>		|- app_colors.dart<br>		|- app_theme.dart<br>		|- custom_icons.dart<br>		|- text_theme_builder.dart		<br>	routes/<br>		|- route_generate.dart<br>		|- route_observer.dart<br>		|- route_paths.dart<br>		|- route_service.dart</pre><h3>features</h3><p>This directory contains files and user interface components.</p><p>features /<br> <strong>screens </strong>- It is located in a separate folder making it easy to combine a group of files related to that particular screen. All the screen-specific widgets, services, models, and providers will be placed in their specific directories.<br> <strong>widgets </strong>— Contains the common widgets for your applications. For example, Button, TextField, etc...<br> <strong>services </strong>- This directory contains files that handle all network and business logic throughout the feature.<br> <strong>models </strong>- This directory contains files each with a custom class of an object used throughout the feature. <br> <strong>providers</strong> - Contains store(s) for state-management of feature,</p><pre>screen/<br>   	|- name_screen.dart<br>  	|- name_controller.dart<br>      widgets/<br> 		|- name_widget.dart<br>      services/<br> 		|- services_name.dart<br>      models /<br> 		|- models_name.dart<br>      provider/<br> 		|- name_provider.dart</pre><h3>domain</h3><p>This directory contains files for some models, services, and provides that were shared by multiple pages widely used throughout the app.<br>domain/ <br> <strong>providers </strong>- Contains store(s) for state-management of your application, to connect the reactive data of your application with the UI commonly for all features.<br> <strong>services </strong>- This would handle all network and business logic of your application commonly for all features.<br> <strong>models </strong>- The models folder contains files each with a custom class of an object widely used throughout the app application commonly for all features.</p><pre>provider/<br> 	name_provider/<br> 		|- name_provider.dart<br>models/<br> 	name_model/<br> 		|- name_model.dart<br>services/<br> 	name_service/<br> 		|- services_name.dart</pre><h3>utils</h3><p>It contains the common file(s) and utilities used in a project. The folder structure is as follows:<br><strong>constants</strong><br>All the application-level constants are defined in this directory within their respective files. This directory contains the constants for API endpoints, preferences, and analytics constants.<br><strong>widgets</strong><br>It contains the common widgets that are shared across multiple screens. For example, Button, TextField, etc.</p><pre>utils/<br>    constants/<br>  		|- analytics.dart<br> 		|- api_names.dart<br> 		|- text_constants.dart<br> 		|- preferences.dart<br> 		|- image_constants.dart<br>|- response_data_models.dart<br>|- exception.dart<br>|- failure.dart<br>widgets/<br>	|- widget_name.dart</pre><h3>Package:</h3><p><strong>Riverpod </strong>– State Management<br><strong>flutter_screenutil </strong>– Responsive Screen<br><strong>HTTP/dio</strong> – Remote Api Calls, GraphQL<br><strong>intl</strong>- internationalization</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d3dda988ca4b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Code Organization with Provider State Management for Flutter]]></title>
            <link>https://medium.com/@patthipati/code-organization-with-provider-state-management-for-flutter-ae2a77b63718?source=rss-32e3af93f3d7------2</link>
            <guid isPermaLink="false">https://medium.com/p/ae2a77b63718</guid>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[flutter-app-development]]></category>
            <dc:creator><![CDATA[Prudhvi Kumar Patthipati]]></dc:creator>
            <pubDate>Wed, 15 Apr 2020 06:58:26 GMT</pubDate>
            <atom:updated>2020-04-15T08:37:39.358Z</atom:updated>
            <content:encoded><![CDATA[<p>The Flutter apps are written using the Dart language. The code should be maintained for easy and handy access.<br> In any project, the folder structure is equally important as code for future maintainability and understanding purpose.</p><p>The below folder structure is simple and easily understandable with the providers where we can handle the code and maintain it easily.</p><h3>Folder Structure</h3><p>Here is the core folder structure which flutter provides.</p><pre>flutter-app/<br>|- android<br>|- build<br>|- ios<br>|- lib<br>|- test</pre><p>Here is the folder structure we have been using in this project</p><pre>|- src<br>    |- constants/<br>    |- models/<br>    |- providers/<br>    |- screens/<br>    |- services/<br>    |- utils/<br>    |- widgets/<br>|- theme/<br>|- main.dart<br>|- providers.dart<br>|- routes.dart</pre><p>Now, let&#39;s dive into the lib folder which has the main code for the application.</p><pre>1- src - <br>2- constants - All the application level constants are defined in this directory with-in their respective files. This directory contains the constants for  `api endpoints`, `preferences` and analytics constants</pre><pre>3- models - The models folder contains files each with a custom class of an object widely used throughout the app</pre><pre>4- providers - Contains store(s) for state-management of your application, to connect the reactive data of your application with the UI. </pre><pre>5- screens — The screens folder holds many different folders, each of which corresponds to a different screen of the app. Each screen folder holds two things: a primary screen file and widgets which would be used only inside a particular screen should be placed inside that screen and not inside the common widgets folder.</pre><pre>6- services - This would handle all network and business logic of your application. </pre><pre>7- util — Contains the utilities/common functions of your application.For example, Showing dates format, Currency in proper format, Network check etc..</pre><pre>8- widgets — Contains the common widgets for your applications. For example, Button, TextField, etc..</pre><pre>9- main.dart - This is the starting point of the application. All the application level configurations are defined in this file i.e, theme, routes, title, orientation etc.</pre><pre>10- providers.dart — This file contains all the providers for your application.</pre><pre>11- routes.dart — This file contains all the routes for your application.</pre><h3>src</h3><p>This directory contains all the code of the application.</p><h3>constants</h3><p>This directory contains all the application level constants. A separate file is created for each type as shown in the example below:</p><pre>constants/<br>|- analytics.dart<br>|- api-names.dart<br>|- constants.dart<br>|- endpoints.dart<br>|- preferences.dart</pre><h3>models</h3><p>This directory contains files each with a custom class of an object widely used throughout the app</p><pre>models/<br>|- models-name</pre><h3>providers</h3><p>This directory contains state-management of your application, to connect the reactive data of your application with the UI.</p><pre>providers/<br>|- name-provider.dart</pre><h3>screens</h3><p>This directory contains all the screens of your application. Each screen is located in a separate folder making it easy to combine a group of files related to that particular screen. All the screen-specific widgets will be placed in widgets the directory as shown in the example below:</p><pre>screen/<br>|- screen-name<br>   |- screen-name.dart<br>   |- widgets<br>      |- widget-name.dart</pre><h3>utils</h3><p>It contains the common file(s) and utilities used in a project. The folder structure is as follows:</p><pre>utils/<br>|- validator<br>   |- form-validator.dart</pre><h3>widgets</h3><p>It contains the common widgets that are shared across multiple screens. For example, Button, TextField, etc.</p><pre>widgets/<br>|- name_widget.dart</pre><h3>main.dart</h3><p>This is the starting point of the application. All the application level configurations are defined in this file i.e, theme, routes, title, orientation etc.</p><pre><strong>import</strong> &#39;package:flutter/material.dart&#39;;<br><strong>import</strong> &#39;package:provider/provider.dart&#39;;<br><strong>import</strong> &#39;./providers.dart&#39;;<br><strong>import</strong> &#39;./src/screens/splash-screen/splash-screen.dart&#39;;<br><strong>import</strong> &#39;./routes.dart&#39;;<br><strong>import</strong> &#39;./theme/style.dart&#39;;</pre><pre>void main() <strong>=&gt;</strong> runApp(MyApp());</pre><pre><strong>class</strong> <strong>MyApp</strong> extends StatelessWidget {<br>  @override<br>  Widget build(BuildContext context) {<br>    <strong>return</strong> MultiProvider(<br>      providers: Providers<strong>.</strong>providers,<br>      child: MaterialApp(<br>        title: &#39;Flutter Mobile Application&#39;,<br>        theme: appTheme(),<br>        home: SplashScreen(),<br>        routes: Routes<strong>.</strong>routes,<br>      ),<br>    );<br>  }<br>}</pre><h3>providers.dart</h3><p>This file contains all the providers for your application.</p><pre><strong>import</strong> &#39;package:provider/provider.dart&#39;;<br><strong>import</strong> &#39;./src/providers/provider-file-name.dart&#39;;<br><strong>class</strong> <strong>Providers</strong> {<br>  Providers<strong>.</strong>_();</pre><pre>  static final providers<strong>=</strong> [<br>        ChangeNotifierProvider<strong>&lt;</strong>ProviderClassName<strong>&gt;</strong>(<br>          create: (_) <strong>=&gt;</strong>  ProviderClassName(),<br>        ),<br>      ]<strong>.</strong>toList();<br>}</pre><h3>routes.dart</h3><p>This file contains all the routes for your application.</p><pre><strong>import</strong> &#39;package:flutter/material.dart&#39;;<br><strong>import</strong> &#39;./screens/page_name_screen.dart&#39;;</pre><pre><strong>class</strong> <strong>Routes</strong> {<br>  Routes<strong>.</strong>_();<br>  <strong>//</strong> static variables<br>  static const String page_name <strong>=</strong> &#39;/page-name&#39;;<br>  static final dynamic routes <strong>=</strong> <strong>&lt;</strong>String, WidgetBuilder<strong>&gt;</strong>{<br>    page_name: (BuildContext context) <strong>=&gt;</strong> PageNameScreen(),<br>  };<br>}</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ae2a77b63718" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>