<?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 Hamidreza Ramezani on Medium]]></title>
        <description><![CDATA[Stories by Hamidreza Ramezani on Medium]]></description>
        <link>https://medium.com/@hamidrezadeveloper?source=rss-69d74a0da132------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*GYhmXhQOrGtJ35TKAgz6UQ.jpeg</url>
            <title>Stories by Hamidreza Ramezani on Medium</title>
            <link>https://medium.com/@hamidrezadeveloper?source=rss-69d74a0da132------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 20:27:06 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@hamidrezadeveloper/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[Implementation of the simplest widget in Kotlin with Compose]]></title>
            <link>https://medium.com/@hamidrezadeveloper/implementation-of-the-simplest-widget-in-kotlin-with-compose-50770d3426df?source=rss-69d74a0da132------2</link>
            <guid isPermaLink="false">https://medium.com/p/50770d3426df</guid>
            <category><![CDATA[text]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[jetpack-compose]]></category>
            <category><![CDATA[kotlin]]></category>
            <category><![CDATA[ui-ux-design]]></category>
            <dc:creator><![CDATA[Hamidreza Ramezani]]></dc:creator>
            <pubDate>Tue, 18 Jun 2024 10:42:37 GMT</pubDate>
            <atom:updated>2024-06-18T10:42:37.010Z</atom:updated>
            <content:encoded><![CDATA[<p>In Kotlin Jetpack Compose, widgets or composables are building blocks used for creating user interfaces. These widgets are defined as functions that can accept various inputs and generate a customizable display or a part of the UI.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kZ78dXWJPosWgwGM-p4LWw.png" /></figure><p>Example: For instance, suppose we want to create a simple widget to display a button in Kotlin Jetpack Compose. This widget is a UI element that responds to user clicks.</p><pre>import androidx.compose.foundation.layout.Column<br>import androidx.compose.material.Button<br>import androidx.compose.material.MaterialTheme<br>import androidx.compose.material.Text<br>import androidx.compose.runtime.Composable<br>import androidx.compose.ui.Alignment<br>import androidx.compose.ui.Modifier<br>import androidx.compose.ui.tooling.preview.Preview<br>import androidx.compose.ui.unit.dp<br><br>@Composable<br>fun MyButtonWidget(onClick: () -&gt; Unit) {<br>    Button(<br>        onClick = onClick,<br>        modifier = Modifier.align(Alignment.CenterHorizontally)<br>    ) {<br>        Text(text = &quot;Click me!&quot;)<br>    }<br>}<br><br>@Preview<br>@Composable<br>fun PreviewButtonWidget() {<br>    MaterialTheme {<br>        Column(<br>            modifier = Modifier.padding(16.dp),<br>            horizontalAlignment = Alignment.CenterHorizontally,<br>            verticalArrangement = Arrangement.Center<br>        ) {<br>            MyButtonWidget(onClick = {})<br>        }<br>    }<br>}</pre><p>Explanation: <strong>MyButtonWidget</strong>: This @Composable function in Kotlin is defined as a widget. It creates a button (Button) that, when clicked, executes with the text &quot;Click me!&quot;. It accepts onClick as an input, which is a lambda function invoked when the button is clicked.</p><p><strong>PreviewButtonWidget</strong>: This function serves as a preview for MyButtonWidget. It uses MaterialTheme and creates a column layout that displays the MyButtonWidget within it.</p><p>In this example, MyButtonWidget is a simple widget displaying a button and can be used compositionally in more complex user interfaces. Kotlin Jetpack Compose, utilizing @Composable functions, enables the creation of dynamic and adaptable user interfaces with high flexibility and power.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=50770d3426df" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding the AppBar Widget in Flutter]]></title>
            <link>https://medium.com/@hamidrezadeveloper/understanding-the-appbar-widget-in-flutter-65e77ab11e7f?source=rss-69d74a0da132------2</link>
            <guid isPermaLink="false">https://medium.com/p/65e77ab11e7f</guid>
            <category><![CDATA[ui-ux-design]]></category>
            <category><![CDATA[appbar]]></category>
            <category><![CDATA[flutter-widget]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Hamidreza Ramezani]]></dc:creator>
            <pubDate>Sat, 17 Feb 2024 09:38:54 GMT</pubDate>
            <atom:updated>2024-02-17T09:38:54.771Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gf3GfPna4DkfYWvDCJlWUA.jpeg" /></figure><p>An AppBar is a UI widget displayed at the top of a page, serving as a container for other elements such as menu items or buttons. In the Flutter framework, the AppBar is used to display page titles, navigation buttons, and other useful tools. It is considered a fundamental component in medium-complexity UI design.</p><p>Features of AppBar:</p><ol><li>title: The text displayed at the center of the AppBar.</li><li>actions: A list of elements placed on the right side of the AppBar, such as buttons or icons.</li><li>leading: An element positioned on the left side of the AppBar, typically used for adding a back button.</li><li>backgroundColor: The background color of the AppBar.</li><li>elevation: The shadow depth of the AppBar. This property is used to determine the elevation of the AppBar’s shadow.</li><li>automaticallyImplyLeading: If true, a back button is automatically added if a previous page exists.</li><li>bottom: Elements placed at the bottom of the AppBar, such as tabs or a dropdown menu.</li></ol><p>All of these features can be utilized when creating a custom AppBar in Flutter.</p><p>Example:</p><pre>import &#39;package:flutter/material.dart&#39;;<br><br>void main() {<br>  runApp(MyApp());<br>}<br><br>class MyApp extends StatelessWidget {<br>  @override<br>  Widget build(BuildContext context) {<br>    return MaterialApp(<br>      home: Scaffold(<br>        appBar: AppBar(<br>          title: Text(&#39;Custom AppBar&#39;),<br>          backgroundColor: Colors.blue,<br>          elevation: 4, // Increase shadow depth<br>          actions: [<br>            IconButton(<br>              icon: Icon(Icons.search),<br>              onPressed: () {<br>                // Add code for search functionality<br>              },<br>            ),<br>            IconButton(<br>              icon: Icon(Icons.more_vert),<br>              onPressed: () {<br>                // Add code for displaying more menu<br>              },<br>            ),<br>          ],<br>        ),<br>        body: Center(<br>          child: Text(&#39;Custom AppBar Example&#39;),<br>        ),<br>      ),<br>    );<br>  }<br>}</pre><p>In this example, a custom AppBar is created with a title, a colored background, increased elevation, and two action buttons.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=65e77ab11e7f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Exploring the Versatility of Flutter’s Container Widget: Properties and Examples]]></title>
            <link>https://medium.com/@hamidrezadeveloper/exploring-the-versatility-of-flutters-container-widget-properties-and-examples-837e459f8157?source=rss-69d74a0da132------2</link>
            <guid isPermaLink="false">https://medium.com/p/837e459f8157</guid>
            <category><![CDATA[box]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[container-widget]]></category>
            <category><![CDATA[flutter-container]]></category>
            <dc:creator><![CDATA[Hamidreza Ramezani]]></dc:creator>
            <pubDate>Wed, 14 Feb 2024 08:20:37 GMT</pubDate>
            <atom:updated>2024-02-14T08:20:37.410Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LGWC1J-oJ9xJBXFQE7E2Xg.jpeg" /></figure><p>In Flutter, a Container widget is a versatile widget that allows you to customize the appearance of its child widget or to create a visual layout. It provides various properties to control the layout, size, alignment, padding, margin, decoration, and more. Here’s an overview of some commonly used properties along with examples:</p><ol><li>child: Widget to be placed inside the container.</li></ol><pre>Container(<br>  child: Text(&#39;Hello, World!&#39;),<br>)</pre><p>2. alignment: Alignment of the child within the container.</p><pre>Container(<br>  alignment: Alignment.center,<br>  child: Text(&#39;Centered Text&#39;),<br>)</pre><p>3. color: Background color of the container.</p><pre>Container(<br>  color: Colors.blue,<br>  child: Text(&#39;Blue Container&#39;),<br>)</pre><p>4. width and height: Explicit width and height of the container.</p><pre>Container(<br>  width: 200,<br>  height: 100,<br>  color: Colors.red,<br>  child: Text(&#39;200x100 Container&#39;),<br>)</pre><p>5. margin: Empty space outside the container.</p><pre>Container(<br>  margin: EdgeInsets.all(20.0),<br>  color: Colors.green,<br>  child: Text(&#39;Container with Margin&#39;),<br>)</pre><p>6. padding: Empty space inside the container.</p><pre>Container(<br>  padding: EdgeInsets.all(20.0),<br>  color: Colors.yellow,<br>  child: Text(&#39;Container with Padding&#39;),<br>)</pre><p>7. decoration: Decoration to apply to the container.</p><pre>Container(<br>  decoration: BoxDecoration(<br>    color: Colors.orange,<br>    borderRadius: BorderRadius.circular(10.0),<br>  ),<br>  child: Text(&#39;Decorated Container&#39;),<br>)</pre><p>8. constraints: Additional constraints to apply to the container’s size.</p><pre>Container(<br>  constraints: BoxConstraints.expand(height: 200),<br>  color: Colors.purple,<br>  child: Text(&#39;Container with Height Constraint&#39;),<br>)</pre><p>9. transform: Transformation matrix to apply to the container.</p><pre>Container(<br>  transform: Matrix4.rotationZ(0.1),<br>  color: Colors.pink,<br>  child: Text(&#39;Container with Transformation&#39;),<br>)</pre><p>These are just a few properties available in the Container widget. You can explore more properties and their combinations in the Flutter documentation for Container.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=837e459f8157" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Complete Guide to Card Widget in Flutter: Creating Beautiful Cards with Advanced Features]]></title>
            <link>https://medium.com/@hamidrezadeveloper/complete-guide-to-card-widget-in-flutter-creating-beautiful-cards-with-advanced-features-982fc1ac32ba?source=rss-69d74a0da132------2</link>
            <guid isPermaLink="false">https://medium.com/p/982fc1ac32ba</guid>
            <category><![CDATA[cardview]]></category>
            <category><![CDATA[flutter-ui]]></category>
            <category><![CDATA[flutter-card-widget]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[ui-ux]]></category>
            <dc:creator><![CDATA[Hamidreza Ramezani]]></dc:creator>
            <pubDate>Tue, 13 Feb 2024 05:55:53 GMT</pubDate>
            <atom:updated>2024-02-13T05:55:53.074Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ua7QSiBSDAdxThXk3fpX8A.jpeg" /></figure><p>The Card widget in the Flutter framework allows you to create surfaces with shadows and rounded corners, suitable for displaying information in articles, lists, and other UI sections. This widget has various properties that allow you to customize the appearance of the card according to your preferences.</p><p>1. Specifying the child widget:<br>The Card widget accepts a child widget that serves as the content of the card. The following example demonstrates how to place text inside a card:</p><pre>Card(<br>  child: Text(&#39;This is a card&#39;),<br>)</pre><p>2. Setting Color<br>Using the `color` property, you can change the background color of the card. In this example, it displays a colorful card:</p><pre>Card(<br>  color: Colors.blue,<br>  child: Text(&#39;Colored Card&#39;),<br>)</pre><h3>3. Increasing Elevation</h3><p>The elevation property controls the height of the card&#39;s shadow. Larger values for this property create a higher shadow. Here&#39;s a card with increased elevation:</p><pre>Card(<br>  elevation: 8,<br>  child: Text(&#39;Elevated Card&#39;),<br>)</pre><h3>4. Shape</h3><p>Using the shape property, you can change the shape of the card&#39;s corners. For example, you can make the corners rounded:</p><pre>Card(<br>  shape: RoundedRectangleBorder(<br>    borderRadius: BorderRadius.circular(15.0),<br>  ),<br>  child: Text(&#39;Rounded Corners Card&#39;),<br>)</pre><h3>5. Margin</h3><p>You can set the margin of the card using the margin property:</p><pre>Card(<br>  margin: EdgeInsets.all(16.0),<br>  child: Text(&#39;Margin Card&#39;),<br>)</pre><h3>6. Border On Foreground Control</h3><p>Using the borderOnForeground property, you can control whether the card&#39;s border is placed on the foreground or not:</p><pre>Card(<br>  borderOnForeground: false,<br>  child: Text(&#39;Border Not on Foreground Card&#39;),<br>)</pre><h3>7. Clip Behavior</h3><p>The clipBehavior property determines how the content inside the card is clipped. Possible values include Clip.none, Clip.hardEdge, and Clip.antiAlias:</p><pre>Card(<br>  clipBehavior: Clip.antiAlias,<br>  child: Text(&#39;Anti-aliased Clip Card&#39;),<br>)</pre><h3>8. Semantic Container</h3><p>If this property is true, the card is defined as a semantic container; otherwise, the children&#39;s semantics are merged with the closest enclosing semantic container that is true:</p><pre>Card(<br>  semanticContainer: true,<br>  child: Text(&#39;Semantic Container Card&#39;),<br>)</pre><h3>9. Shadow Color</h3><p>You can set the shadow color using the shadowColor property:</p><pre>Card(<br>  shadowColor: Colors.red,<br>  child: Text(&#39;Shadow Color Card&#39;),<br>)</pre><h3>10. Border Radius</h3><p>Using the borderRadius property, you can set the radius of the card&#39;s corners:</p><pre>Card(<br>  shape: RoundedRectangleBorder(<br>    borderRadius: BorderRadius.circular(30.0),<br>  ),<br>  child: Text(&#39;Custom Border Radius Card&#39;),<br>)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DN3cExy4MumLFYiGNx45Qw.png" /></figure><p>By utilizing the various features of the Card widget in Flutter, you can create cards with different appearances that align with the Material Design standards. These capabilities enable you to create more visually appealing user interfaces that are easily understandable and intuitive.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=982fc1ac32ba" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mastering Flutter’s Scaffold Widget: A Comprehensive Guide to Properties and Examples]]></title>
            <link>https://medium.com/@hamidrezadeveloper/mastering-flutters-scaffold-widget-a-comprehensive-guide-to-properties-and-examples-264462db4e10?source=rss-69d74a0da132------2</link>
            <guid isPermaLink="false">https://medium.com/p/264462db4e10</guid>
            <category><![CDATA[scaffold]]></category>
            <category><![CDATA[widget]]></category>
            <category><![CDATA[ui-ux]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[flutter]]></category>
            <dc:creator><![CDATA[Hamidreza Ramezani]]></dc:creator>
            <pubDate>Sun, 04 Feb 2024 13:04:38 GMT</pubDate>
            <atom:updated>2024-02-04T13:04:38.906Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oGMLK1mFpK6-GiAiOdUsfA.jpeg" /></figure><h3>Introduction</h3><p>In Flutter, a scaffold is a basic structure that provides a visual framework for a Material Design application. It typically includes elements like an app bar, a body, and a floating action button. The Scaffold widget simplifies the creation of common app layouts and structures. Let&#39;s explore some of its properties along with examples:</p><h3>Properties of Scaffold in Flutter:</h3><h4>1. appBar:</h4><ul><li>Description: Defines the app bar at the top of the scaffold.</li><li>Example:</li></ul><pre>Scaffold(<br>  appBar: AppBar(<br>    title: Text(&#39;My App&#39;),<br>  ),<br>  // other properties...<br>)</pre><h4>2. body:</h4><ul><li>Description: Specifies the main content of the scaffold.</li><li>Example:</li></ul><pre>Scaffold(<br>  body: Center(<br>    child: Text(&#39;Hello, Flutter!&#39;),<br>  ),<br>  // other properties...<br>)</pre><h4>3. floatingActionButton:</h4><ul><li>Description: Sets a floating action button.</li><li>Example:</li></ul><pre>Scaffold(<br>  floatingActionButton: FloatingActionButton(<br>    onPressed: () {<br>      // Add your onPressed logic here<br>    },<br>    child: Icon(Icons.add),<br>  ),<br>  // other properties...<br>)</pre><h4>4. drawer:</h4><ul><li>Description: Defines a side drawer for navigation.</li><li>Example:</li></ul><pre>Scaffold(<br>  drawer: Drawer(<br>    child: ListView(<br>      children: &lt;Widget&gt;[<br>        ListTile(<br>          title: Text(&#39;Item 1&#39;),<br>          onTap: () {<br>            // Handle item 1 tap<br>          },<br>        ),<br>        // Other list items...<br>      ],<br>    ),<br>  ),<br>  // other properties...<br>)</pre><h4>5. bottomNavigationBar:</h4><ul><li>Description: Adds a bottom navigation bar.</li><li>Example:</li></ul><pre>Scaffold(<br>  bottomNavigationBar: BottomNavigationBar(<br>    items: [<br>      BottomNavigationBarItem(<br>        icon: Icon(Icons.home),<br>        label: &#39;Home&#39;,<br>      ),<br>      // Other items...<br>    ],<br>  ),<br>  // other properties...<br>)</pre><h4>6. backgroundColor:</h4><ul><li>Description: Sets the background color of the scaffold.</li><li>Example:</li></ul><pre>Scaffold(<br>  backgroundColor: Colors.blue,<br>  // other properties...<br>)</pre><h4>7. resizeToAvoidBottomInset:</h4><ul><li>Description: Specifies whether the body should resize when the keyboard is displayed.</li><li>Example:</li></ul><pre>Scaffold(<br>  resizeToAvoidBottomInset: false,<br>  // other properties...<br>)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GjXeLh-tGAFNsW_J_MwRdQ.png" /></figure><h3>Conclusion:</h3><p>The Scaffold widget in Flutter provides a convenient way to structure your app&#39;s layout. These properties allow you to customize various aspects of the scaffold to meet the requirements of your application&#39;s design. Combining these properties enables you to create a cohesive and functional user interface in a Flutter app.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=264462db4e10" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Efficient Font Integration in Flutter Projects: Manual Approach and Theme-Based Implementation for…]]></title>
            <link>https://medium.com/@hamidrezadeveloper/efficient-font-integration-in-flutter-projects-manual-approach-and-theme-based-implementation-for-ceae97884569?source=rss-69d74a0da132------2</link>
            <guid isPermaLink="false">https://medium.com/p/ceae97884569</guid>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[font-family]]></category>
            <category><![CDATA[text]]></category>
            <category><![CDATA[flutter-text]]></category>
            <category><![CDATA[flutter-yaml]]></category>
            <dc:creator><![CDATA[Hamidreza Ramezani]]></dc:creator>
            <pubDate>Sat, 03 Feb 2024 05:29:27 GMT</pubDate>
            <atom:updated>2024-02-03T05:29:27.782Z</atom:updated>
            <content:encoded><![CDATA[<h3>Efficient Font Integration in Flutter Projects: Manual Approach and Theme-Based Implementation for English and Persian Fonts</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pV-vo3iv6bSrbaTYLcwerQ.jpeg" /></figure><h3>Introduction</h3><p>Fonts play a crucial role in shaping the visual identity of Flutter applications. This article aims to guide Flutter developers on efficiently integrating font families into their projects using both manual methods and a theme-based approach.</p><h3>1. Manual Font Integration</h3><h3>1.1 Adding Fonts to the Project</h3><p>Explains how to manually add font files to the project in the assets/fonts directory for both English and Persian fonts.</p><pre>flutter:<br>  fonts:<br>    - family: MyFontFamily<br>      fonts:<br>        - asset: assets/fonts/english_font.ttf<br>        - asset: assets/fonts/persian_font.ttf</pre><p>“I have added a real-life example from my project in which I incorporated a Persian font in this manner.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/636/1*_r2ceq-RMb-EWMP_wM5DsQ.jpeg" /></figure><p>“I added it in this way to the assets.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/312/1*i5r_wuUqlqOQgxukaYvMdA.jpeg" /></figure><p>“For the English font, you can add it to your project in the same way.”</p><h3>1.2 Using the Font in Flutter Code</h3><p>Demonstrates how to use the added font family in Flutter code.</p><pre>Text(<br>  &#39;Hello World&#39;,<br>  style: TextStyle(<br>    fontFamily: &#39;MyFontFamily&#39;,<br>    fontSize: 20.0,<br>  ),<br>)</pre><h3>2. Theme-Based Font Integration</h3><h3>2.1 Defining the Theme in main.dart</h3><p>Shows how to define a custom theme in the main.dart file, including the font family.</p><pre>ThemeData myTheme = ThemeData(<br>  fontFamily: &#39;MyFontFamily&#39;,<br>  // Additional theme settings<br>);</pre><h3>2.2 Applying the Theme in MaterialApp</h3><p>Describes how to apply the custom theme to the entire Flutter application.</p><pre>MaterialApp(<br>  theme: myTheme,<br>  home: MyHomePage(),<br>)</pre><h3>Conclusion</h3><p>Summarizes the advantages of both manual and theme-based font integration methods, emphasizing the importance of choosing the most suitable approach based on project requirements.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ceae97884569" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[“Dart Programming Language: Exploring Conditional Statements for Application Development”]]></title>
            <link>https://medium.com/@hamidrezadeveloper/dart-programming-language-exploring-conditional-statements-for-application-development-223a31f451d5?source=rss-69d74a0da132------2</link>
            <guid isPermaLink="false">https://medium.com/p/223a31f451d5</guid>
            <category><![CDATA[dart]]></category>
            <category><![CDATA[condition]]></category>
            <category><![CDATA[conditional-statements]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[flutter]]></category>
            <dc:creator><![CDATA[Hamidreza Ramezani]]></dc:creator>
            <pubDate>Tue, 16 Jan 2024 10:21:34 GMT</pubDate>
            <atom:updated>2024-01-16T10:21:34.836Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VdQl370eOcG9mW6-EbrlzQ.png" /></figure><p>Dart is an open-source, object-oriented programming language utilized by Google for the development of applications and websites. In Dart, conditional statements are implemented using the keywords if, else if, and else. Additionally, comparison operators can be employed to evaluate conditions.</p><p>Here is an example of a simple conditional statement with if and else:</p><pre>void main() {<br>  int number = 10;<br><br>  if (number &gt; 0) {<br>    print(&quot;The number is positive&quot;);<br>  } else {<br>    print(&quot;The number is negative or zero&quot;);<br>  }<br>}</pre><p>Output:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VNopiWg458fdJg6zlKNR_g.jpeg" /></figure><p>A more complex conditional statement with else if:</p><pre>void main() {<br>  int score = 75;<br><br>  if (score &gt;= 90) {<br>    print(&quot;Excellent&quot;);<br>  } else if (score &gt;= 70) {<br>    print(&quot;Good&quot;);<br>  } else if (score &gt;= 50) {<br>    print(&quot;Average&quot;);<br>  } else {<br>    print(&quot;Poor&quot;);<br>  }<br>}</pre><p>Output:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sk1dWxRvRiOjBRaQW9uw5w.jpeg" /></figure><p>You can also directly use comparison operators in conditional statements:</p><pre>void main() {<br>  int x = 5;<br>  int y = 10;<br><br>  if (x &gt; y) {<br>    print(&quot;$x is greater than $y&quot;);<br>  } else {<br>    print(&quot;$x is less than or equal to $y&quot;);<br>  }<br>}</pre><p>Output:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Un2CH7v_-fGIbPUjnFP81g.jpeg" /></figure><p>Here, the if statement checks whether x is greater than y. If the condition is true, the code inside the if block is executed; otherwise, the code inside the else block is executed.</p><p>Conditional statements play a crucial role in programming and controlling the flow of program execution. They are used to make decisions based on conditions in programs.</p><p>GitHub: “Discover my latest projects and contributions on GitHub! 🚀 Explore the world of coding, collaboration, and innovation. Your feedback is always welcome! 🔗 [<a href="https://github.com/HamiidrezaRamezani">GitHub Profile</a>]”</p><p>Instagram: “Follow my coding journey on Instagram! 🌐✨ Daily insights, challenges, and snippets from the world of programming. Let’s connect and learn together! 🔍 [<a href="https://www.instagram.com/zerone_coding/">Instagram Profile</a>]”</p><p>YouTube: “Dive into the world of technology and coding on my YouTube channel! 🎥🚀 From tutorials to project walkthroughs, there’s something for every coding enthusiast. Subscribe for regular updates! 📺 [<a href="https://www.youtube.com/channel/UCPL2ZLetxOqF_tqLcW2A70w">YouTube Channel</a>]”</p><p>LinkedIn: “Connect with me on LinkedIn for insights into the ever-evolving world of technology and software development! 🌐 Let’s grow our professional networks and stay updated on industry trends. Your thoughts and expertise are always valued! 🔗 [<a href="https://www.linkedin.com/in/hamidreza-ramezani-771778198/">LinkedIn Profile</a>]”</p><p>Feel free to customize these statements to better fit your style and the content you share on each platform.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=223a31f451d5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[“Essential Flutter Commands: A Guide to Project Management, Development, and Debugging”]]></title>
            <link>https://medium.com/@hamidrezadeveloper/essential-flutter-commands-a-guide-to-project-management-development-and-debugging-df43720dee8e?source=rss-69d74a0da132------2</link>
            <guid isPermaLink="false">https://medium.com/p/df43720dee8e</guid>
            <category><![CDATA[flutter-cli]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[command-line]]></category>
            <category><![CDATA[cli]]></category>
            <category><![CDATA[flutter-command]]></category>
            <dc:creator><![CDATA[Hamidreza Ramezani]]></dc:creator>
            <pubDate>Mon, 15 Jan 2024 08:16:07 GMT</pubDate>
            <atom:updated>2024-01-15T08:16:07.407Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PsduNnopxxwJptdO3EPmBA.jpeg" /></figure><p>In Flutter, there are several commands that developers commonly use for project management, development, and debugging. Here are some of the top commands in Flutter:</p><ol><li>flutter create: Creates a new Flutter project. For example:</li></ol><pre>flutter create my_flutter_app</pre><p>2. flutter run: Builds and runs the Flutter app on an attached device or emulator.</p><pre>flutter run</pre><p>3. flutter build: Builds the Flutter app for a specific platform. For example, to build an APK:</p><pre>flutter build apk</pre><p>4. flutter doctor: Checks the status of Flutter installation and provides recommendations to resolve any issues.</p><pre>flutter doctor</pre><p>5. flutter pub get: Fetches the dependencies listed in the pubspec.yaml file.</p><pre>flutter pub get</pre><p>6. flutter test: Runs tests in the project.</p><pre>flutter test</pre><p>7. flutter analyze: Analyzes the Dart code for potential issues without running the app.</p><pre>flutter analyze</pre><p>8. flutter format: Formats the Dart code in the project according to Flutter&#39;s style rules.</p><pre>flutter format .</pre><p>9. flutter clean: Deletes the build directory and other generated files.</p><pre>flutter clean</pre><p>10. flutter packages upgrade: Upgrades the dependencies in the pubspec.yaml file to the latest versions.</p><pre>flutter packages upgrade</pre><p>11. flutter build runner: Executes code generators. This is often used with packages that require code generation.</p><pre>flutter pub run build_runner build</pre><p>12. flutter packages get: Similar to flutter pub get, it fetches the dependencies, but it&#39;s an older command (deprecated, but still works).</p><pre>flutter packages get</pre><p>These commands are essential for various aspects of Flutter development, including project setup, dependency management, building, testing, and code maintenance. Keep in mind that Flutter evolves, and new commands or updates to existing commands may be introduced in later versions. Always refer to the official Flutter documentation for the most up-to-date information.</p><p>GitHub: “Discover my latest projects and contributions on GitHub! 🚀 Explore the world of coding, collaboration, and innovation. Your feedback is always welcome! 🔗 [<a href="https://github.com/HamiidrezaRamezani">GitHub Profile</a>]”</p><p>Instagram: “Follow my coding journey on Instagram! 🌐✨ Daily insights, challenges, and snippets from the world of programming. Let’s connect and learn together! 🔍 [<a href="https://www.instagram.com/zerone_coding/">Instagram Profile</a>]”</p><p>YouTube: “Dive into the world of technology and coding on my YouTube channel! 🎥🚀 From tutorials to project walkthroughs, there’s something for every coding enthusiast. Subscribe for regular updates! 📺 [<a href="https://www.youtube.com/channel/UCPL2ZLetxOqF_tqLcW2A70w">YouTube Channel</a>]”</p><p>LinkedIn: “Connect with me on LinkedIn for insights into the ever-evolving world of technology and software development! 🌐 Let’s grow our professional networks and stay updated on industry trends. Your thoughts and expertise are always valued! 🔗 [<a href="https://www.linkedin.com/in/hamidreza-ramezani-771778198/">LinkedIn Profile</a>]”</p><p>Feel free to customize these statements to better fit your style and the content you share on each platform.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=df43720dee8e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Flutter’s Row and Column Widgets: Layout Flexibility Explained]]></title>
            <link>https://medium.com/@hamidrezadeveloper/flutters-row-and-column-widgets-layout-flexibility-explained-121597c62321?source=rss-69d74a0da132------2</link>
            <guid isPermaLink="false">https://medium.com/p/121597c62321</guid>
            <category><![CDATA[row]]></category>
            <category><![CDATA[layout]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[column]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Hamidreza Ramezani]]></dc:creator>
            <pubDate>Sun, 14 Jan 2024 10:47:39 GMT</pubDate>
            <atom:updated>2024-01-14T10:47:39.128Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ad9-sHsBhFKJohrswXS0RQ.jpeg" /></figure><p>In Flutter, Row and Column widgets serve as powerful tools for designing flexible and responsive user interfaces. Learn how to harness their features, including mainAxisAlignment, crossAxisAlignment, and more, to create well-organized and visually appealing layouts in your Flutter applications.</p><h3>Row in Flutter:</h3><h4>Properties of Row:</h4><ol><li>mainAxisAlignment:</li></ol><ul><li>The mainAxisAlignment property determines how the children should be placed along the main axis (horizontal axis in the case of Row). It accepts values like MainAxisAlignment.start, MainAxisAlignment.center, and MainAxisAlignment.end.</li></ul><pre>Row(<br>  mainAxisAlignment: MainAxisAlignment.spaceBetween,<br>  children: &lt;Widget&gt;[<br>    Text(&#39;Widget 1&#39;),<br>    Text(&#39;Widget 2&#39;),<br>    Text(&#39;Widget 3&#39;),<br>  ],<br>)</pre><p>2. crossAxisAlignment:</p><ul><li>The crossAxisAlignment property defines how the children should be aligned along the cross axis (vertical axis in the case of Row). Options include CrossAxisAlignment.start, CrossAxisAlignment.center, and CrossAxisAlignment.end.</li></ul><pre>Row(<br>  crossAxisAlignment: CrossAxisAlignment.center,<br>  children: &lt;Widget&gt;[<br>    Text(&#39;Widget 1&#39;),<br>    Text(&#39;Widget 2&#39;),<br>    Text(&#39;Widget 3&#39;),<br>  ],<br>)</pre><h3>Column in Flutter:</h3><h4>Properties of Column:</h4><ol><li>mainAxisAlignment:</li></ol><ul><li>Similar to Row, the mainAxisAlignment property in Column adjusts the alignment of children along the main axis (vertical axis in this case).</li></ul><pre>Column(<br>  mainAxisAlignment: MainAxisAlignment.spaceEvenly,<br>  children: &lt;Widget&gt;[<br>    Text(&#39;Widget 1&#39;),<br>    Text(&#39;Widget 2&#39;),<br>    Text(&#39;Widget 3&#39;),<br>  ],<br>)</pre><p>2. crossAxisAlignment:</p><ul><li>The crossAxisAlignment property in Column controls the alignment of children along the cross axis (horizontal axis in this case).</li></ul><pre>Column(<br>  crossAxisAlignment: CrossAxisAlignment.start,<br>  children: &lt;Widget&gt;[<br>    Text(&#39;Widget 1&#39;),<br>    Text(&#39;Widget 2&#39;),<br>    Text(&#39;Widget 3&#39;),<br>  ],<br>)</pre><h3>Combining Row and Column:</h3><ul><li>You can combine Row and Column to create a matrix-like layout, allowing you to position widgets in both horizontal and vertical directions.</li></ul><pre>Column(<br>  children: &lt;Widget&gt;[<br>    Row(<br>      children: &lt;Widget&gt;[<br>        Text(&#39;Widget 1&#39;),<br>        Text(&#39;Widget 2&#39;),<br>      ],<br>    ),<br>    Row(<br>      children: &lt;Widget&gt;[<br>        Text(&#39;Widget 3&#39;),<br>        Text(&#39;Widget 4&#39;),<br>      ],<br>    ),<br>  ],<br>)</pre><p>These properties provide fine-grained control over the arrangement of widgets within Row and Column, allowing you to create flexible and responsive UI designs in Flutter.</p><p>GitHub: “Discover my latest projects and contributions on GitHub! 🚀 Explore the world of coding, collaboration, and innovation. Your feedback is always welcome! 🔗 [<a href="https://github.com/HamiidrezaRamezani">GitHub Profile</a>]”</p><p>Instagram: “Follow my coding journey on Instagram! 🌐✨ Daily insights, challenges, and snippets from the world of programming. Let’s connect and learn together! 🔍 [<a href="https://www.instagram.com/zerone_coding/">Instagram Profile</a>]”</p><p>YouTube: “Dive into the world of technology and coding on my YouTube channel! 🎥🚀 From tutorials to project walkthroughs, there’s something for every coding enthusiast. Subscribe for regular updates! 📺 [<a href="https://www.youtube.com/channel/UCPL2ZLetxOqF_tqLcW2A70w">YouTube Channel</a>]”</p><p>LinkedIn: “Connect with me on LinkedIn for insights into the ever-evolving world of technology and software development! 🌐 Let’s grow our professional networks and stay updated on industry trends. Your thoughts and expertise are always valued! 🔗 [<a href="https://www.linkedin.com/in/hamidreza-ramezani-771778198/">LinkedIn Profile</a>]”</p><p>Feel free to customize these statements to better fit your style and the content you share on each platform.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=121597c62321" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[“A Comprehensive Guide to Text Field in Flutter”]]></title>
            <link>https://medium.com/@hamidrezadeveloper/a-comprehensive-guide-to-text-field-in-flutter-9abb3d85a1fb?source=rss-69d74a0da132------2</link>
            <guid isPermaLink="false">https://medium.com/p/9abb3d85a1fb</guid>
            <category><![CDATA[android]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[widget]]></category>
            <category><![CDATA[textfield]]></category>
            <category><![CDATA[text]]></category>
            <dc:creator><![CDATA[Hamidreza Ramezani]]></dc:creator>
            <pubDate>Sat, 13 Jan 2024 07:41:02 GMT</pubDate>
            <atom:updated>2024-01-13T07:44:51.693Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Dm43CFjhTpqQ_vLx0N-oIw.png" /></figure><h4>Introduction:</h4><p>Flutter is an open-source framework for developing diverse mobile, web, and desktop applications. One crucial element in mobile application development is user input, facilitated through text input fields. Among Flutter’s fundamental widgets for this purpose is the Text Field.</p><p>1. What is Text Field? Text Field is a widget in Flutter that allows users to input text and submit it to the application. This widget utilizes a text input environment, enabling users to enter text and convey information to the application.</p><p>2. Using Text Field: To employ Text Field in a Flutter application, you need to use the TextField class. You can customize various properties such as maximum length, style, color, and more.</p><pre>TextField(<br>  decoration: InputDecoration(<br>    labelText: &#39;Username&#39;,<br>    hintText: &#39;Please enter your username&#39;,<br>    prefixIcon: Icon(Icons.person),<br>    border: OutlineInputBorder(),<br>  ),<br>  maxLength: 20,<br>  onChanged: (text) {<br>    print(&#39;Entered value: $text&#39;);<br>  },<br>)</pre><p>3. Text Field Properties:</p><ul><li>decoration: Specifies the widget&#39;s appearance details, such as hint text, prefix icon, suffix icon, and borders.</li><li>maxLength: Defines the maximum number of characters the user can input.</li><li>onChanged: A function called whenever the Text Field&#39;s value changes.</li></ul><p>4. Validation and Special Inputs: Utilize validation features like validator and inputFormatters to restrict and format Text Field inputs.</p><p>5. Using Focus: The Focus feature allows programmatically focusing on the Text Field, enhancing user interaction.</p><p>TextField in the Flutter Framework comes with various features that allow you to precisely control its appearance and functionality. Below, the key features of TextField are explained in detail:</p><p>1. Decoration: The decoration is a fundamental property that utilizes the InputDecoration class. This property defines information such as hint text, prefix icon, suffix icon, border, color, and more for the TextField.</p><pre>TextField(<br>  decoration: InputDecoration(<br>    labelText: &#39;Username&#39;,<br>    hintText: &#39;Please enter your username&#39;,<br>    prefixIcon: Icon(Icons.person),<br>    suffixIcon: Icon(Icons.check_circle),<br>    border: OutlineInputBorder(),<br>    enabledBorder: OutlineInputBorder(<br>      borderSide: BorderSide(color: Colors.blue),<br>    ),<br>    focusedBorder: OutlineInputBorder(<br>      borderSide: BorderSide(color: Colors.green),<br>    ),<br>  ),<br>)</pre><p>2. TextEditingController: You can use TextEditingController to control the content of the TextField. This tool provides access to the text field&#39;s content, allowing operations such as reading, writing, and clearing the content.</p><pre>TextEditingController _controller = TextEditingController();<br><br>TextField(<br>  controller: _controller,<br>)</pre><p>3. maxLength and maxLines: maxLength determines the maximum number of characters a user can input, and maxLines specifies the maximum number of lines the text can have.</p><pre>TextField(<br>  maxLength: 10,<br>  maxLines: 3,<br>)</pre><p>4. onChanged and onSubmitted: onChanged is a function called whenever the value of the TextField changes. Additionally, onSubmitted is triggered when the user presses Enter.</p><pre>TextField(<br>  onChanged: (text) {<br>    print(&#39;Value changed: $text&#39;);<br>  },<br>  onSubmitted: (text) {<br>    print(&#39;Value submitted: $text&#39;);<br>  },<br>)</pre><p>5. InputFormatters: inputFormatters provides the ability to format TextField input in a specific way. For example, you can use LengthLimitingTextInputFormatter to limit the number of characters.</p><pre>TextField(<br>  inputFormatters: [<br>    LengthLimitingTextInputFormatter(5),<br>  ],<br></pre><p>6. Style: You can set text style, color, size, and more using the style property.</p><pre>TextField(<br>  style: TextStyle(<br>    color: Colors.red,<br>    fontSize: 18.0,<br>  ),<br>)</pre><p>7. FocusNode: Using FocusNode allows you to programmatically focus on the text field, enhancing user interaction.</p><pre>FocusNode _focusNode = FocusNode();<br><br>TextField(<br>  focusNode: _focusNode,<br>)</pre><p>8. Validation: You can use the validator property for input validation in the TextField.</p><pre>TextField(<br>  validator: (value) {<br>    if (value.isEmpty) {<br>      return &#39;This field cannot be empty&#39;;<br>    }<br>    return null;<br>  },<br>)</pre><p>By utilizing these features, you can use TextField in a precise and customized manner in your Flutter applications.</p><p>GitHub: “Discover my latest projects and contributions on GitHub! 🚀 Explore the world of coding, collaboration, and innovation. Your feedback is always welcome! 🔗 [<a href="https://github.com/HamiidrezaRamezani">GitHub Profile</a>]”</p><p>Instagram: “Follow my coding journey on Instagram! 🌐✨ Daily insights, challenges, and snippets from the world of programming. Let’s connect and learn together! 🔍 [<a href="https://www.instagram.com/zerone_coding/">Instagram Profile</a>]”</p><p>YouTube: “Dive into the world of technology and coding on my YouTube channel! 🎥🚀 From tutorials to project walkthroughs, there’s something for every coding enthusiast. Subscribe for regular updates! 📺 [<a href="https://www.youtube.com/channel/UCPL2ZLetxOqF_tqLcW2A70w">YouTube Channel</a>]”</p><p>LinkedIn: “Connect with me on LinkedIn for insights into the ever-evolving world of technology and software development! 🌐 Let’s grow our professional networks and stay updated on industry trends. Your thoughts and expertise are always valued! 🔗 [<a href="https://www.linkedin.com/in/hamidreza-ramezani-771778198/">LinkedIn Profile</a>]”</p><p>Feel free to customize these statements to better fit your style and the content you share on each platform.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9abb3d85a1fb" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>