-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Android u5 (12): in-app purchase (#36)
* Android u5 (12): in-app purchase * upgdated gradle * updated build.gradle.kts
- Loading branch information
Showing
13 changed files
with
745 additions
and
23 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
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
33 changes: 33 additions & 0 deletions
33
upvpn-android/app/src/main/kotlin/app/upvpn/upvpn/ui/components/PlanBottomSheet.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,33 @@ | ||
package app.upvpn.upvpn.ui.components | ||
|
||
import androidx.compose.foundation.layout.fillMaxHeight | ||
import androidx.compose.material3.ExperimentalMaterial3Api | ||
import androidx.compose.material3.ModalBottomSheet | ||
import androidx.compose.material3.rememberModalBottomSheetState | ||
import androidx.compose.runtime.Composable | ||
import androidx.compose.ui.Modifier | ||
import app.upvpn.upvpn.ui.screens.PlanScreen | ||
import app.upvpn.upvpn.ui.viewmodels.PlanState | ||
|
||
@OptIn(ExperimentalMaterial3Api::class) | ||
@Composable | ||
fun PlanBottomSheet( | ||
showPlanSheet: Boolean, | ||
dismissPlanSheet: () -> Unit, | ||
planState: PlanState, | ||
refresh: () -> Unit, | ||
) { | ||
val sheetState = rememberModalBottomSheetState( | ||
skipPartiallyExpanded = false, | ||
) | ||
|
||
if (showPlanSheet) { | ||
ModalBottomSheet( | ||
modifier = Modifier.fillMaxHeight(), | ||
sheetState = sheetState, | ||
onDismissRequest = dismissPlanSheet | ||
) { | ||
PlanScreen(planState, refresh, dismissPlanSheet) | ||
} | ||
} | ||
} |
Oops, something went wrong.