v1.0.14hive_ui
DBMS Hive Ui는 Hive 데이터베이스와 작업하는 데 지능적인 방법을 제시하는 패키지입니다. 행을 쉽게 보고, 편집하고, 새 행을 만들 수 있습니다.
DBMS Hive Ui는 Hive 데이터베이스와 작업하는 데 지능적인 방법을 제시하는 패키지입니다. 행을 쉽게 보고, 편집하고, 새 행을 만들 수 있습니다.
^0.1.3{"sdk":"flutter"}^1.1.0^0.18.0^0.0.3+2^3.0.7{"sdk":"flutter"}^2.0.1^2.3.3^2.0.0아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
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.
alt text alt text alt text alt text
dependencies:
hive_ui: ^1.0.4
import 'package:hive_ui/hive_ui.dart';
Navigator.push(
context,
MaterialPageRoute(builder: (context) => HiveBoxesView(
hiveBoxes: Boxes.allBoxes,
onError: (String errorMessage) =>
{
print(errorMessage)
})),
);
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;
}
You can see a full example of how to use the package in the Example example directory.
If you encounter any issues while using the package, please file a bug report in the GitHub issue tracker.
If you would like to contribute to the package, please read the contributing guidelines before submitting a pull request.
| 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!