小马快跑

Results 5 comments of 小马快跑

> Fully understandable. It's a lot to ask for, so I'm not expecting anything 😄 > > What about translating the pictures and such? Like this: > ![image](https://user-images.githubusercontent.com/35228879/44954869-bab61000-aea9-11e8-8b41-e6c4079e8607.png) > >...

and this is the flutter_01.log : Flutter crash report; please file at https://github.com/flutter/flutter/issues. ## command flutter run ## exception ProcessException: ProcessException: Process "/Users/mq/flutter/demo/HistoryOfEverything/app/android/gradlew" exited abnormally: Unzipping /Users/mq/.gradle/wrapper/dists/gradle-4.4-all/9br9xq1tocpiv8o6njlyu5op1/gradle-4.4-all.zip to /Users/mq/.gradle/wrapper/dists/gradle-4.4-all/9br9xq1tocpiv8o6njlyu5op1 Exception...

thanks, finally it works, a nice app ! I see the log , once it shows permission deny , I try ‘sudo’ then it works

感谢反馈,没注意到这个,优化了下,因为我们的目的是为了在BaseMvvmActivity里去处理Loading、error、normal等状态,所以需要在BaseMvvmActivity里拿到ViewModel的实例,这里可以抽象在基类里定义,然后在子类里把ViewModel示例传入: BaseMvvmActivity中: abstract class BaseMvvmActivity : BaseActivity() { abstract fun getViewModel(): BaseViewModel } 子类中: class MvvmExampleActivity : BaseMvvmActivity() { private val mViewModel: WanViewModel by viewModels() override fun getViewModel(): BaseViewModel =...

用的是leakcanary吗 看一下是报的是哪里 可以截张图 leakcanary有时候会先给提醒 但是最后本身不是内存泄漏