<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Amr Said</title>
    <description>The latest articles on DEV Community by Amr Said (@amrsaied).</description>
    <link>https://dev.to/amrsaied</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F402773%2F43172f9f-cb98-450e-af2c-278d76a75111.jpeg</url>
      <title>DEV Community: Amr Said</title>
      <link>https://dev.to/amrsaied</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/amrsaied"/>
    <language>en</language>
    <item>
      <title>Introducing storage_ui, the new library for managing key-value storage in your Flutter app.</title>
      <dc:creator>Amr Said</dc:creator>
      <pubDate>Fri, 27 Jan 2023 18:31:08 +0000</pubDate>
      <link>https://dev.to/amrsaied/introducing-storageui-the-new-library-for-managing-key-value-storage-in-your-flutter-app-4hn1</link>
      <guid>https://dev.to/amrsaied/introducing-storageui-the-new-library-for-managing-key-value-storage-in-your-flutter-app-4hn1</guid>
      <description>&lt;p&gt;Managing storage in a mobile app can be a tedious task, especially when you have a lot of data to store and retrieve. That's why I created storage_ui, a library that makes it easy to manage your storage with a user-friendly GUI. It works on top of get_storage and flutter_secure_storage, and it provides an easy way to preview, edit, delete, and copy your stored keys.&lt;/p&gt;

&lt;p&gt;The library also allows you to customize the look and feel of the storage page. You can change the color of the app bar, background cursor, confirm button, cursor, and text to match your app's style.&lt;/p&gt;

