package Ġme . zhi y ao . wat ere ver . ui . record . create . plant Ċ Ċ import Ġandroidx . h ilt . lifecycle . ViewModel Inject Ċ import Ġandroidx . lifecycle . LiveData Ċ import Ġandroidx . lifecycle . ViewModel Ċ import Ġandroidx . lifecycle . as LiveData Ċ import Ġme . zhi y ao . wat ere ver . data . db . entities . Plant With Category Tags Ċ import Ġme . zhi y ao . wat ere ver . data . repo . Plant Repository Ċ Ċ /** Ċ Ġ* Ċ Ġ* Ġ@ author ĠWang Z hi Y ao Ċ Ġ* Ġ@ date Ġ 2 0 2 0 / 9 / 1 1 Ċ Ġ*/ Ċ class ĠNew Grow th Record Plant ViewModel Ġ@ ViewModel Inject Ġconstructor ( ĊĠĠĠ Ġprivate Ġval Ġplant Repository : ĠPl ant Repository Ċ ) Ġ: ĠViewModel () Ġ{ ĊĊĠĠĠ Ġval Ġpl ants : ĠLive Data < List < Plant With Category Tags >> Ġ= ĊĠĠĠĠĠĠĠ Ġplant Repository . getAll Alive Pl ants (). as LiveData () Ċ }