I am trying to create a form in flutter. In which I want to keep the two text fields side by side as shown below:

[![Sample Image](https://i.stack.imgur.com/1pKgM.png)](https://i.stack.imgur.com/1pKgM.png)

I want to place **Department** and **Year of Study** field in same row as shown in picture. I am unable to do it. I have tried this using `Row` widget as shown below:

```
        Row(
            children: <Widget>[
              Column(
                children: [
                  const Padding(
                    padding: EdgeInsets.fromLTRB(0, 0, 0, 5),
                    child: Text(
                      "Department",
                      style: TextStyle(
                        color: Colors.black,
                        fontSize: 16,
                        fontFamily: "Poppins",
                        fontWeight: FontWeight.w700,
                      ),
                    ),
                  ),
                  TextFormField(
                    decoration: const InputDecoration(
                      border: OutlineInputBorder(
                          borderRadius:
                              BorderRadius.all(Radius.circular(8))),
                    ),
                  ),
                ],
              ),
              Column(
                children: [
                  const Padding(
                    padding: EdgeInsets.fromLTRB(0, 0, 0, 5),
                    child: Text(
                      "Year of Study",
                      style: TextStyle(
                        color: Colors.black,
                        fontSize: 16,
                        fontFamily: "Poppins",
                        fontWeight: FontWeight.w700,
                      ),
                    ),
                  ),
                  TextFormField(
                    decoration: const InputDecoration(
                      border: OutlineInputBorder(
                          borderRadius:
                              BorderRadius.all(Radius.circular(8))),
                    ),
                  ),
                ],
              ),

```

However, its giving me error. On searching the google I have got some idea to wrap `TextFormField` in `Flexible()` widget but that also didn't worked for me and giving me a different type of error. I have also tried to wrap in `Expanded()` but the error is still coming.