Property

LocalCursorBlinkEnabled

Text cursor blinking - true normal cursor behavior (interactive blink) - false never blink (always on) The default of true is the user-expected system behavior for Text editing.

Source set: Common
public val LocalCursorBlinkEnabled: ProvidableCompositionLocal<Boolean> = staticCompositionLocalOf {
    true
}

Text cursor blinking

  • true normal cursor behavior (interactive blink)
  • false never blink (always on)

The default of true is the user-expected system behavior for Text editing.

Typically you should not set false outside of screenshot tests without also providing a cursorBrush to BasicTextField to implement a custom design

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: