unify_flutter 3.0.0 unify_flutter: ^3.0.0 copied to clipboard
An efficient, flexible Flutter-Native hybrid communication framework for seamless module integration and automatic code generation.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add unify_flutter
With Flutter:
$ flutter pub add unify_flutter
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
unify_flutter: ^3.0.0
Alternatively, your editor might support dart pub get
or flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:unify_flutter/analyzer/analyzer_error.dart';
import 'package:unify_flutter/analyzer/analyzer_lib.dart';
import 'package:unify_flutter/analyzer/parse_results.dart';
import 'package:unify_flutter/analyzer/visitors/base_ast_visitor.dart';
import 'package:unify_flutter/analyzer/visitors/custom_type_visitor.dart';
import 'package:unify_flutter/analyzer/visitors/initializer_visitor.dart';
import 'package:unify_flutter/analyzer/visitors/uniapi_ast_visitor.dart';
import 'package:unify_flutter/api/api.dart';
import 'package:unify_flutter/ast/base.dart';
import 'package:unify_flutter/ast/basic/ast_bool.dart';
import 'package:unify_flutter/ast/basic/ast_custom.dart';
import 'package:unify_flutter/ast/basic/ast_double.dart';
import 'package:unify_flutter/ast/basic/ast_int.dart';
import 'package:unify_flutter/ast/basic/ast_lambda.dart';
import 'package:unify_flutter/ast/basic/ast_list.dart';
import 'package:unify_flutter/ast/basic/ast_map.dart';
import 'package:unify_flutter/ast/basic/ast_object.dart';
import 'package:unify_flutter/ast/basic/ast_string.dart';
import 'package:unify_flutter/ast/basic/ast_variable.dart';
import 'package:unify_flutter/ast/basic/ast_void.dart';
import 'package:unify_flutter/ast/uniapi/ast_method.dart';
import 'package:unify_flutter/ast/uniapi/ast_model.dart';
import 'package:unify_flutter/ast/uniapi/ast_module.dart';
import 'package:unify_flutter/cli/cli.dart';
import 'package:unify_flutter/cli/commands/generate_api_command.dart';
import 'package:unify_flutter/cli/generate_script.dart';
import 'package:unify_flutter/cli/options.dart';
import 'package:unify_flutter/cli/unify_command_runner.dart';
import 'package:unify_flutter/generator/common.dart';
import 'package:unify_flutter/generator/model.dart';
import 'package:unify_flutter/generator/module_flutter.dart';
import 'package:unify_flutter/generator/module_native.dart';
import 'package:unify_flutter/generator/uniapi.dart';
import 'package:unify_flutter/generator/widgets/base/block.dart';
import 'package:unify_flutter/generator/widgets/base/comment.dart';
import 'package:unify_flutter/generator/widgets/base/condition.dart';
import 'package:unify_flutter/generator/widgets/base/line.dart';
import 'package:unify_flutter/generator/widgets/code_template.dart';
import 'package:unify_flutter/generator/widgets/code_unit.dart';
import 'package:unify_flutter/generator/widgets/code_unit_mixin.dart';
import 'package:unify_flutter/generator/widgets/lang/dart/dart_class.dart';
import 'package:unify_flutter/generator/widgets/lang/dart/dart_field.dart';
import 'package:unify_flutter/generator/widgets/lang/dart/dart_function.dart';
import 'package:unify_flutter/generator/widgets/lang/dart/dart_import.dart';
import 'package:unify_flutter/generator/widgets/lang/java/java_class.dart';
import 'package:unify_flutter/generator/widgets/lang/java/java_constants.dart';
import 'package:unify_flutter/generator/widgets/lang/java/java_field.dart';
import 'package:unify_flutter/generator/widgets/lang/java/java_function.dart';
import 'package:unify_flutter/generator/widgets/lang/java/java_import.dart';
import 'package:unify_flutter/generator/widgets/lang/java/java_package.dart';
import 'package:unify_flutter/generator/widgets/lang/oc/oc_class.dart';
import 'package:unify_flutter/generator/widgets/lang/oc/oc_forward_declaration.dart';
import 'package:unify_flutter/generator/widgets/lang/oc/oc_function.dart';
import 'package:unify_flutter/generator/widgets/lang/oc/oc_import.dart';
import 'package:unify_flutter/generator/widgets/lang/oc/oc_property.dart';
import 'package:unify_flutter/generator/widgets/lang/oc/oc_reference.dart';
import 'package:unify_flutter/uni_api.dart';
import 'package:unify_flutter/utils/constants.dart';
import 'package:unify_flutter/utils/extension/ast_extension.dart';
import 'package:unify_flutter/utils/extension/codeunit_extension.dart';
import 'package:unify_flutter/utils/extension/list_extension.dart';
import 'package:unify_flutter/utils/extension/string_extension.dart';
import 'package:unify_flutter/utils/file/file.dart';
import 'package:unify_flutter/utils/file/input_file.dart';
import 'package:unify_flutter/utils/log.dart';
import 'package:unify_flutter/utils/template_internal/dart/caches.dart';
import 'package:unify_flutter/utils/template_internal/dart/uni_api.dart';
import 'package:unify_flutter/utils/template_internal/dart/uni_callback.dart';
import 'package:unify_flutter/utils/template_internal/dart/uni_callback_manager.dart';
import 'package:unify_flutter/utils/template_internal/dart/uni_model.dart';
import 'package:unify_flutter/utils/template_internal/java/uni_class_methods.dart';
import 'package:unify_flutter/utils/template_internal/java/uni_model.dart';
import 'package:unify_flutter/utils/template_internal/objc/uni_class_methods.dart';
import 'package:unify_flutter/utils/template_internal/objc/uni_static_function.dart';
import 'package:unify_flutter/utils/utils.dart';
import 'package:unify_flutter/version.dart';
import 'package:unify_flutter/worker/check_duplicate.dart';
import 'package:unify_flutter/worker/clean_outdated.dart';
import 'package:unify_flutter/worker/work_runner.dart';
import 'package:unify_flutter/worker/worker.dart';