
Enhances user interface development with composable methods, offering features like conditional modifications, state conversion, interaction filtering, and lifecycle-aware back handling to streamline UI workflows.
A set of @Composable methods that accelerate working with Compose.
This library is usually required by other GFT libraries.
@Composable
inline fun Modifier.modifyIf(
condition: Boolean,
crossinline transformation: @Composable Modifier.() -> Modifier,
): Modifier@Composable
fun <T> StateFlow<T>.toState(
minActiveState: Lifecycle.State,
lifecycle: Lifecycle = LocalLifecycleOwner.current.lifecycle,
): State<T>@Composable
fun InteractionFilter(
minActiveState: Lifecycle.State,
content: @Composable () -> Unit,
)@Composable
fun InteractionFilter(
interactionEnabled: Boolean,
content: @Composable () -> Unit,
)@Composable
fun LifecycleAwareBackHandler(
enabled: Boolean = true,
minActiveStateForEventsPropagation: Lifecycle.State = Lifecycle.State.RESUMED,
lifecycleOwner: LifecycleOwner = LocalLifecycleOwner.current,
onBack: () -> Unit,
)@Composable
fun DisableTextToolbar(
content: @Composable () -> Unit,
)fun Modifier.clearFocusOnClick(): ModifierA set of @Composable methods that accelerate working with Compose.
This library is usually required by other GFT libraries.
@Composable
inline fun Modifier.modifyIf(
condition: Boolean,
crossinline transformation: @Composable Modifier.() -> Modifier,
): Modifier@Composable
fun <T> StateFlow<T>.toState(
minActiveState: Lifecycle.State,
lifecycle: Lifecycle = LocalLifecycleOwner.current.lifecycle,
): State<T>@Composable
fun InteractionFilter(
minActiveState: Lifecycle.State,
content: @Composable () -> Unit,
)@Composable
fun InteractionFilter(
interactionEnabled: Boolean,
content: @Composable () -> Unit,
)@Composable
fun LifecycleAwareBackHandler(
enabled: Boolean = true,
minActiveStateForEventsPropagation: Lifecycle.State = Lifecycle.State.RESUMED,
lifecycleOwner: LifecycleOwner = LocalLifecycleOwner.current,
onBack: () -> Unit,
)@Composable
fun DisableTextToolbar(
content: @Composable () -> Unit,
)fun Modifier.clearFocusOnClick(): Modifier