forked from andras-adam/virtualtag
-
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.
Merge pull request andras-adam#18 from NeoAren/edit-delete-card
Edit + delete card features
- Loading branch information
Showing
16 changed files
with
341 additions
and
117 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
33 changes: 33 additions & 0 deletions
33
app/src/main/java/com/virtualtag/app/ui/components/Dialog.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 com.virtualtag.app.ui.components | ||
|
||
import androidx.compose.foundation.shape.RoundedCornerShape | ||
import androidx.compose.material.MaterialTheme | ||
import androidx.compose.material3.AlertDialog | ||
import androidx.compose.runtime.* | ||
import androidx.compose.ui.unit.dp | ||
|
||
@Composable | ||
fun Dialog( | ||
closeDialog: (() -> Unit), | ||
title: @Composable () -> Unit, | ||
description: @Composable () -> Unit, | ||
confirmButton: @Composable () -> Unit, | ||
dismissButton: @Composable () -> Unit, | ||
) { | ||
AlertDialog( | ||
shape = RoundedCornerShape(20.dp), | ||
containerColor = MaterialTheme.colors.secondaryVariant, | ||
titleContentColor = MaterialTheme.colors.secondaryVariant, | ||
onDismissRequest = { closeDialog() }, | ||
title = { | ||
title() | ||
}, | ||
text = { | ||
description() | ||
}, | ||
confirmButton = { confirmButton() }, | ||
dismissButton = { | ||
dismissButton() | ||
} | ||
) | ||
} |
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
63 changes: 0 additions & 63 deletions
63
app/src/main/java/com/virtualtag/app/ui/components/NfcErrorDialog.kt
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.