搜尋分類、套件與程式碼儲存庫

hive_ui 封面
套件詳情v1.0.14

hive_ui

DBMS Hive Ui 是一個套件,提供了一種智慧的方法來操作 Hive 資料庫,可輕鬆檢視、編輯和建立新資料列。

AndroidiOSmacOSWindowsLinux
近 30 天下載
660
喜歡數
55
Pub 分數
140

安裝套件

flutter pub add hive_ui

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

Hive_UI 是一個 Flutter 套件,透過提供直覺的視覺化介面來簡化與 Hive NoSQL 資料庫的互動,用於檢視、編輯和建立資料庫資料列。專為尋求在開發或除錯期間簡化本機資料管理的開發者設計,可與 Hive 的輕量級、快速儲存系統無縫整合。該套件透過提供即時資料檢視與修改功能,無需手動變更程式碼即可提升生產力。支援 Android、iOS、macOS、Windows 及 Linux 多個平台,適用於跨平台應用。

適用情境

  • 開發調試
  • 即時數據檢查
  • 本地資料庫管理
  • 快速原型設計
  • 應用中的資料視覺化
  • 可視化編輯 Hive 記錄

主要特色

  • 視覺數據瀏覽器
  • 即時行編輯
  • 輕鬆建立新條目
  • 跨平台支援
  • 無縫 Hive 結合
  • 資料庫操作的直覺式使用者介面

適合對象

  • Flutter 開發者
  • 應用調試器
  • 本地數據測試人員
  • 快速應用原型設計
  • 使用 Hive 進行離線儲存的團隊

使用建議

  • 不適用於生產環境
  • 需要開發人員專用設定
  • 僅限 Hive 資料庫類型
  • 可能會稍微增加應用大小
  • 最佳使用階段為開發階段
  • 無內建安全功能

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

Hive UI

Build Status

A Flutter package that allows you to easily work with Hive databases. With this package, you can explore all database boxes, edit table rows, add new rows to tables, search boxes by column name and value, delete rows or all data from a box, copy selected values and select specific color for the Hive UI view.

Features

  • Explore all database boxes
  • Edit any table rows and set new values
  • Add new row to table database
  • Search boxes by column name and value
  • Delete a single row or all data from a box
  • Copy selected values
  • Select specific color for the Hive UI view
  • Support all platfoem (Android - Web - IOS - Windows - Linux - Mac )

alt text alt text alt text alt text

Requirements

  • Hive must be installed
  • All boxes must be open
  • toJson and fromJson methods must be implemented for each box

Usage

  • Add the package as a dependency in your 'pubspec.yaml' file:
dependencies:
  hive_ui: ^1.0.4
  • Import the package in your dart file where you want to use it by adding the following line at the top of the file:
import 'package:hive_ui/hive_ui.dart';
  • To route to the Hive UI view:
     Navigator.push(
            context,
            MaterialPageRoute(builder: (context) => HiveBoxesView(
                hiveBoxes: Boxes.allBoxes,
                onError: (String errorMessage) =>
                {
                  print(errorMessage)
                })),
          );
  • Example for Box view:
class BoxExample extends HiveObject {
  BoxExample({
    this.id,
  });
  BoxExample.fromJson(dynamic json) {
    id = json['id'] ?? '';
  }
  @HiveField(0)
  String? id;
  Map<String, dynamic> toJson() {
    final Map<String, dynamic> map = <String, dynamic>{};
    map['id'] = id;
    }

Example

You can see a full example of how to use the package in the Example example directory.

Issues

If you encounter any issues while using the package, please file a bug report in the GitHub issue tracker.

Contributing

If you would like to contribute to the package, please read the contributing guidelines before submitting a pull request.

HiveBoxesView Parameters

Parameters Name
hiveBoxes The hiveBoxes parameter is a map of boxes to display. In this example, it is set to Boxes.allBoxes, which likely refers to a static property of a Boxes class that contains all the boxes that need to be displayed.
onError The onError parameter is a callback function that is called when an error occurs. In this example, it is set to a function that shows a toast message with the error message passed as a parameter.
dateFormat The dateFormat parameter is the format of the date and time that is used in the view. In this example, it is set to the format "yyyy-MM-dd".
appBarColor The appBarColor parameter is the color of the app bar. In this example, it is set to a variable called primaryColor.
columnTitleTextStyle he columnTitleTextStyle and rowTitleTextStyle parameters are the text styles of the column and row titles respectively. In this example, they are set to specific styles with fontWeight: FontWeight.w600 and fontSize: 14.sp for columns and fontSize: 12.sp for rows.

Free Software, Hell Yeah!

所屬分類

依賴

依賴清單 1 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。