pub fn BasicTextField(
state: Rc<RefCell<TextFieldState>>,
modifier: Modifier,
hint: impl Into<String>,
config: TextFieldConfig,
) -> ViewExpand description
State-based text field. Corresponds to Compose’s BasicTextField(state: TextFieldState, ...).
The state is managed externally and all editing is reflected in the TextFieldState
object passed to the platform runner via set_textfield_state.
§Example
ⓘ
let state = Rc::new(RefCell::new(TextFieldState::new("")));
BasicTextField(state.clone(), Modifier::new(), "Hint", TextFieldConfig {
enabled: false,
..Default::default()
})