Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
secondsun committed Jul 20, 2023
1 parent 36e4cfe commit 1790528
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -773,6 +773,21 @@ object GlanceTheming {
}

class ExampleAppWidget2 : GlanceAppWidget() {
// [START android_compose_glance_glancetheming06]
//Remember, use the Glance imports
//import androidx.glance.material3.ColorProviders

//Example Imports from your own app
//import com.example.myapp.ui.theme.DarkColors
//import com.example.myapp.ui.theme.LightColors

object MyAppWidgetGlanceColorScheme {
val colors = ColorProviders(
light = LightColors,
dark = DarkColors
)
}
// [END android_compose_glance_glancetheming06]
// [START android_compose_glance_glancetheming02]
override suspend fun provideGlance(context: Context, id: GlanceId) {
// ...
Expand Down

0 comments on commit 1790528

Please sign in to comment.