vaycore 0.4.0

  • Readme
  • Changelog
  • Installing
  • new44

vaycore #

介绍

flutter develop library

使用方式 #

  • 入口类加载框架

    import 'package:vaycore/vaycore.dart';
    
    void main() => core.load(MyApp(), isDebug: true, initMethod: _init);
    
    void _init() {
      // 这里可以用来初始化一些东西(此方法会在初始化MyApp前调用)
    }
    

[0.4.0] - 2020-05-18. #

  • 添加BarUtils(获取栏相关的工具类)
  • 添加BusUtils(全局事件工具类)
  • 添加AppUtils(获取应用信息工具类)
  • 添加ToastUtils,方便快捷使用Toast提示信息
  • 结构化MVVM的代码(用于方便保存构建页面时的context对象)
  • 集成package_info包,用于获取应用信息
  • 集成fluttertoast包,用于显示Toast

[0.3.0] - 2020-05-15. #

  • 添加国际化支持
  • 添加sprintf库(处理国际化字符串变量注入)
  • 优化NetRequest类,只保留request请求方法
  • 解决无法设置网络缓存的问题(将缓存配置从options.extra迁移到header里)
  • flutter format所有代码

[0.2.1] - 2020-05-13. #

  • 组件主类load方法添加初始化方法(方便在应用页面实例化前初始化一些变量)

[0.2.0] - 2020-05-12. #

  • 添加依赖注入模块
  • 添加MVVM基础架构支持

[0.1.0] - 2020-05-11. #

  • 添加全局屏幕适配功能
  • 封装网络请求框架
  • 添加本地持久存储工具类
  • 添加获取手机相关目录工具类

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  vaycore: ^0.4.0

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:vaycore/vaycore.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
0
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
70
Overall:
Weighted score of the above. [more]
44
Learn more about scoring.

We analyzed this package on May 23, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.8.1
  • pana: 0.13.8-dev
  • Flutter: 1.17.0

Health suggestions

Format lib/common/options.dart.

Run flutter format to format lib/common/options.dart.

Format lib/http/net_request.dart.

Run flutter format to format lib/http/net_request.dart.

Format lib/utils/path_utils.dart.

Run flutter format to format lib/utils/path_utils.dart.

Format lib/utils/toast_utils.dart.

Run flutter format to format lib/utils/toast_utils.dart.

Maintenance suggestions

The package description is too short. (-20 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and vaycore.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
dio ^3.0.9 3.0.9
flutter 0.0.0
fluttertoast ^4.0.1 4.0.1
package_info ^0.4.0+18 0.4.0+18
path_provider ^1.6.7 1.6.9
provider ^4.1.1 4.1.2
shared_preferences ^0.5.7+1 0.5.7+3
sprintf ^4.0.2 4.0.2
Transitive dependencies
charcode 1.1.3
collection 1.14.12
flutter_web_plugins 0.0.0
http_parser 3.1.4
meta 1.1.8
nested 0.0.4
path 1.7.0
path_provider_macos 0.0.4+3
path_provider_platform_interface 1.0.2
platform 2.2.1
plugin_platform_interface 1.0.2
shared_preferences_macos 0.0.1+9
shared_preferences_platform_interface 1.0.4
shared_preferences_web 0.1.2+7
sky_engine 0.0.99
source_span 1.7.0
string_scanner 1.0.5
term_glyph 1.1.0
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies
flutter_test