فهرست منبع

update readme

ditclear 7 سال پیش
والد
کامیت
d073db663d
2فایلهای تغییر یافته به همراه5 افزوده شده و 3 حذف شده
  1. 3 1
      README.md
  2. 2 2
      lib/di/app_module.dart

+ 3 - 1
README.md

@@ -8,7 +8,9 @@ The Structure seems like [MVVM-Android](https://github.com/ditclear/MVVM-Android
 
 ##### DownLoad
 
-![](android.png)
+
+
+![](https://user-gold-cdn.xitu.io/2019/4/20/16a3a283fca2f664?w=300&h=300&f=png&s=9313)
 
 #### dependencies
 

+ 2 - 2
lib/di/app_module.dart

@@ -11,7 +11,7 @@ const testScope = DartInScope('test');
 ///
 /// 定义ViewModel的构造方式
 final viewModelModule = Module([
-  factory<HomeProvide>(({params}) => HomeProvide(params.get(0), get<GithubRepo>())),
+  factory<HomeProvide>(({params}) => HomeProvide(params.get(0), get())),
 ])
   ..addOthers(testScope, [
     ///other scope
@@ -22,7 +22,7 @@ final viewModelModule = Module([
 ///
 /// 定义Repository 的构造方式
 final repoModule = Module([
-  lazy<GithubRepo>(({params}) => GithubRepo(get<GithubService>(), get<SpUtil>())),
+  lazy<GithubRepo>(({params}) => GithubRepo(get(), get())),
 ]);
 
 /// Remote 模块