-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DO NOT MERGE: androidApp: Initial support for tickets
Signed-off-by: Aayush Gupta <[email protected]>
- Loading branch information
1 parent
e165fbe
commit 64a5644
Showing
6 changed files
with
61 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
androidApp/src/main/java/app/opass/ccip/android/ui/screens/ticket/TicketScreen.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package app.opass.ccip.android.ui.screens.ticket | ||
|
||
import androidx.compose.foundation.layout.Column | ||
import androidx.compose.foundation.layout.fillMaxSize | ||
import androidx.compose.foundation.layout.padding | ||
import androidx.compose.material3.Scaffold | ||
import androidx.compose.runtime.Composable | ||
import androidx.compose.ui.Modifier | ||
import androidx.compose.ui.res.stringResource | ||
import androidx.hilt.navigation.compose.hiltViewModel | ||
import androidx.navigation.NavHostController | ||
import app.opass.ccip.android.ui.components.TopAppBar | ||
import app.opass.ccip.android.ui.navigation.Screen | ||
|
||
@Composable | ||
fun Screen.Ticket.TicketScreen( | ||
navHostController: NavHostController, | ||
viewModel: TicketViewModel = hiltViewModel() | ||
) { | ||
Scaffold( | ||
modifier = Modifier.fillMaxSize(), | ||
topBar = { | ||
TopAppBar( | ||
title = stringResource(this.title), | ||
navHostController = navHostController | ||
) | ||
} | ||
) { paddingValues -> | ||
Column(modifier = Modifier.padding(paddingValues)) { } | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
androidApp/src/main/java/app/opass/ccip/android/ui/screens/ticket/TicketViewModel.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package app.opass.ccip.android.ui.screens.ticket | ||
|
||
import androidx.lifecycle.ViewModel | ||
import app.opass.ccip.helpers.PortalHelper | ||
import dagger.hilt.android.lifecycle.HiltViewModel | ||
import javax.inject.Inject | ||
|
||
@HiltViewModel | ||
class TicketViewModel @Inject constructor( | ||
private val portalHelper: PortalHelper | ||
): ViewModel() { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters