-
-
Notifications
You must be signed in to change notification settings - Fork 883
Conversation
@@ -16,20 +16,7 @@ | |||
|
|||
package app.tivi.common.compose | |||
|
|||
import androidx.compose.Composable | |||
import androidx.compose.Providers | |||
import androidx.compose.staticAmbientOf | |||
import app.tivi.util.TiviDateFormatter | |||
|
|||
val TiviDateFormatterAmbient = staticAmbientOf<TiviDateFormatter>() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a whole file for an ambient? Consider creating a ProvideDateFormatter
here similar to insets and renaming the file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From what I've seen from Adam, we shouldn't hide the APIs around ambients too much. ProvideInsets
is a bit special because it needs to observe a LiveData
, so wrapping it up makes sense to me. TiviDateFormatterAmbient
is a very simple static ambient though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/cc @adamp
No description provided.