&lt;p&gt;To get started, add storage_ui: 1.0.0 to your pubspec.yaml file and use CacheStorageLogPage in your code.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6gin92ns2xan708ca061.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6gin92ns2xan708ca061.png" alt="Image description" width="800" height="598"&gt;&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;CacheStorageLogPage(
        cacheStorage: GetStorage(),
        pageStyle: PageStyle(
          appBarColor: Colors.blue,
          backgroundCursorColor: Colors.black26,
          confirmColor: Colors.green,
          cursorColor: Colors.black,
          textColor: Colors.black,
        ),
        onError: (message) {
          print(message);
        },
      )

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can find more information about the library on pub.dev (&lt;a href="https://pub.dev/packages/storage_ui" rel="noopener noreferrer"&gt;https://pub.dev/packages/storage_ui&lt;/a&gt;) and Github (&lt;a href="https://github.com/AmrSaied/storage_ui" rel="noopener noreferrer"&gt;https://github.com/AmrSaied/storage_ui&lt;/a&gt;) including an issue tracker, contributing guidelines, and more.&lt;/p&gt;

&lt;p&gt;Don't hesitate to give it a try, and let me know what you think.&lt;/p&gt;

&lt;p&gt;P.S: I'm open for any suggestions, feedback or contributions for the lib.&lt;/p&gt;

</description>
      <category>writing</category>
      <category>discuss</category>
    </item>
    <item>
      <title>Introducing Hive UI: A Flutter Package for Easily Managing Your Hive Database</title>
      <dc:creator>Amr Said</dc:creator>
      <pubDate>Sat, 21 Jan 2023 16:25:07 +0000</pubDate>
      <link>https://dev.to/amrsaied/introducing-hive-ui-a-flutter-package-for-easily-managing-your-hive-database-59i6</link>
      <guid>https://dev.to/amrsaied/introducing-hive-ui-a-flutter-package-for-easily-managing-your-hive-database-59i6</guid>
      <description>&lt;p&gt;Introducing Hive UI: A Flutter Package for Easily Managing Your Hive Database&lt;br&gt;
&lt;a href="https://pub.dev/packages/hive_ui/" rel="noopener noreferrer"&gt;https://pub.dev/packages/hive_ui/&lt;/a&gt;&lt;br&gt;
If you're a Flutter developer, you're probably familiar with Hive - a lightweight and blazing-fast key-value store that is perfect for storing small amounts of data on the device. However, managing and interacting with your Hive database can be a tedious task, especially when it comes to viewing and editing the data.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ff04ytr3qs6th8kr4ikfq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ff04ytr3qs6th8kr4ikfq.png" alt="Image description" width="800" height="562"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fev3n70qvji4ku3pa1zfh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fev3n70qvji4ku3pa1zfh.png" alt="Image description" width="800" height="565"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwhft5sm8rsnlklckwkkl.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwhft5sm8rsnlklckwkkl.png" alt="Image description" width="800" height="572"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkfz9iwazem34csl88x1v.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkfz9iwazem34csl88x1v.png" alt="Image description" width="800" height="564"&gt;&lt;/a&gt;&lt;br&gt;
That's why we've developed Hive UI, a new Flutter package that makes it easy to manage your Hive database. With Hive UI, you can easily explore all of your database boxes, edit table rows, add new rows, search for boxes by column name and value, and delete rows or entire boxes.&lt;/p&gt;

&lt;p&gt;Hive UI is built on top of the Hive package and is fully compatible with it. To use Hive UI, you'll need to have Hive installed and a box open. Additionally, you'll need to implement the toJson and fromJson methods for every box that you want to use with Hive UI.&lt;/p&gt;

&lt;p&gt;To get started with Hive UI, add the package to your pubspec.yaml file and run flutter pub get. Then, add all of your boxes to a static variable like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;static Box&amp;lt;Box&amp;gt; get hiveBox =&amp;gt;
      Hive.box&amp;lt;Box&amp;gt;("name");

static Map&amp;lt;Box&amp;lt;dynamic&amp;gt;, dynamic Function(dynamic json)&amp;gt; get allBoxes =&amp;gt; {
        hiveBox: (json) =&amp;gt;
            hiveBox.fromJson(json)}

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;To view your boxes in the Hive UI, simply navigate to the HiveBoxesView widget and pass in your boxes and any desired options, like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Navigator.push(
    context,
    HiveBoxesView(
        hiveBoxes: allBoxes,
        onError: (String errorMessage) =&amp;gt;
            PopUpHelper.showToast('', errorMessage),
        dateFormat: DateFormat('yyyy-MM-dd'),
        appBarColor: primaryColor,
        columnTitleTextStyle: TextStyle(
          fontWeight: FontWeight.w600,
          fontSize: 14.sp,
        ),
        rowTitleTextStyle: TextStyle(fontSize: 12.sp),
      )
  );

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Hive UI also provides options for&lt;/p&gt;

&lt;p&gt;customizing the look and feel of the UI, such as the app bar color, column title text style, and row title text style.&lt;/p&gt;

&lt;p&gt;In addition to viewing and editing data, Hive UI also provides a search feature that allows you to search for boxes by column name and value. This can be incredibly useful when working with large amounts of data and need to quickly find a specific piece of information.&lt;/p&gt;

&lt;p&gt;Another powerful feature of Hive UI is the ability to delete rows or entire boxes. This can be useful for cleaning up old data or for testing purposes. The delete feature is easy to use and can be accessed directly from the Hive UI.&lt;/p&gt;

&lt;p&gt;Hive UI also includes a copy feature that allows you to copy the selected value, and also select specific color for the selected row.&lt;/p&gt;

&lt;p&gt;One of the best things about Hive UI is that it is open-source and actively maintained, so you can always be sure that you're using the latest version of the package. And if you encounter any issues or have any suggestions for new features, you can submit them on the GitHub repository.&lt;/p&gt;

&lt;p&gt;Overall, Hive UI is a must-have package for any Flutter developer working with Hive. It makes managing and interacting with your Hive database a breeze, and its powerful features and customization options make it a valuable addition to any project. So, if you're looking for an easy way to manage your Hive database, give Hive UI a try and see how it can help you work more efficiently and effectively.&lt;/p&gt;

</description>
      <category>discuss</category>
    </item>
  </channel>
</rss>
