@@ -33,15 +33,16 @@ import com.flint.R
3333import com.flint.core.designsystem.component.image.NetworkImage
3434import com.flint.core.designsystem.component.listView.OttHorizontalList
3535import com.flint.core.designsystem.theme.FlintTheme
36- import com.flint.domain.model.ContentModel
3736import com.flint.domain.type.OttType
3837
3938@Composable
4039fun SavedFilmListItem (
41- contentModel : ContentModel ,
40+ filmImage : String ,
41+ ottList : List <OttType >,
4242 title : String ,
4343 director : String ,
4444 createdYear : String ,
45+ onMoreFilmClick : () -> Unit ,
4546 isBookmarked : Boolean ,
4647 bookmarkCount : Int ,
4748 onBookmarkClick : () -> Unit ,
@@ -52,10 +53,12 @@ fun SavedFilmListItem(
5253 modifier
5354 .fillMaxWidth()
5455 .height(150 .dp)
55- .background(color = FlintTheme .colors.background),
56+ .background(color = FlintTheme .colors.background)
57+ .padding(16 .dp, 12 .dp),
5658 ) {
5759 SavedFilmListItemImage (
58- contentModel = contentModel,
60+ filmImage = filmImage,
61+ ottList = ottList,
5962 modifier = Modifier .fillMaxHeight(),
6063 )
6164
@@ -65,6 +68,7 @@ fun SavedFilmListItem(
6568 title = title,
6669 director = director,
6770 createdYear = createdYear,
71+ onMoreFilmClick = onMoreFilmClick,
6872 modifier =
6973 Modifier
7074 .fillMaxHeight()
@@ -83,25 +87,24 @@ fun SavedFilmListItem(
8387
8488@Composable
8589private fun SavedFilmListItemImage (
86- contentModel : ContentModel ,
90+ filmImage : String ,
91+ ottList : List <OttType >,
8792 modifier : Modifier = Modifier ,
8893) {
89- Column (
90- modifier = modifier.width(100 .dp),
94+ Box (
95+ modifier =
96+ modifier
97+ .width(100 .dp)
98+ .fillMaxSize(),
9199 ) {
92- Box (
100+ NetworkImage (
101+ imageUrl = filmImage,
93102 modifier = Modifier .fillMaxSize(),
94- ) {
95- NetworkImage (
96- imageUrl = contentModel.posterImage,
97- modifier = Modifier .fillMaxSize(),
98- )
99-
100- OttHorizontalList (
101- ottList = contentModel.ottSimpleList,
102- modifier = Modifier .padding(top = 10 .dp, start = 8 .dp),
103- )
104- }
103+ )
104+ OttHorizontalList (
105+ ottList = ottList,
106+ modifier = Modifier .padding(top = 10 .dp, start = 8 .dp),
107+ )
105108 }
106109}
107110
@@ -110,6 +113,7 @@ private fun SavedFilmListItemInfo(
110113 title : String ,
111114 director : String ,
112115 createdYear : String ,
116+ onMoreFilmClick : () -> Unit ,
113117 modifier : Modifier = Modifier ,
114118) {
115119 Column (
@@ -146,6 +150,7 @@ private fun SavedFilmListItemInfo(
146150 }
147151
148152 Row (
153+ modifier = Modifier .clickable(onClick = onMoreFilmClick),
149154 verticalAlignment = Alignment .CenterVertically ,
150155 ) {
151156 Text (
@@ -198,29 +203,17 @@ private fun SavedFilmListItemBookmark(
198203@Composable
199204private fun SavedFilmListItemBookmarkPreview () {
200205 FlintTheme {
201- val contentModel =
202- ContentModel (
203- contentId = 0 ,
204- title = " 드라마 제목" ,
205- year = 2000 ,
206- posterImage = " " ,
207- ottSimpleList =
208- listOf (
209- OttType .Netflix ,
210- OttType .Disney ,
211- OttType .Tving ,
212- OttType .Coupang ,
213- OttType .Wave ,
214- OttType .Watcha ,
215- ),
216- )
217206 var isBookmarked by remember { mutableStateOf(false ) }
218207
208+ val ottSimpleList = OttType .entries
209+
219210 SavedFilmListItem (
220- contentModel = contentModel,
211+ filmImage = " " ,
212+ ottList = ottSimpleList,
221213 title = " 해리포터 불의 잔 해리포터 불의 잔 해리포터 불의 잔 해리포터 불의 잔 해리포터 불의 잔 해리포터 불의 잔" ,
222214 director = " 메롱" ,
223215 createdYear = " 2005" ,
216+ onMoreFilmClick = {},
224217 isBookmarked = isBookmarked,
225218 bookmarkCount = 128 ,
226219 onBookmarkClick = { isBookmarked = ! isBookmarked },
0 commit comments