-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Android] Allow the VMDTextStyleProvider to use Composable functions (#…
…222) * Make VMDTextStyleProvider functions Composable * API build * changelog
- Loading branch information
1 parent
248e0b1
commit 3e87cd9
Showing
5 changed files
with
21 additions
and
7 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
3 changes: 3 additions & 0 deletions
3
...ain/kotlin/com/mirego/trikot/viewmodels/declarative/configuration/VMDTextStyleProvider.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 |
---|---|---|
@@ -1,12 +1,15 @@ | ||
package com.mirego.trikot.viewmodels.declarative.configuration | ||
|
||
import androidx.compose.runtime.Composable | ||
import androidx.compose.ui.text.TextStyle | ||
import com.mirego.trikot.viewmodels.declarative.properties.VMDTextStyleResource | ||
|
||
interface VMDTextStyleProvider { | ||
@Composable | ||
fun textStyleForResource(resource: VMDTextStyleResource): TextStyle? | ||
} | ||
|
||
class DefaultTextStyleProvider : VMDTextStyleProvider { | ||
@Composable | ||
override fun textStyleForResource(resource: VMDTextStyleResource): TextStyle? = null | ||
} |
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