Skip to content

Commit

Permalink
Add snippets for graphics-shape (#177)
Browse files Browse the repository at this point in the history
* Adding graphics-shape snippets [WIP]

* Adding graphics-shape snippets [WIP]

* Apply Spotless

* Adding graphics-shape snippets

* Apply Spotless

* Added custom polygon

* Apply Spotless

* Adding graphics-shape snippets

* Adding graphics-shape snippets

* Apply Spotless

* Adding graphics-shape snippets

* Apply Spotless

---------

Co-authored-by: riggaroo <[email protected]>
  • Loading branch information
riggaroo and riggaroo authored Feb 6, 2024
1 parent d9895da commit 9835516
Show file tree
Hide file tree
Showing 6 changed files with 605 additions and 4 deletions.
1 change: 1 addition & 0 deletions compose/snippets/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ dependencies {
implementation(libs.androidx.compose.ui)
implementation(libs.androidx.compose.ui.util)
implementation(libs.androidx.compose.ui.graphics)
implementation(libs.androidx.graphics.shapes)
implementation(libs.androidx.compose.ui.tooling.preview)
implementation(libs.androidx.compose.ui.viewbinding)
implementation(libs.androidx.paging.compose)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ import com.example.compose.snippets.components.ProgressIndicatorExamples
import com.example.compose.snippets.components.ScaffoldExample
import com.example.compose.snippets.components.SliderExamples
import com.example.compose.snippets.components.SwitchExamples
import com.example.compose.snippets.graphics.ApplyPolygonAsClipImage
import com.example.compose.snippets.graphics.BitmapFromComposableSnippet
import com.example.compose.snippets.graphics.BrushExamplesScreen
import com.example.compose.snippets.images.ImageExamplesScreen
Expand Down Expand Up @@ -75,6 +76,7 @@ class SnippetsActivity : ComponentActivity() {
it.route
)
}
Destination.ShapesExamples -> ApplyPolygonAsClipImage()
}
}
}
Expand Down
Loading

0 comments on commit 9835516

Please sign in to comment.