Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

Commit

Permalink
chenge: フォーマットを整えました
Browse files Browse the repository at this point in the history
  • Loading branch information
kototo522 committed Mar 1, 2024
1 parent e5af37c commit f826b30
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,11 @@ fun SearchScreen(navigator: DestinationsNavigator) {
var searchQuery by rememberSaveable { mutableStateOf(searchUiState.searchQuery) }
var active by remember { mutableStateOf(false) }


Surface(
modifier = Modifier.fillMaxSize(),
color = MaterialTheme.colorScheme.background,
) {
Column{
Column {
SearchBar(
query = searchQuery,
onQueryChange = { newQuery -> searchQuery = newQuery },
Expand All @@ -70,7 +69,7 @@ fun SearchScreen(navigator: DestinationsNavigator) {
Icon(
imageVector = Filled.ArrowBack,
contentDescription = stringResource(string.button_close),
modifier = Modifier.clickable { navigator.popBackStack() }
modifier = Modifier.clickable { navigator.popBackStack() },
)
},
trailingIcon = {
Expand All @@ -88,4 +87,4 @@ fun SearchScreen(navigator: DestinationsNavigator) {
)
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@ package com.example.tsundokun.ui.search
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.example.tsundokun.core.model.Tsundoku
import com.example.tsundokun.data.local.dao.TsundokuDao
import com.example.tsundokun.data.repository.TsundokuRepository
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.asStateFlow
import kotlinx.coroutines.flow.filter
import kotlinx.coroutines.flow.map
import kotlinx.coroutines.launch
import javax.inject.Inject
Expand Down Expand Up @@ -42,4 +40,4 @@ class SearchViewModel @Inject constructor(
var searchQuery: String = "",
var searchResults: List<Tsundoku> = emptyList(),
)
}
}

0 comments on commit f826b30

Please sign in to comment.