Skip to content

Commit

Permalink
New fund option
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentiu-git committed Jun 21, 2022
1 parent 0d0efdb commit 70f0d44
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,13 @@ import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.platform.LocalClipboardManager
import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.platform.LocalUriHandler
import androidx.compose.ui.text.AnnotatedString
import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.text.style.TextAlign
import androidx.compose.ui.text.style.TextDecoration
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp

@Composable
fun DonationScreen() {
Expand Down Expand Up @@ -111,5 +116,17 @@ fun DonationScreen() {
colors = TextFieldDefaults.textFieldColors(unfocusedIndicatorColor = Color.Transparent)
)
}
val uriHandler = LocalUriHandler.current
Text(
text = "Ko-Fi", modifier = Modifier
.clickable {
uriHandler.openUri("https://ko-fi.com/rldjl")
}
.fillMaxWidth(),
textAlign = TextAlign.Center,
color = Color.Cyan,
style = TextStyle(textDecoration = TextDecoration.Underline),
fontSize = 18.sp
)
}
}

0 comments on commit 70f0d44

Please sign in to comment.