Fügt Isar Datenbank als dependency hinzu

This commit is contained in:
2025-12-22 01:46:15 +01:00
parent 0f066c67d1
commit c4225759d8
5 changed files with 15 additions and 1 deletions

View File

@@ -6,6 +6,11 @@
#include "generated_plugin_registrant.h"
#include <isar_flutter_libs/isar_flutter_libs_plugin.h>
void fl_register_plugins(FlPluginRegistry* registry) {
g_autoptr(FlPluginRegistrar)
isar_flutter_libs_registrar =
fl_plugin_registry_get_registrar_for_plugin(registry, "IsarFlutterLibsPlugin");
isar_flutter_libs_plugin_register_with_registrar(isar_flutter_libs_registrar);
}

View File

@@ -3,6 +3,7 @@
#
list(APPEND FLUTTER_PLUGIN_LIST
isar_flutter_libs
)
list(APPEND FLUTTER_FFI_PLUGIN_LIST

View File

@@ -35,10 +35,13 @@ dependencies:
flutter_expandable_fab: ^2.5.2
flutter_sticky_header: ^0.8.0
font_awesome_flutter: ^10.10.0
isar: ^3.1.0+1
isar_flutter_libs: ^3.1.0+1
package_info_plus: ^9.0.0
routemaster: ^1.0.1
dev_dependencies:
flutter_lints: ^6.0.0
flutter_test:
sdk: flutter
@@ -47,7 +50,8 @@ dev_dependencies:
# activated in the `analysis_options.yaml` file located at the root of your
# package. See that file for information about deactivating specific lint
# rules and activating additional ones.
flutter_lints: ^6.0.0
isar_generator: ^3.1.0+1
build_runner: ^2.4.13
# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec

View File

@@ -6,6 +6,9 @@
#include "generated_plugin_registrant.h"
#include <isar_flutter_libs/isar_flutter_libs_plugin.h>
void RegisterPlugins(flutter::PluginRegistry* registry) {
IsarFlutterLibsPluginRegisterWithRegistrar(
registry->GetRegistrarForPlugin("IsarFlutterLibsPlugin"));
}

View File

@@ -3,6 +3,7 @@
#
list(APPEND FLUTTER_PLUGIN_LIST
isar_flutter_libs
)
list(APPEND FLUTTER_FFI_PLUGIN_LIST