Skip to content

Instantly share code, notes, and snippets.

View DavidIbrahim's full-sized avatar
🏠
Working from home

David DavidIbrahim

🏠
Working from home
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 April 17, 2024 13:32
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