HMTextInput constructor

const HMTextInput({
  1. Key? key,
  2. required dynamic placeholder,
  3. dynamic controller,
  4. dynamic maxLines = 1,
  5. dynamic prefixIcon,
  6. dynamic grey = false,
})

Text input following HarmonyOS Design Language

Replaces TextField in Material Design.

Implementation

const HMTextInput(
    {Key? key,
    required this.placeholder,
    this.controller,
    this.maxLines = 1,
    this.prefixIcon,
    this.grey = false})
    : super(key: key);