add user & device config settings (#520)

* add MeshUser & LocalConfig prefs
This commit is contained in:
Andre K 2022-11-08 23:11:18 -03:00 committed by GitHub
parent 17dc4da191
commit 4bcd408dce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
30 changed files with 1383 additions and 200 deletions

View file

@ -0,0 +1,21 @@
package com.geeksville.mesh.ui
import androidx.compose.runtime.Composable
import androidx.compose.ui.tooling.preview.Preview
import com.geeksville.mesh.model.UIViewModel
import androidx.lifecycle.viewmodel.compose.viewModel
import androidx.lifecycle.viewmodel.viewModelFactory
import com.geeksville.mesh.ui.theme.AppTheme
@Composable
fun PreferenceScreen(viewModel: UIViewModel = viewModel()) {
PreferenceItemList(viewModel)
}
//@Preview(showBackground = true)
//@Composable
//fun PreferencePreview() {
// AppTheme {
// PreferenceScreen(viewModel(factory = viewModelFactory { }))
// }
//}