搜索分类、插件与代码仓

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 项

源码仓库

使用此插件的项目

暂无相关数据。