androidx.compose.material3
ComposeMaterial3FlagsSince 1.11Experimental
Object
No hand-written docs yet.
The object holding the feature flags.
object ComposeMaterial3Flags
Properties
isCheckboxStylingFixEnabled
val isCheckboxStylingFixEnabled: Boolean
When the flag is true, the Checkbox will use Material Design 3 styling, including updated colors and container sizing. When false, it uses older Material Design 2 styling. See the Material Design 2 Checkboxes Specs and the Material Design 3 Checkboxes Specs.
isSnackbarStylingFixEnabled
val isSnackbarStylingFixEnabled: Boolean
When this flag is true, the Snackbar component will use an updated layout implementation that correctly handles vertical alignment for multi-line text.
isPrecisionPointerComponentSizingEnabled
val isPrecisionPointerComponentSizingEnabled: Boolean
When this flag is true and a precision pointer is present, components are resized accordingly
isAnchoredDraggableComponentsStrictOffsetCheckEnabled
val isAnchoredDraggableComponentsStrictOffsetCheckEnabled: Boolean
This flag affects Material3 components that use androidx.compose.foundation.gestures.anchoredDraggable. Those are: BottomSheetScaffold, ModalBottomSheet, SwipeToDismissBox and WideNavigationRail.
isAnchoredDraggableComponentsInvalidationFixEnabled
val isAnchoredDraggableComponentsInvalidationFixEnabled: Boolean
This flag affects Material3 components that use androidx.compose.foundation.gestures.anchoredDraggable. Those are: BottomSheetScaffold, ModalBottomSheet, SwipeToDismissBox and WideNavigationRail.
isBottomSheetPartiallyExpandedDeterministicEnabledSince 1.12
val isBottomSheetPartiallyExpandedDeterministicEnabled: Boolean
This flag affects BottomSheet and ModalBottomSheet.
isUpdatedTimepickerToggleEnabledSince 1.12
val isUpdatedTimepickerToggleEnabled: Boolean
This flag affects TimePicker.
Library docs
The object holding the feature flags.
Developers can enable or disable experimental or migration-based features by modifying the boolean values within this object. These flags are considered temporary. They are expected to be removed and should not be relied upon as permanent configuration.
Usage:
class MyApplication : Application() {
override fun onCreate() {
ComposeMaterial3Flags.someFeatureEnabled = true
super.onCreate()
}
}