flutter

Textfield in rows

Widget _buildUI() {
  return Row(
    children: [
      Flexible(
        child: new TextField(
          decoration: InputDecoration(
            labelText: "First Name",
          ),
        ),
      ),
      Flexible(
        child: new TextField(
          decoration: InputDecoration(
            labelText: "Last Name",
          ),
        ),
      )
    ],
  );
}
Was this helpful?