Add DrawerScreen preview
This commit is contained in:
		
							parent
							
								
									05860345b6
								
							
						
					
					
						commit
						ce3261df07
					
				
					 1 changed files with 13 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -7,9 +7,11 @@ import androidx.compose.material.icons.Icons
 | 
			
		|||
import androidx.compose.material.icons.filled.Menu
 | 
			
		||||
import androidx.compose.runtime.Composable
 | 
			
		||||
import androidx.compose.runtime.rememberCoroutineScope
 | 
			
		||||
import androidx.compose.ui.tooling.preview.Preview
 | 
			
		||||
import be.ugent.sel.studeez.common.composable.drawer.Drawer
 | 
			
		||||
import be.ugent.sel.studeez.common.composable.drawer.DrawerActions
 | 
			
		||||
import be.ugent.sel.studeez.resources
 | 
			
		||||
import be.ugent.sel.studeez.ui.theme.StudeezTheme
 | 
			
		||||
import kotlinx.coroutines.CoroutineScope
 | 
			
		||||
import kotlinx.coroutines.launch
 | 
			
		||||
import be.ugent.sel.studeez.R.string as AppText
 | 
			
		||||
| 
						 | 
				
			
			@ -48,4 +50,15 @@ fun DrawerScreenTemplate(
 | 
			
		|||
    ) {
 | 
			
		||||
        content(it)
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@Preview
 | 
			
		||||
@Composable
 | 
			
		||||
fun DrawerScreenPreview() {
 | 
			
		||||
    StudeezTheme { DrawerScreenTemplate(
 | 
			
		||||
        title = "Drawer screen preview",
 | 
			
		||||
        drawerActions =DrawerActions({}, {}, {}, {}, {})
 | 
			
		||||
    ) {
 | 
			
		||||
        Text(text = "Preview content")
 | 
			
		||||
    } }
 | 
			
		||||
}
 | 
			
		||||
		Reference in a new issue