Search code snippets, questions, articles...

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",
          ),
        ),
      )
    ],
  );
}
Best JSON Validator, JSON Tree Viewer, JSON Beautifier at same place.
Was this helpful?
0 Comments