Skip to content

Instantly share code, notes, and snippets.

View DavidIbrahim's full-sized avatar

David DavidIbrahim

View GitHub Profile
@DavidIbrahim
DavidIbrahim / CrossSlide.kt
Last active August 8, 2023 13:28
allows to switch between two layouts with a Slide in and out animation
import androidx.compose.animation.core.*
import androidx.compose.foundation.layout.Box
import androidx.compose.material.Text
import androidx.compose.runtime.*
import androidx.compose.ui.Modifier
import androidx.compose.ui.geometry.Offset
import androidx.compose.ui.graphics.graphicsLayer
import androidx.compose.ui.util.fastForEach
@DavidIbrahim
DavidIbrahim / DashedBorder.kt
Last active August 28, 2024 11:52
dashedBorder modifier for android compose
import androidx.compose.foundation.BorderStroke
/*
* Copyright 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0