-
Is okay to put view in android `ViewModel`.
Refer on this `Caution: A ViewModel must never reference a view, Lifecycle, or any class that may hold a reference to the activity context.`
Links: https:…
-
**Describe the problem**
1. LoginViewModel#getFactToDisplay contains error:
```
fun getFactToDisplay(context: Context): String {
...
if (authenticationState == Authenticati…
-
# Android: Develop Tips
[TOC]
逐渐更新一些关于 Android 开发设计的一下小技巧
## Multi-Module
多模块设计参考:[模块分层设计](https://github.com/yunshuipiao/Potato/issues/65)
## Design
屏幕适配:[建议使用今日头条屏幕适配方案](https://gi…
-
I found a trivial bug. `rx` and `coroutine` packages are affected by this.
### Scenario
1. A `Activity` starts B `Activity`.
2. Rotate the screen in B `Activity`.
3. Tap the back button in B `Ac…
-
Please how can I use with databinding to get _**selectedCountryCodeWithPlus**_ using **LiveData** instead ObservableField.
#250
Advance thanks!
-
This be the most weird thing to debug... as i'm currently new to flutter
```
Widget _buildMain(BuildContext context) {
final viewModel = Provider.of(context, listen: false);
return Col…
-
HW2 수행하던 중 질문이 있습니다.
현재 앱을 실행하여 todo 추가 버튼을 누르고, 제목과 내용을 입력한 뒤 create를 누르면
create라는 내용의 toast는 표시되지만, todo가 app 메인 화면에 표시되지 않습니다.
사실 제가 전반적으로 이해가 부족합니다. codelab 등을 보고 먼저 공부하는 것이 맞겠지만, 과제를 수행해야 다음…
-
https://www.reddit.com/r/androiddev/comments/92zgwg/fragment_related_pitfalls_and_how_to_avoid_them/
-
`MutableLiveData` and `LiveData` are not suited for UI updates.
`postValue` and `emit` methods only emit the latest value if they are called in a very short interval. Therefore the pattern "emit da…
-
There is an issue with UI freezing on Chrome OS when after upgrading from 2.10.5 to Flutter 3.x.x. After several consecutive interactions with UI (button presses etc.) the whole application becomes un…