flutter

Form with Rows and icons

Widget getUIWidget() {
  return Row(
    children: [
      Flexible(
        child: new TextField(
          decoration: InputDecoration(
            prefixIcon: Icon(Icons.print),
            labelText: "First Name",
          ),
        ),
      ),
      SizedBox(width: 10.0),
      Flexible(
        child: new TextField(
          decoration: InputDecoration(
            prefixIcon: Icon(Icons.email),
            labelText: "Last Name",
          ),
        ),
      )
    ],
  );
}
Was this helpful?