<?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 Abhishek Dixit on Medium]]></title>
        <description><![CDATA[Stories by Abhishek Dixit on Medium]]></description>
        <link>https://medium.com/@abhishek_165?source=rss-679ea9ec3f5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Z3261L-ytiWNy_547_0t-w.jpeg</url>
            <title>Stories by Abhishek Dixit on Medium</title>
            <link>https://medium.com/@abhishek_165?source=rss-679ea9ec3f5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 14:59:08 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@abhishek_165/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[Maid Services Near Me — Find Trusted, Verified House Maids in Your Area]]></title>
            <link>https://medium.com/@abhishek_165/maid-services-near-me-find-trusted-verified-house-maids-in-your-area-5145e7a73dd0?source=rss-679ea9ec3f5------2</link>
            <guid isPermaLink="false">https://medium.com/p/5145e7a73dd0</guid>
            <category><![CDATA[babysitter]]></category>
            <category><![CDATA[housemaid-agency]]></category>
            <category><![CDATA[housemaids]]></category>
            <category><![CDATA[nanny]]></category>
            <category><![CDATA[cleaning]]></category>
            <dc:creator><![CDATA[Abhishek Dixit]]></dc:creator>
            <pubDate>Fri, 03 Jul 2026 16:24:16 GMT</pubDate>
            <atom:updated>2026-07-03T16:24:16.169Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZVU2DuAQ1N-AoDDoeFodMA.png" /></figure><p>Searching for <a href="https://www.trustedmaid.in/services"><strong>maid services near me</strong></a> can be overwhelming, especially when you need someone trustworthy to take care of your home and family. Whether you need daily cleaning, cooking assistance, childcare, elderly care, or full-time domestic help, choosing the right service provider makes all the difference.</p><p>At <a href="https://trustedmaid.in/">TrustedMaid</a>, we make it simple to <strong>hire a maid</strong> who is experienced, verified, and matched according to your family’s specific requirements. Our goal is to help you find reliable domestic help without the stress of endless searching.</p><h3>Why Choose a Professional House Maid Service?</h3><p>A professional <a href="https://trustedmaid.in/house_maid"><strong>house maid service</strong></a> provides much more than just cleaning. Instead of hiring someone without proper verification, you receive trained and background-verified maids who can assist with various household responsibilities.</p><p>Our maid services include:</p><ul><li>Daily housekeeping</li><li>Cooking and kitchen assistance</li><li>Utensil cleaning</li><li>Laundry and ironing</li><li>Dusting and mopping</li><li>Bathroom cleaning</li><li>Childcare and nanny services</li><li>Elderly care</li><li>Patient care</li><li>Full-time live-in maids</li><li>Part-time house maids</li></ul><p>Whether you need assistance for a few hours a day or a 24-hour live-in maid, we can help you find the right professional.</p><h3>Best Maid Service Near Me for Every Household</h3><p>If you’ve searched for the <strong>best maid service near me</strong>, you’re likely looking for someone dependable, punctual, and experienced.</p><p>TrustedMaid carefully verifies every domestic helper before placement. Our screening process includes:</p><ul><li>Identity verification</li><li>Address verification</li><li>Experience verification</li><li>Interview and skill assessment</li><li>Document verification</li><li>Reference checks (where applicable)</li></ul><p>This helps ensure that families receive trustworthy domestic help while reducing the risks associated with hiring independently.</p><h3>Maid Services in My Area</h3><p>Many people search for <strong>maid services in my area</strong> because they want someone who can start quickly and is familiar with their locality.</p><p>TrustedMaid connects families with domestic helpers across multiple cities and neighborhoods. Whether you need:</p><ul><li>A maid for apartments</li><li>Domestic help for villas</li><li>Society-approved house maids</li><li>Residential housekeeping staff</li></ul><p>we can help you find suitable candidates based on your location and requirements.</p><h3>House Maid Service for Every Requirement</h3><p>Every family has different needs. Some require a maid only for cleaning, while others need someone who can cook, care for children, or assist senior citizens.</p><p>Our house maid services include:</p><h3>Part-Time Maid</h3><p>Ideal for families needing:</p><ul><li>Sweeping</li><li>Mopping</li><li>Utensil cleaning</li><li>Laundry</li><li>Kitchen cleaning</li></ul><h3>Full-Time Maid</h3><p>Perfect for working professionals and busy families who need assistance throughout the day with:</p><ul><li>Housekeeping</li><li>Cooking</li><li>Grocery assistance</li><li>Laundry</li><li>Child supervision</li></ul><h3>24-Hour Live-In Maid</h3><p>A live-in maid stays with the family and helps with complete household management including:</p><ul><li>Cleaning</li><li>Cooking</li><li>Childcare</li><li>Elder care</li><li>Daily household tasks</li></ul><h3>Cleaning Maids for Spotless Homes</h3><p>Professional <strong>cleaning maids</strong> help maintain a hygienic and organized home.</p><p>Our <strong>cleaning maid services</strong> cover:</p><ul><li>Floor cleaning</li><li>Dusting</li><li>Bathroom sanitization</li><li>Kitchen cleaning</li><li>Window cleaning</li><li>Furniture cleaning</li><li>Daily housekeeping</li></ul><p>Whether you require routine maintenance or occasional deep assistance, our maids help keep your home neat and comfortable.</p><h3>Maid Cleaning Services That Save Time</h3><p>Modern families often struggle to balance work and home responsibilities. Professional <strong>maid cleaning</strong> services help reduce your daily workload while maintaining cleanliness.</p><p>Benefits include:</p><ul><li>More free time</li><li>Better home hygiene</li><li>Consistent cleaning schedule</li><li>Reduced stress</li><li>Professional housekeeping standards</li></ul><h3>Find a Maid Without the Hassle</h3><p>Trying to <strong>find a maid</strong> through local references or classified advertisements can be time-consuming and uncertain.</p><p>TrustedMaid simplifies the hiring process:</p><ol><li>Share your requirements.</li><li>Receive suitable maid profiles.</li><li>Conduct interviews.</li><li>Select your preferred candidate.</li><li>Complete documentation.</li><li>Schedule joining.</li></ol><p>This structured process makes hiring domestic help safer and more convenient.</p><h3>Maid for Hire Near Me</h3><p>If you’re searching for a <strong>maid for hire near me</strong>, it’s important to choose someone whose skills match your household requirements.</p><p>You can hire maids for:</p><ul><li>Cleaning</li><li>Cooking</li><li>Babysitting</li><li>Newborn care</li><li>Elder care</li><li>Patient care</li><li>Full household management</li></ul><p>We help match candidates based on experience, availability, language preferences, and work expectations.</p><h3>Care Taker Near Me</h3><p>Many families also search for a <strong>care taker near me</strong> when a loved one requires daily assistance.</p><p>TrustedMaid provides experienced caregivers for:</p><ul><li>Senior citizens</li><li>Bedridden patients</li><li>Post-surgery recovery</li><li>Dementia support</li><li>Parkinson’s care</li><li>Mobility assistance</li><li>Daily companionship</li></ul><p>Our caregivers help improve comfort while supporting the family’s daily caregiving responsibilities.</p><h3>Experienced House Maids You Can Trust</h3><p>Reliable <strong>house maids</strong> contribute significantly to maintaining a well-managed home. A professional maid can help reduce your daily workload and allow you to spend more quality time with your family.</p><p>Whether you need:</p><ul><li>Daily maid</li><li>Weekly maid</li><li>Monthly housekeeping</li><li>Full-time maid</li><li>Live-in domestic helper</li></ul><p>TrustedMaid can help you find suitable domestic staff based on your household needs.</p><h3>Use a Maid App for Easy Hiring</h3><p>Technology has made hiring domestic help easier than ever. A reliable <strong>maid app</strong> allows families to submit requirements, browse available services, and connect with verified domestic helpers.</p><p>With TrustedMaid, you can conveniently:</p><ul><li>Submit your maid requirement online</li><li>Schedule interviews</li><li>Track application progress</li><li>Connect with support</li><li>Manage service requests</li></ul><p>This makes the entire hiring experience faster and more transparent.</p><h3>Why Families Choose TrustedMaid</h3><p>Thousands of families rely on professional maid placement services because they value safety, convenience, and quality.</p><p>Here’s why families choose TrustedMaid:</p><ul><li>Verified domestic helpers</li><li>Experienced house maids</li><li>Flexible hiring options</li><li>Transparent process</li><li>Quick matching</li><li>Multiple service categories</li><li>Customer support throughout the hiring process</li></ul><p>Whether you’re looking for daily housekeeping, cooking assistance, childcare, elderly care, or patient care, TrustedMaid helps you find dependable domestic staff with confidence.</p><h3>Frequently Asked Questions</h3><h3>How can I hire a maid near me?</h3><p>Simply submit your household requirements, and we’ll match you with verified candidates based on your location, budget, and service needs.</p><h3>Do you provide full-time and part-time maids?</h3><p>Yes. We provide part-time maids, full-time maids, and 24-hour live-in maids.</p><h3>Are your maids verified?</h3><p>Yes. Candidate verification typically includes identity verification, document checks, and screening before placement.</p><h3>Can I hire a maid only for cleaning?</h3><p>Absolutely. We provide professional cleaning maids for daily housekeeping, kitchen cleaning, bathroom cleaning, and general home maintenance.</p><h3>Do you provide caretakers?</h3><p>Yes. We provide experienced caregivers for elderly care, patient care, and post-hospital recovery.</p><h3>Book Trusted Maid Services Near You</h3><p>Finding reliable <strong>maid services near me</strong> doesn’t have to be difficult. Whether you’re looking to hire a maid for daily cleaning, cooking, childcare, elderly care, or complete household management, TrustedMaid makes the process simple, secure, and convenient.</p><p>Get started today and find experienced, verified house maids who match your family’s needs, so you can enjoy a cleaner, more organized, and stress-free home.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5145e7a73dd0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Integrate a Flutter Module into your Existing Android app]]></title>
            <link>https://medium.com/@abhishek_165/integrate-a-flutter-module-into-your-existing-android-app-52b873316667?source=rss-679ea9ec3f5------2</link>
            <guid isPermaLink="false">https://medium.com/p/52b873316667</guid>
            <dc:creator><![CDATA[Abhishek Dixit]]></dc:creator>
            <pubDate>Tue, 19 Mar 2024 13:05:23 GMT</pubDate>
            <atom:updated>2024-03-19T13:05:23.050Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nqKIKcs-FRsu8cEHC3TOnA.jpeg" /></figure><p><strong>Want some Flutter magic in your existing app?</strong></p><p>No need to start from scratch! Flutter lets you add pieces of Flutter UI or shared logic to your current Android app. This gives you the benefits of Flutter without a complete rewrite.</p><p>In just a few steps, you can:</p><ul><li>Integrate Flutter code into your app for specific features.</li><li>Mix native and Flutter screens for a hybrid approach.</li><li>Add multiple Flutter views within a single page.</li></ul><p><strong>Step 1: Create the Flutter Module</strong></p><pre>flutter create -t module --org com.example flutter_module</pre><p><strong><em>main.dart </em></strong>code in <strong><em>flutter_module</em></strong>:</p><pre>import &#39;package:flutter/material.dart&#39;;<br><br>void main() =&gt; runApp(const MyApp());<br><br>class MyApp extends StatelessWidget {<br>  const MyApp({super.key});<br><br>  @override<br>  Widget build(BuildContext context) {<br>    return MaterialApp(<br>      title: &#39;Flutter Demo&#39;,<br>      theme: ThemeData(<br>        primarySwatch: Colors.blue,<br>      ),<br>      home: const MyHomePage(title: &#39;Flutter Demo Home Page&#39;),<br>    );<br>  }<br>}<br><br>class MyHomePage extends StatefulWidget {<br>  const MyHomePage({super.key, required this.title});<br><br>  final String title;<br><br>  @override<br>  State&lt;MyHomePage&gt; createState() =&gt; _MyHomePageState();<br>}<br><br>class _MyHomePageState extends State&lt;MyHomePage&gt; {<br>  int _counter = 0;<br><br>  void _incrementCounter() {<br>    setState(() {<br>      _counter++;<br>    });<br>  }<br><br>  @override<br>  Widget build(BuildContext context) {<br>    return Scaffold(<br>      appBar: AppBar(<br>        title: Text(widget.title),<br>      ),<br>      body: Center(<br>        child: Column(<br>          mainAxisAlignment: MainAxisAlignment.center,<br>          children: &lt;Widget&gt;[<br>            const Text(<br>              &#39;You have pushed the button this many times:&#39;,<br>            ),<br>            Text(<br>              &#39;$_counter&#39;,<br>              style: Theme.of(context).textTheme.headlineMedium,<br>            ),<br>          ],<br>        ),<br>      ),<br>      floatingActionButton: FloatingActionButton(<br>        onPressed: _incrementCounter,<br>        tooltip: &#39;Increment&#39;,<br>        child: const Icon(Icons.add),<br>      ),<br>    );<br>  }<br>}</pre><p><strong>2. Build the Flutter Module as an AAR (Android Archive)</strong></p><pre>flutter build aar</pre><p>Then, follow the instructions of the screenshot to integrate,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hPlppwX2CjJTIU_A2_T8Zg.png" /></figure><p>3. Open your Android project’s <strong><em>settings.gradle</em></strong> file and add the following line:</p><pre>    repositoriesMode.set(RepositoriesMode.PREFER_SETTINGS)<br>    repositories {<br>        google()<br>        mavenCentral()<br>        // Add the new repositories starting on the next line...<br>        maven(url = &quot;https://storage.googleapis.com/download.flutter.io&quot;)<br>        maven(url = &quot;/$WRITE_PATH_HERE/flutter_module/build/host/outputs/repo&quot;)<br><br>    }</pre><p>4. Open the application’s <strong><em>build.gradle</em></strong> file (which is at the root of the project) and add the following lines in the profile build type:</p><pre>android {<br>      buildTypes {<br>        // ...<br>         create(&quot;profile&quot;) {<br>            initWith(getByName(&quot;debug&quot;))<br>        }<br>    }</pre><p>5. And add depends on flutter module to:</p><pre>dependencies {<br>      // ...<br>    debugImplementation(&quot;com.example.flutter_module:flutter_debug:1.0&quot;)<br>    add(&quot;profileImplementation&quot;, &quot;com.example.flutter_module:flutter_profile:1.0&quot;)<br>    releaseImplementation(&quot;com.example.flutter_module:flutter_release:1.0&quot;)<br>    }</pre><p>6. Add the following code to your <strong><em>AndroidManifest.xml</em></strong> file:</p><pre>&lt;activity<br>   android:name=&quot;io.flutter.embedding.android.FlutterActivity&quot;<br>   android:configChanges=&quot;orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode&quot;<br>   android:hardwareAccelerated=&quot;true&quot;<br>   android:windowSoftInputMode=&quot;adjustResize&quot;<br>   /&gt;</pre><p>7. Open the <strong><em>activity_main.xml</em></strong> file and add the following code:</p><pre>&lt;Button<br>    android:id=&quot;@+id/myButton&quot;<br>    android:layout_width=&quot;wrap_content&quot;<br>    android:layout_height=&quot;wrap_content&quot;<br>    android:text=&quot;Entry Point of Flutter&quot;<br>    app:layout_constraintBottom_toBottomOf=&quot;parent&quot;<br>    app:layout_constraintEnd_toEndOf=&quot;parent&quot;<br>    app:layout_constraintStart_toStartOf=&quot;parent&quot;<br>    app:layout_constraintTop_toTopOf=&quot;parent&quot;<br>  /&gt;</pre><p>8. Open the <strong><em>MainActivity.kt</em></strong> file and add the following code:</p><pre>package com.example.androidapp<br>import androidx.appcompat.app.AppCompatActivity<br>import android.os.Bundle<br>import android.widget.Button<br>import io.flutter.embedding.android.FlutterActivity<br>import io.flutter.embedding.engine.FlutterEngine<br>import io.flutter.embedding.engine.FlutterEngineCache<br>import io.flutter.embedding.engine.dart.DartExecutor<br><br>private const val FLUTTER_ENGINE_ID = &quot;module_flutter_engine&quot;<br>class MainActivity : AppCompatActivity() {<br>    lateinit var flutterEngine : FlutterEngine<br>    override fun onCreate(savedInstanceState: Bundle?) {<br>        super.onCreate(savedInstanceState)<br>        setContentView(R.layout.activity_main)<br>        // Instantiate a FlutterEngine<br>        flutterEngine = FlutterEngine(this)<br>        // Start executing Dart code to pre-warm the FlutterEngine<br>        flutterEngine.dartExecutor.executeDartEntrypoint(<br>            DartExecutor.DartEntrypoint.createDefault()<br>        )<br>        // Cache the FlutterEngine to be used by FlutterActivity<br>        FlutterEngineCache<br>            .getInstance()<br>            .put(FLUTTER_ENGINE_ID, flutterEngine)<br>        val myButton = findViewById&lt;Button&gt;(R.id.myButton)<br>        myButton.setOnClickListener {<br>            startActivity(<br>                FlutterActivity<br>                    .withCachedEngine(FLUTTER_ENGINE_ID)<br>                    .build(this)<br>            )<br>        }<br>    }<br>}<br></pre><p><strong>Demo :</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/570/1*9CdhHEFKgXdqaTKeEmFHXA.gif" /></figure><p><strong>Adding Flutter to your Android app can be a win-win!</strong></p><ul><li>You can reuse code, design unique UIs, develop faster, and potentially improve performance and maintenance.</li><li>Just remember, it might take some extra learning time for your team.</li></ul><p>Flutter can be a great way to boost your app!</p><p>For more info, <a href="https://docs.flutter.dev/add-to-app">https://docs.flutter.dev/add-to-app</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*32dImIAz1pf9w86S.png" /><figcaption><a href="https://www.buymeacoffee.com/abhishekdiv">click</a></figcaption></figure><h3>Don’t forget to connect with me on:</h3><ul><li><a href="https://www.instagram.com/theviewfinder_abhi/"><strong>Instagram</strong></a></li><li><a href="https://twitter.com/Abhishe45397838"><strong>Twitter</strong></a></li><li><a href="https://www.linkedin.com/in/abhishek-dixit-719079170/"><strong>LinkedIn</strong></a></li><li><a href="https://github.com/Abhishek-165"><strong>GitHub</strong></a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=52b873316667" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ValueNotifier and ValueListenableBuilder in Flutter]]></title>
            <link>https://medium.com/gytworkz/valuenotifier-and-valuelistenablebuilder-in-flutter-63d9e11eef6a?source=rss-679ea9ec3f5------2</link>
            <guid isPermaLink="false">https://medium.com/p/63d9e11eef6a</guid>
            <category><![CDATA[flutter-state-management]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[flutter-app-development]]></category>
            <dc:creator><![CDATA[Abhishek Dixit]]></dc:creator>
            <pubDate>Mon, 16 Jan 2023 10:23:36 GMT</pubDate>
            <atom:updated>2023-03-01T19:57:23.948Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pDV_Z1wpId0q9cVGKy9doA.png" /></figure><p>In 2023, Flutter will be one of the most popular cross-platform frameworks for developing mobile apps. Flutter is Google’s UI toolkit for creating beautiful, natively compiled mobile, web, and desktop applications from a single codebase. In this post, we will take a deep dive into ValueNotifier and its related topics.</p><p>To understand the need for a ValueNotifier, we must first understand Flutter’s underlying architecture. We need to understand how the widgets are rebuilt when we call them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z_8MlMIkiZ9ZlQVlbpD1jg.png" /><figcaption><a href="https://medium.com/codechai/basics-of-state-management-in-flutter-497ddb506608">Reference</a></figcaption></figure><h3>What is ValueNotifier &amp; ValueListenableBuilder in Flutter?</h3><p>A ValueNotifier is a simple class that allows you to expose a value and provide notifications when the value changes. It is often used in Flutter to hold and manage state.</p><p>The ValueNotifier class extends the ChangeNotifier class, which provides the ability to notify listeners when the value changes. To create a ValueNotifier, you need to pass the initial value to the constructor. You can then expose the value using the value property and update it using the value setter.</p><p>Here is an example of how you might use a ValueNotifier in a Flutter app:</p><pre>import &#39;package:flutter/material.dart&#39;;<br><br>void main() {<br>  runApp(MyApp());<br>}<br><br>class MyApp extends StatefulWidget {<br>  @override<br>  _MyAppState createState() =&gt; _MyAppState();<br>}<br><br>class _MyAppState extends State&lt;MyApp&gt; {<br>  final counter = ValueNotifier&lt;int&gt;(0);<br><br>  void increment() {<br>    counter.value++;<br>  }<br><br>  @override<br>  Widget build(BuildContext context) {<br>    return MaterialApp(<br>      home: Scaffold(<br>        body: Center(<br>          child: Column(<br>            mainAxisAlignment: MainAxisAlignment.center,<br>            children: [<br>              Text(&#39;Counter: ${counter.value}&#39;),<br>              RaisedButton(<br>                onPressed: increment,<br>                child: Text(&#39;Increment&#39;),<br>              ),<br>            ],<br>          ),<br>        ),<br>      ),<br>    );<br>  }<br>}</pre><p>In this example, the counter variable is a ValueNotifier that holds an integer value. The increment method increments the value of the counter and the Text widget displays the current value.</p><p>The ValueNotifier class is often used in conjunction with the ValueListenableBuilder widget, which allows you to rebuild a widget tree whenever the value of the ValueNotifier changes. This can be useful for optimizing the performance of your app by avoiding unnecessary rebuilds.</p><p>Here is an example of how you might use the ValueListenableBuilder widget:</p><pre>import &#39;package:flutter/material.dart&#39;;<br><br>void main() {<br>  runApp(MyApp());<br>}<br><br>class MyApp extends StatefulWidget {<br>  @override<br>  _MyAppState createState() =&gt; _MyAppState();<br>}<br><br>class _MyAppState extends State&lt;MyApp&gt; {<br>  final counter = ValueNotifier&lt;int&gt;(0);<br><br>  void increment() {<br>    counter.value++;<br>  }<br><br>  @override<br>  Widget build(BuildContext context) {<br>    return MaterialApp(<br>      home: Scaffold(<br>        body: Center(<br>          child: ValueListenableBuilder(<br>            valueListenable: counter,<br>            builder: (context, value, child) {<br>              return Column(<br>                mainAxisAlignment: MainAxisAlignment.center,<br>                children: [<br>                  Text(&#39;Counter: $value&#39;),<br>                  RaisedButton(<br>                    onPressed: increment,<br>                    child: Text(&#39;Increment&#39;),<br>                  ),<br>                ],<br>              );<br>            },<br>          ),<br>        ),<br>      ),<br>    );<br>  }<br>}</pre><p>In this example, the ValueListenableBuilder widget is wrapped around the Column widget that displays the counter value and the button. The valueListenable property of the ValueListenableBuilder is set to the counter ValueNotifier, and the builder function is called whenever the value of the counter changes. This allows the Column widget to be rebuilt only when the value of the counter changes, rather than being rebuilt on every frame.</p><p>Using a ValueNotifier and a ValueListenableBuilder can be a useful way to manage and optimize the state of your Flutter app. However, it is important to note that ValueNotifier does not automatically trigger a rebuild of its dependents when the value changes. Instead, you must manually call the notifyListeners method to trigger a rebuild.</p><p>In addition to ValueNotifier, Flutter also provides the InheritedWidget and Provider classes, which can be used to manage and expose state in a Flutter app. It is important to choose the right tool for the job based on the requirements of your app.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*NMHyd1N5B35YSOO5.png" /><figcaption><a href="https://www.buymeacoffee.com/abhishekdiV">click</a></figcaption></figure><h3>Don’t forget to connect with me on:</h3><ul><li><a href="https://www.instagram.com/theviewfinder_abhi/"><strong>Instagram</strong></a></li><li><a href="https://twitter.com/Abhishe45397838"><strong>Twitter</strong></a></li><li><a href="https://www.linkedin.com/in/abhishek-dixit-719079170/"><strong>LinkedIn</strong></a></li><li><a href="https://github.com/Abhishek-165"><strong>GitHub</strong></a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=63d9e11eef6a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/gytworkz/valuenotifier-and-valuelistenablebuilder-in-flutter-63d9e11eef6a">ValueNotifier and ValueListenableBuilder in Flutter</a> was originally published in <a href="https://medium.com/gytworkz">GYTWorkz</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Lazy Loading in Flutter]]></title>
            <link>https://medium.com/gytworkz/lazy-loading-in-flutter-a54060b4340b?source=rss-679ea9ec3f5------2</link>
            <guid isPermaLink="false">https://medium.com/p/a54060b4340b</guid>
            <dc:creator><![CDATA[Abhishek Dixit]]></dc:creator>
            <pubDate>Mon, 14 Nov 2022 10:02:38 GMT</pubDate>
            <atom:updated>2023-03-01T19:57:35.628Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_Sr_CihGlSS0XWh-nnJMOA.png" /></figure><p>Infinite scrolling is a concept which you all must have seen in a variety of apps but probably never thought about how it actually works. Infinite scrolling gives us an illusion of having large amounts of data to go through at once except its actually rendered in chunks. This is done using a clever technique of implementing pagination with scroll.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/740/1*RUJblgIzGBU2K6-_w2MtKA.gif" /></figure><p>Let’s see how we can implement,</p><h3>Add dependencies to your project</h3><p>In your project go to pubspec.yaml and look for dependencies. Under dependencies, add the latest version of infinite_scroll_pagination .</p><pre>dependencies:<br>infinite_scroll_pagination: ^3.2.0</pre><h3>Let’s take an example,</h3><p>We will try to make a News application by using infinite scroll pagination.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/839e60f152fc1416fb1250db939ef4f0/href">https://medium.com/media/839e60f152fc1416fb1250db939ef4f0/href</a></iframe><p>_pageSize is the initial count of number of articles that will be fetched.</p><p>Once the user has scrolled to the maxExtent of the page size in this case which is 100, we will make a fetch API call which will fetch another 100 new articles</p><pre>_pagingController.appendLastPage(List&lt;ItemType&gt; itemType)</pre><p>The above method takes the List&lt;ItemType&gt; as input and appends to the end of the list and restricts the widget for further API Calls, only in the case if there no more articles left to be fetched from the database/server.</p><pre>_pagingController.appendPage(List&lt;ItemType&gt; itemType, int nextPageKey)</pre><p>The above method takes the List&lt;ItemType&gt;and int nextPageKey as input and appends to the end of the list and calls API Calls where nextPageKey will be the next page no.</p><p><strong><em>Here is the Implementation,</em></strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/df58a8fd60e25588e2c93469a8ee40c3/href">https://medium.com/media/df58a8fd60e25588e2c93469a8ee40c3/href</a></iframe><p>PageListViewwidget is responsible for loading the infinite page list view. This widget takes the PagingController which handles scrolling functions. The builderDeletegate Property is responsible for loading the item in the list view.</p><pre>class NewsProvider with ChangeNotifier {<br>  NewsResponse? newsResponse;<br><br>  List&lt;Article&gt; get getNewsArticles =&gt; newsResponse!.articles;<br><br>  Future&lt;List&lt;Article&gt;&gt; fetchNews(int pageNo) async {<br>    print(&quot;PageNo : $pageNo&quot;);<br>    var client = http.Client();<br><br>    try {<br>      var response = await client.get(Uri.parse(<br>          &quot;https://newsapi.org/v2/everything?q=bitcoin<br>              &amp;apiKey=e8dc5d8e271d4415bf89b00d9dfa142c&amp;page=$pageNo&quot;));<br><br>      if (response.statusCode == 200) {<br>        newsResponse = NewsResponse.fromMap(jsonDecode(response.body));<br>        notifyListeners();<br>        return getNewsArticles;<br>      } else {}<br>    } catch (e) {<br>      print(e);<br>      return [];<br>    } finally {<br>      client.close();<br>    }<br>    notifyListeners();<br>    return [];<br>  }<br>}</pre><p>The above code represents the API call for fetching the news articles with the page no.</p><p><strong>Source Code for the project,</strong></p><p><a href="https://github.com/Abhishek-165/Flutter_Infinte_Scroll_Pagination_Demo">GitHub - Abhishek-165/Flutter_Infinte_Scroll_Pagination_Demo</a></p><p><strong>For more info about infinite scroll pagination package,</strong></p><p><a href="https://pub.dev/packages/infinite_scroll_pagination">infinite_scroll_pagination | Flutter package</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*BUHfxXP9pY7N6srP.png" /><figcaption><a href="https://www.buymeacoffee.com/abhishekdiV">click</a></figcaption></figure><h3>Don’t forget to connect with me on:</h3><ul><li><a href="https://www.instagram.com/theviewfinder_abhi/"><strong>Instagram</strong></a></li><li><a href="https://twitter.com/Abhishe45397838"><strong>Twitter</strong></a></li><li><a href="https://www.linkedin.com/in/abhishek-dixit-719079170/"><strong>LinkedIn</strong></a></li><li><a href="https://github.com/Abhishek-165"><strong>GitHub</strong></a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a54060b4340b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/gytworkz/lazy-loading-in-flutter-a54060b4340b">Lazy Loading in Flutter</a> was originally published in <a href="https://medium.com/gytworkz">GYTWorkz</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 decrease app Size in flutter?]]></title>
            <link>https://medium.com/gytworkz/how-to-decrease-app-size-in-flutter-10461f91f168?source=rss-679ea9ec3f5------2</link>
            <guid isPermaLink="false">https://medium.com/p/10461f91f168</guid>
            <dc:creator><![CDATA[Abhishek Dixit]]></dc:creator>
            <pubDate>Wed, 13 Jul 2022 04:35:03 GMT</pubDate>
            <atom:updated>2023-03-01T19:57:13.508Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UbBNuqG2_A0sLEWbFWJhfg.png" /></figure><p>App size is important for applications. It has two dimensions: the download size (the size of the app on the play store/when downloading/when installing) and the install size (what happens when you download the app, unpack it, compile it, and optimise it). This significantly expands the application and can be two, three, or even four times the size of the install.</p><h4>Analyze your app size</h4><p>It includes native code, assets, and even a breakdown of the compiled Dart code at the package level. We can analyse app size using the following commands for the specific platform.</p><p><strong>For Android’s AppBundle,</strong></p><pre>flutter build appbundle --target-platform android-arm --analyze-size<br>flutter build appbundle --target-platform android-arm64 --analyze-size<br>flutter build appbundle --target-platform android-x64 --analyze-size</pre><p><strong>For Android’s APK,</strong></p><pre>flutter build apk --target-platform android-arm --analyze-size<br>flutter build apk --target-platform android-arm64 --analyze-size<br>flutter build apk --target-platform android-x64 --analyze-size</pre><p><strong>For iOS,</strong></p><pre>flutter build ios --analyze-size</pre><p><strong>For Linux,</strong></p><pre>flutter build linux --analyze-size</pre><p><strong>For macOS,</strong></p><pre>flutter build macos --analyze-size</pre><p><strong>For Windows,</strong></p><pre>flutter build windows --analyze-size</pre><h4>DevTools</h4><p>It can be used to see a visual representation of it.</p><p>To activate the devtools run the following command,</p><pre>flutter pub global activate devtools</pre><p>To see the visual representation of the app,</p><pre>flutter pub global run devtools --appSizeBase=apk-code-size-analysis_01.json</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O6vznajcZUy2njQnYTUniA.png" /></figure><h4>Remove unused resources</h4><p>There are manual and automatic methods for deleting unwanted resources.<br>You can use manual approaches by deleting the files you don’t require.</p><p>Automatic method can be approached by Android studio follow the given steps below :</p><blockquote>Right Click Project.<br>Pick Refactor from the menu.<br>Select Remove Unused Resources from the menu.</blockquote><h4>Minimize resource imported from libraries</h4><p>Once your app has been built, you should review your pubspec.yaml and delete any unnecessary <strong>libraries</strong> or <strong>packages</strong>.</p><h4>Compress PNG and JPEG files</h4><p>When we need to use images in-app, such as a tutorial mode screen, and we don’t want to call the images from an external storage, we should compress our PNGs and JPGs because high-quality images will bloat the app size.</p><h4>Fonts</h4><p>If we are using more fonts from local assets similar like images these fonts will also increase app size. The best solution is to use google_fonts plugin. This pluign will dynamically download font when it is used.</p><h4>Proguard (for Android Only)</h4><p>Proguard is a Java application optimization tool. It isn’t just for Flutter. It shrinks your code by altering the representation rather than the functionality. When the original name for types, fields, and methods is unimportant, long names are replaced by short strings like a and b to save time. Even though classes and programmes may have lengthy names, they should not be ineffective. It also removes all unnecessary Java code from dependencies.</p><p>We have two default proguard files that we can use,</p><ul><li><strong>proguard-android-optimize.txt </strong>— progurard configuration</li><li><strong>proguard-android.txt</strong></li></ul><p>The default proguard configuration that we utilised was proguard-android-optimize.txt. In your /app directory’s proguard-rules.pro file, we can add your own proguard configurations.</p><pre>release {<br>    //Enable the proguard<br>    minifyEnabled true<br>    proguardFiles getDefaultProguardFile(&#39;proguard-android-optimize.txt&#39;), &quot;proguard-rules.pro&quot;<br><br>    //Other parameters<br>    debuggable false<br>    jniDebuggable false<br>    renderscriptDebuggable false<br>    signingConfig playStoreConfig //Add your own signing config<br>    pseudoLocalesEnabled false<br>    zipAlignEnabled true<br>}</pre><p>The proguard will eliminate all unneeded methods, instructions, and classes by setting minifyEnabled to true. file dex. We may reduce the classes by enabling on Proguard in each module of our project. dex file size by roughly half.</p><h4>Split Bundle (for Android Only)</h4><p>If we are uploading to the Playstore, we could create an app bundle, or we could split the apk per abi, which splits the apk into x64 and x86 bit code. Using appbundle, Google Play’s new app serving model, called Dynamic Delivery, uses your app bundle to generate and serve optimised APKs for each user’s device configuration, ensuring that they only download the code and resources required to run your app.</p><pre>flutter build apk --split-per-abi</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*frMobb8QDdcdd23b.png" /><figcaption><a href="https://www.buymeacoffee.com/abhishekdiV">click here</a></figcaption></figure><p>Don’t forget to connect with me on:</p><ul><li><a href="https://www.instagram.com/theviewfinder_abhi/"><strong>Instagram</strong></a></li><li><a href="https://twitter.com/Abhishe45397838"><strong>Twitter</strong></a></li><li><a href="https://www.linkedin.com/in/abhishek-dixit-719079170/"><strong>LinkedIn</strong></a></li><li><a href="https://github.com/Abhishek-165"><strong>GitHub</strong></a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=10461f91f168" width="1" height="1" alt=""><hr><p><a href="https://medium.com/gytworkz/how-to-decrease-app-size-in-flutter-10461f91f168">How to decrease app Size in flutter?</a> was originally published in <a href="https://medium.com/gytworkz">GYTWorkz</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Flutter with Hive Database]]></title>
            <link>https://medium.com/gytworkz/flutter-with-hive-database-3e4966b6ccd0?source=rss-679ea9ec3f5------2</link>
            <guid isPermaLink="false">https://medium.com/p/3e4966b6ccd0</guid>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[hive]]></category>
            <category><![CDATA[flutter-app-development]]></category>
            <dc:creator><![CDATA[Abhishek Dixit]]></dc:creator>
            <pubDate>Wed, 29 Jun 2022 15:49:12 GMT</pubDate>
            <atom:updated>2022-07-12T20:28:53.292Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HcTvOgckzEDs7A1RvlgdGg.png" /></figure><h4>What is Flutter?</h4><p>Flutter is an open source framework by Google for building beautiful, natively compiled, multi-platform applications from a single codebase.</p><h4>What is Hive?</h4><p>Hive is a pure Dart-based, lightweight, and lightning-quick key-value database.</p><h4>What is Box?</h4><p>All data stored in Hive is organised in boxes. A box can be compared to a table in SQL, but it does not have a structure and can contain anything.</p><p>For a small app, a single box might be enough. For more advanced problems, boxes are a great way to organise your data. Boxes can also be encrypted to store sensitive data.</p><h4>Add dependencies to your project</h4><p>In your project go to pubspec.yaml and look for dependencies. Under dependencies, add the latest version of hive , hive_flutter and path_provider.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/85cb038aa86bd9c40ce0a3c3ef744d88/href">https://medium.com/media/85cb038aa86bd9c40ce0a3c3ef744d88/href</a></iframe><p><strong>NOTE :</strong> We use the path_provider package to get the commonly used location such as TemporaryDirectory and ApplicationDocumentsDirectory.</p><ol><li><strong>Create Singleton Class</strong></li></ol><p>We assure that there is only one class instance and that it has global point access by using the singleton technique.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9ed6727fbecb489b71266250c98e3318/href">https://medium.com/media/9ed6727fbecb489b71266250c98e3318/href</a></iframe><p>Here, In the getDatabaseInstance method, we initialise the Box for Hive and configure its path.</p><p>2. <strong>Configure the Database Path , initialise Box and Get Box</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3134167124ef8b03ac8c87863e9ac318/href">https://medium.com/media/3134167124ef8b03ac8c87863e9ac318/href</a></iframe><p>Now, Let’s setup the database path</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/15cc633af973aab529734f5c77d3e749/href">https://medium.com/media/15cc633af973aab529734f5c77d3e749/href</a></iframe><p>Here, i have extended the HiveInterface and configure the path as given below</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/15cc633af973aab529734f5c77d3e749/href">https://medium.com/media/15cc633af973aab529734f5c77d3e749/href</a></iframe><p>Now, let’s initialise Box of the Hive</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6a28784bb1fca1eaecd5db4e6c98bf0e/href">https://medium.com/media/6a28784bb1fca1eaecd5db4e6c98bf0e/href</a></iframe><p>after that if there is data in the box of the hive then add to the stream so that we can show in the UI</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3425f37485934559f97692bc97f58558/href">https://medium.com/media/3425f37485934559f97692bc97f58558/href</a></iframe><p>3. <strong>Create Model Classes</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4b93d2c9750603f7a563557662f5c5e2/href">https://medium.com/media/4b93d2c9750603f7a563557662f5c5e2/href</a></iframe><p>For this Project, I’will be storing the name and age of the user. So i have made a model person for the storing those data</p><p>Apart from that, i’ll be returning the list of data with the bool value which represents the initialisation of the database</p><p>4. <strong>Insert, Read And Delete Operations</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1d24b665d8b0f7ae5fa90532360119bb/href">https://medium.com/media/1d24b665d8b0f7ae5fa90532360119bb/href</a></iframe><p>Here, we have written multiple methods for different operations</p><p>let’s understand one by one,</p><p>insert method :</p><p>we are storing the data using the put method of box class in the form of key, value pair like</p><pre>e.g : {&quot;uid&quot;:{&quot;username&quot;:&quot;age&quot;}}</pre><p>read method :</p><p>we are reading the data using the box class in the form of list of key, value pair</p><pre>e.g : [{&quot;uid1&quot;:{&quot;username1&quot;:&quot;age1&quot;}},{&quot;uid2&quot;:{&quot;username2&quot;:&quot;age2&quot;}}]</pre><p>delete method :</p><p>In order to delete the data in the box, we will be using the key.</p><p>clear method :</p><p>we are deleting all the data from the box and closing the stream controller.</p><p><strong>Note :</strong></p><ol><li>For every method, we are checking if the Box is not initialised, then we initialised first then we perform the operation.</li><li>We are adding the data to the sink for the insert and delete methods so that the user interface will be updated.</li></ol><p>5. <strong>UI Implementation</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9ae8d728c9a85a039dca0a7b10335a9d/href">https://medium.com/media/9ae8d728c9a85a039dca0a7b10335a9d/href</a></iframe><p><strong>In the initState Method,</strong> we are initialising the the database and and creating the new stream controller</p><p><strong>In the dispose Method,</strong> we are clearing the data of the box and closing the stream controller</p><p><strong>In the build Method, </strong>we will be using the StreamBuilder widget for listening to the changes in the stream and ConnectionState</p><p>6. <strong>Demo</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/187/1*v0jfCQ1afqHF_P-V5tyGFw.gif" /></figure><p>This is the result of the hard work we have been doing till now.</p><p>For more detail, checkout my Github repository</p><p><a href="https://github.com/Abhishek-165/Flutter_With_Hive">GitHub - Abhishek-165/Flutter_With_Hive</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*rbwrka6BeccGAId0.png" /><figcaption><a href="https://www.buymeacoffee.com/abhishekdiV">click here</a></figcaption></figure><h3>Don’t forget to connect with me on:</h3><ul><li><a href="https://www.instagram.com/theviewfinder_abhi/"><strong>Instagram</strong></a></li><li><a href="https://twitter.com/Abhishe45397838"><strong>Twitter</strong></a></li><li><a href="https://www.linkedin.com/in/abhishek-dixit-719079170/"><strong>LinkedIn</strong></a></li><li><a href="https://github.com/Abhishek-165"><strong>GitHub</strong></a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3e4966b6ccd0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/gytworkz/flutter-with-hive-database-3e4966b6ccd0">Flutter with Hive Database</a> was originally published in <a href="https://medium.com/gytworkz">GYTWorkz</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Steps to secure your Flutter Application]]></title>
            <link>https://medium.com/gytworkz/steps-to-secure-your-flutter-application-a52fbb1982cf?source=rss-679ea9ec3f5------2</link>
            <guid isPermaLink="false">https://medium.com/p/a52fbb1982cf</guid>
            <category><![CDATA[flutter-security]]></category>
            <category><![CDATA[flutter-app-development]]></category>
            <category><![CDATA[flutter]]></category>
            <dc:creator><![CDATA[Abhishek Dixit]]></dc:creator>
            <pubDate>Mon, 27 Jun 2022 16:16:47 GMT</pubDate>
            <atom:updated>2023-03-01T19:56:42.561Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZhZobl_h713nVupd2pWMFg.png" /></figure><h4><strong>Protection for snapshots / Screen Recordings</strong></h4><p>To protect sensitive data, block the user to take the snapshot or screen recording of the critical or sensitive information</p><p><em>For a particular screen,</em></p><pre>await FlutterWindowManager.addFlags(FlutterWindowManager.FLAG_SECURE);</pre><p><em>To secure the complete app,</em></p><p><em>For Android :</em></p><p>Import the given file in the android manifest file</p><pre>import android.view.WindowManager.LayoutParams;</pre><p>and this line in the onCreate method,</p><pre>@Overrideprotected void onCreate(Bundle savedInstanceState) {  super.onCreate(savedInstanceState);  <br>// add this line <br>getWindow().addFlags(LayoutParams.FLAG_SECURE);   <br>}</pre><p><em>For IOS :</em></p><p>add this line in the AppDelegate.m class,</p><pre>@implementation AppDelegate <br>- (BOOL)application:(UIApplication *)application  <br>  didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {  [GeneratedPluginRegistrant registerWithRegistry:self];         return [super application:application didFinishLaunchingWithOptions:launchOptions];<br>}<br> - (void)applicationWillResignActive:(UIApplication *)application{    self.window.hidden = YES;<br>} <br>- (void)applicationDidBecomeActive:(UIApplication *)application{    self.window.hidden = NO;<br>} @end</pre><p>You can read more about the package on the pub.dev using the link given below</p><p><a href="https://pub.dev/packages/flutter_windowmanager">flutter_windowmanager | Flutter package</a></p><h4>Secure Storage</h4><p>The shared preferences plugin’s Readme page in pub.dev states that there is no assurance that the data being stored on storage is secure.</p><p>Since, shared preferences data is not secured that may lead to expose sensitive information of the user.</p><p>To secure data data we can use,</p><p><strong><em>Flutter Secure Storage Package,</em></strong></p><p>It uses AES Encryption for storing the data in android device and Keychain for IOS Devices.</p><p><a href="https://pub.dev/packages/flutter_secure_storage">flutter_secure_storage | Flutter package</a></p><p><strong><em>Hive Package,</em></strong></p><p>It is very complicated to store the larger data and nested json in the <em>flutter_secure_storage</em></p><p>To avoid this issue we can use hive database, which can store the larger data easily and effectively in the secured storage.</p><p><a href="https://pub.dev/packages/hive">hive | Dart package</a></p><h4><strong>Keep current with the latest Flutter SDK releases.</strong></h4><p>The Flutter version must be updated, and these updates may address security flaws discovered in previous versions. Check the Flutter change log for security-related updates.</p><h4>Code Obfuscation</h4><p>The technique of altering an app’s binary to make it more difficult for humans to understand is called code obfuscation. Your app’s API keys, classes, and all of your keys may be made public by reverse engineering. Your business logic may depend on this information, and the attacker could use it to access private user information. It is challenging for an attacker to reverse engineer your exclusive software since obfuscation conceals these in your produced Dart code.</p><p>Obfuscating applications is quite simple with Flutter. Build a release version of your application using the --obfuscate and --split-debug-info flags to obfuscate it.</p><pre>flutter build apk --obfuscate --split-debug-info=/&lt;project-name&gt;/&lt;directory&gt;</pre><h4>Rooting or Jailbreaking protection</h4><p>The manufacturer-imposed restrictions on the user can be removed by rooting Android devices or jailbreaking iOS devices. As a result, malware that affects your application or its data may be introduced. You might wish to notice this in such a situation and act accordingly. You might therefore wish to check whether the device is rooted or not.</p><p>To detect the root for and android device or jailbreaking on IOS device, Please see the package given below.</p><p><a href="https://pub.dev/packages/flutter_jailbreak_detection">flutter_jailbreak_detection | Flutter Package</a></p><p>For Developer Mode (Android only)</p><pre>bool developerMode = <strong>await</strong> FlutterJailbreakDetection.developerMode;</pre><p>For Production,</p><pre>bool jailbroken = <strong>await</strong> FlutterJailbreakDetection.jailbroken;</pre><h4>Handshake Validation</h4><p>For some enterprise apps, we only need to connect to the domain server. Therefore, we must include the code that verifies the host’s identity and the host server’s IP Address in order to achieve that.</p><pre>import &#39;package:dio/dio.dart&#39;;</pre><pre>void main(){<br>  HttpOverrides.global = new MyHttpOverrides();<br>  runApp(MyApp());<br>}</pre><pre>class MyHttpOverrides extends HttpOverrides{</pre><pre>const HOST_IP_Address = <strong>your_ip_address</strong>;<br>  <a href="http://twitter.com/override">@override</a><br>  HttpClient createHttpClient(SecurityContext context){<br>    return super.createHttpClient(context)<br>      ..badCertificateCallback = ((X509Certificate cert, String host, int port) {<br>        final isValidHost = [HOST_IP_Address].contains(host); // &lt;-- allow only hosts in array<br>        return isValidHost;<br>      });<br>  }<br>}</pre><pre>void getHttp() async {<br>  Dio dio = new Dio();<br>  Response response;<br>  response = await dio.get(HOST_IP_Address);<br>  print(response.data);<br>}</pre><p><strong>NOTE :</strong> Just change your_ip_address to your specific domain IP Address.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*PXTQ5ATTvrQ5gcbT.png" /><figcaption><a href="https://www.buymeacoffee.com/abhishekdiV">click here</a></figcaption></figure><h3>Don’t forget to connect with me on:</h3><ul><li><a href="https://www.instagram.com/theviewfinder_abhi/"><strong>Instagram</strong></a></li><li><a href="https://twitter.com/Abhishe45397838"><strong>Twitter</strong></a></li><li><a href="https://www.linkedin.com/in/abhishek-dixit-719079170/"><strong>LinkedIn</strong></a></li><li><a href="https://github.com/Abhishek-165"><strong>GitHub</strong></a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a52fbb1982cf" width="1" height="1" alt=""><hr><p><a href="https://medium.com/gytworkz/steps-to-secure-your-flutter-application-a52fbb1982cf">Steps to secure your Flutter Application</a> was originally published in <a href="https://medium.com/gytworkz">GYTWorkz</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is async, async*, sync*, yield and yield* keywords in dart?]]></title>
            <link>https://medium.com/gytworkz/what-is-async-async-sync-yield-and-yield-keywords-in-dart-da7d46e0ef8f?source=rss-679ea9ec3f5------2</link>
            <guid isPermaLink="false">https://medium.com/p/da7d46e0ef8f</guid>
            <category><![CDATA[dart]]></category>
            <category><![CDATA[async-functions]]></category>
            <category><![CDATA[dartlang]]></category>
            <category><![CDATA[asyncawait]]></category>
            <dc:creator><![CDATA[Abhishek Dixit]]></dc:creator>
            <pubDate>Wed, 22 Jun 2022 16:05:40 GMT</pubDate>
            <atom:updated>2022-06-27T06:42:25.466Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QOwy2H6aOq6ouhPH7-DfoQ.png" /></figure><p>As there are several keywords, we are unaware of their functions or how to apply them effectively. In order to help you write code and broaden your understanding of flutter, I’ll share a few keywords with you.</p><blockquote><strong>async and await</strong></blockquote><p>async and await are keywords that provide a way to make asynchronous operations appear synchronous.</p><p>Let’s take an example for async and await keywords,</p><pre>Future callAsyncFunction(String text) {<br>return Future.delayed(Duration(seconds: 1)).then((value) =&gt; text);<br>}<br>void main() async {<br>print(&#39;1st call&#39;);<br>await callAsyncFunction(&quot;waited for async to be executed&quot;).then((status){<br> print(status);<br>});<br>print(&#39;after async call&#39;);<br>}</pre><p>output:</p><pre>1st call <br>waited for async to be executed<br>after async call</pre><p>Here we can see that the statement after the await call are executed once. The await call successfully returns a future.</p><blockquote><strong>yield</strong></blockquote><p>yield appends a value to the output stream of the async*function that surrounds it. It is similar to return, but it does not terminate the function.</p><blockquote><strong>Generator functions</strong></blockquote><p>It generates a sequence of values (Unlike regular functions, which only return a single value).</p><p>Generator functions can be:</p><ul><li><strong>Asynchronous </strong>(return a Stream of values)</li><li><strong>Synchronous </strong>(return an Iterable with values)</li></ul><blockquote><strong>async*</strong></blockquote><p>It offers some syntactical sugar to emit a value with the yield keyword and will always return a Stream.</p><p>Let’s take an example for async* and yield keywords,</p><pre>Stream&lt;int&gt; foo() async* {<br>  for (int i = 0; i &lt; 10; i++) {<br>    await Future.delayed(const Duration(seconds: 1));<br>    yield i;<br>  }<br>}</pre><blockquote><strong>sync*</strong></blockquote><p>It will return the Iterable values</p><p>Let’s take an example for sync* keyword,</p><pre>Iterable&lt;int&gt; getNumbers(int number) sync* {<br> print(‘generator started’);<br> for (int i = 0; i &lt; number; i++) {<br> yield i;<br> }<br> print(‘generator ended’);<br>}</pre><blockquote><strong>yield*</strong></blockquote><p>After delegating the call to another generator, it continues creating its own values once that generator stops producing values.</p><p>Let’s take an example for yield* keyword,</p><pre>Stream&lt;int&gt; word(int n) async* {<br>  if (n &gt; 0) {  <br>    await Future.delayed(Duration(seconds: 1));<br>    yield n;<br>    yield* word(n - 1);<br>  }<br>}</pre><pre>void main() {<br>  word(3).forEach(print);<br>}</pre><p>output:</p><pre>3<br>2<br>1</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*vSU1sh2uIDoRUKKN.png" /></figure><h3>Don’t forget to connect with me on:</h3><ul><li><a href="https://www.instagram.com/theviewfinder_abhi/"><strong>Instagram</strong></a></li><li><a href="https://twitter.com/Abhishe45397838"><strong>Twitter</strong></a></li><li><a href="https://www.linkedin.com/in/abhishek-dixit-719079170/"><strong>LinkedIn</strong></a></li><li><a href="https://github.com/Abhishek-165"><strong>GitHub</strong></a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=da7d46e0ef8f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/gytworkz/what-is-async-async-sync-yield-and-yield-keywords-in-dart-da7d46e0ef8f">What is async, async*, sync*, yield and yield* keywords in dart?</a> was originally published in <a href="https://medium.com/gytworkz">GYTWorkz</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[10 Best VSCode Extensions For Better Programming 2022]]></title>
            <link>https://medium.com/gytworkz/10-best-vscode-extensions-for-better-programming-2022-629688f309d5?source=rss-679ea9ec3f5------2</link>
            <guid isPermaLink="false">https://medium.com/p/629688f309d5</guid>
            <category><![CDATA[vscode-theme]]></category>
            <category><![CDATA[vscode]]></category>
            <category><![CDATA[vscode-extension]]></category>
            <dc:creator><![CDATA[Abhishek Dixit]]></dc:creator>
            <pubDate>Wed, 22 Jun 2022 05:02:27 GMT</pubDate>
            <atom:updated>2022-06-27T06:40:45.005Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G5kKSzhRspUTqEyooH5i_w.png" /></figure><p>We frequently require extensions while programming to make our work easier and, more importantly, faster. There are thousands of extensions available for VS Code, and new extensions are constantly being added to the marketplace.<br>I’ve included the 10 Best VS Code extensions that I use on a daily basis, and the majority of these extensions can be used by developers of all languages.</p><h3><strong>Auto Import</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*spbkn5WPI_yXuVw5DiEUZA.png" /></figure><p>All available imports are automatically found, parsed, and code actions and completion are provided.</p><p>You can read more about the extension on the market place using the link given below</p><p><a href="https://marketplace.visualstudio.com/items?itemName=steoates.autoimport">Auto Import - Visual Studio Marketplace</a></p><h3>Live Share</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VQXZ33plp_TiVMNjj8fkzA.png" /></figure><p>Live Share enables developers to collaborate while maintaining their individual editor choices (e.g., theme, keybindings) and cursor. This allows you to smoothly switch between following each other’s cursor and exploring ideas/tasks independently.</p><p>You can read more about the extension on the market place using the link given below</p><p><a href="https://marketplace.visualstudio.com/items?itemName=MS-vsliveshare.vsliveshare">Live Share - Visual Studio Marketplace</a></p><h3>Bookmarks</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PA1gbqSeU_dT-jbqoxwTQQ.png" /></figure><p>It allows you to easily and quickly move between important positions in your code. There is no longer any need to look for code. It also includes a set of selection commands for selecting bookmarked lines and regions between bookmarked lines. It’s extremely useful for analysing log files.</p><p>You can read more about the extension on the market place using the link given below</p><p><a href="https://marketplace.visualstudio.com/items?itemName=alefragnani.Bookmarks">Bookmarks - Visual Studio Marketplace</a></p><h3>CodeSnap</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A1hAIoN8HFD4QqdNW4ToHg.png" /></figure><p>Take beautiful screenshots of your code in VS Code.</p><p>You can read more about the extension on the market place using the link given below</p><p><a href="https://marketplace.visualstudio.com/items?itemName=adpyke.codesnap">CodeSnap - Visual Studio Marketplace</a></p><h3>Better Comments</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J3N2qTK3lrxwwqI5ds2G3w.png" /></figure><p>It will assist you in creating more human-friendly comments in your code.You will be able to categorise your annotations using this extension:</p><ul><li>Alerts</li><li>Queries</li><li>TODOs</li><li>Highlights</li><li>Commented out code can also be styled to indicate that it should not be present.</li><li>You can specify any additional comment styles you want in the settings.</li></ul><p>You can read more about the extension on the market place using the link given below</p><p><a href="https://marketplace.visualstudio.com/items?itemName=aaron-bond.better-comments">Better Comments - Visual Studio Marketplace</a></p><h3>Error Lens</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AILdh4VirYfH5MOqiUnaJw.png" /></figure><p>ErrorLens enhances language diagnostic features by recognising diagnostics, highlighting the entire line whenever a diagnostic is generated by the language, and printing the message inline.</p><p>You can read more about the extension on the market place using the link given below</p><p><a href="https://marketplace.visualstudio.com/items?itemName=usernamehw.errorlens">Error Lens - Visual Studio Marketplace</a></p><h3>GitHub Copilot</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Msy45aLCggV0ohZ0x1-g5A.png" /></figure><p>GitHub Copilot is an artificial intelligence-powered pair programmer that suggests line completions and entire function bodies as you type. The OpenAI Codex AI system, which has been trained on public Internet text and billions of lines of code, powers GitHub Copilot.</p><p>You can read more about the extension on the market place using the link given below</p><p><a href="https://marketplace.visualstudio.com/items?itemName=GitHub.copilot">GitHub Copilot - Visual Studio Marketplace</a></p><h3>Moonlight Theme</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HekoC0NGBc2VTYJ4JUBEAQ.png" /></figure><p>A bubblegum-colored VS Code theme with a moonlit background.</p><p>Available Color Themes are:</p><ul><li>Moonlight II</li><li>Moonlight II Italic</li><li>Moonlight</li><li>Moonlight Italic</li></ul><p>You can read more about the extension on the market place using the link given below</p><p><a href="https://marketplace.visualstudio.com/items?itemName=atomiks.moonlight">Moonlight - Visual Studio Marketplace</a></p><h3>Git Graph</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p4KDpGbvigSKNRpBlBs0xA.png" /></figure><p>View your repository’s Git Graph and carry out simple Git operations from the graph. ability could be customised to look however you like!</p><p>You can read more about the extension on the market place using the link given below</p><p><a href="https://marketplace.visualstudio.com/items?itemName=mhutchie.git-graph">Git Graph - Visual Studio Marketplace</a></p><h3>Material Icon Theme</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mMNBS_JSY01VP3Q9iA4WKA.png" /></figure><p>Material Design Icons for Visual Studio Code</p><p>You can read more about the extension on the market place using the link given below</p><p><a href="https://marketplace.visualstudio.com/items?itemName=PKief.material-icon-theme">Material Icon Theme - Visual Studio Marketplace</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bbGa504ngi-cHLdE.png" /></figure><h3>Don’t forget to connect with me on:</h3><ul><li><a href="https://www.instagram.com/theviewfinder_abhi/"><strong>Instagram</strong></a></li><li><a href="https://twitter.com/Abhishe45397838"><strong>Twitter</strong></a></li><li><a href="https://www.linkedin.com/in/abhishek-dixit-719079170/"><strong>LinkedIn</strong></a></li><li><a href="https://github.com/Abhishek-165"><strong>GitHub</strong></a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=629688f309d5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/gytworkz/10-best-vscode-extensions-for-better-programming-2022-629688f309d5">10 Best VSCode Extensions For Better Programming 2022</a> was originally published in <a href="https://medium.com/gytworkz">GYTWorkz</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Extension Methods in Flutter]]></title>
            <link>https://medium.com/gytworkz/extension-methods-in-flutter-27d2d714585a?source=rss-679ea9ec3f5------2</link>
            <guid isPermaLink="false">https://medium.com/p/27d2d714585a</guid>
            <category><![CDATA[flutter]]></category>
            <dc:creator><![CDATA[Abhishek Dixit]]></dc:creator>
            <pubDate>Tue, 21 Jun 2022 11:17:05 GMT</pubDate>
            <atom:updated>2022-06-27T06:42:36.389Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uq6BkPJihceG18f4r4FTdQ.png" /></figure><p>In Dart 2.7, Extension methods are introduced as a way to add functionality to existing libraries. You may be using extension methods without even realising it. When you use code completion in an IDE, for example, it suggests extension methods in addition to regular methods.</p><h4><strong>Requirements</strong></h4><p>To start, ensure that your Flutter project that uses the extension methods feature using the Dart SDK version. This must be Dart 2.7, the version in which this feature was added. You can verify this within your pubspec.yaml :</p><pre>environment:sdk: &quot;&gt;=<strong>2.7.0</strong> &lt;3.0.0&quot;</pre><h4><strong>Syntax :</strong></h4><pre>extension &lt;extension_name&gt; on &lt;type&gt; {<br> (&lt;member_definition&gt;)*<br>}</pre><p>Let’s take a scenarios where we can use extension methods</p><p><strong>Examples :</strong></p><ol><li>For converting the String into int datatype</li></ol><pre>int.parse(&#39;10&#39;)</pre><p>You might have used this way to convert the string into integer. Similarly, you can use this way to create an extension method for this standardised way.</p><p>To achieve that, we can extend the String Class further to increase its functionality like this,</p><pre>extension NumberParsing on String {</pre><pre> // convert string to int <br>  int parseInt() {<br>    return int.parse(this);<br>  }<br>}</pre><p>Here, we have extended the String Class to convert the String datatype to Integer Datatype</p><p><strong>Usage:</strong></p><pre>print(&#39;42&#39;.parseInt()); </pre><p>2. For converting the String into int datatype</p><pre>print(value[0].toUpperCase() + value.substring(1));</pre><p>we can extend the String Class further to increase its functionality like this,</p><pre>extension CapitaliseString on String {</pre><pre>// Capitalise the first letter</pre><pre>String get CamelCase {<br>   return this[0].toUpperCase() + this.substring(1);<br> }<br>}</pre><p><strong>Usage :</strong></p><pre>print(&#39;flutter&#39;.CamelCase()); //output Flutter</pre><p>Likewise, we can create multiple extension methods to increase the functionality of the existing classes. We can create extension method for any type of class.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zHvgqROBkMjs9jpc.png" /></figure><h3>Don’t forget to connect with me on:</h3><ul><li><a href="https://www.instagram.com/theviewfinder_abhi/"><strong>Instagram</strong></a></li><li><a href="https://twitter.com/Abhishe45397838"><strong>Twitter</strong></a></li><li><a href="https://www.linkedin.com/in/abhishek-dixit-719079170/"><strong>LinkedIn</strong></a></li><li><a href="https://github.com/Abhishek-165"><strong>GitHub</strong></a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=27d2d714585a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/gytworkz/extension-methods-in-flutter-27d2d714585a">Extension Methods in Flutter</a> was originally published in <a href="https://medium.com/gytworkz">GYTWorkz</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>