Flutter run: No connected devices

Share this post

One of the first problems new Flutter users might come across is the fact that after running flutter run command an error appears saying that there are no connected devices. The error looks like this: No supported devices connected. The reason for this error is that after installing Flutter and being able to run the […]

How to implement dropdown lists in Flutter

Share this post

To use dropdown lists we can use the DropdownButton class in Flutter. DropdownButton requires a type for the items on the list. For instance, if we would have a list of Strings then we have to define that when setting up the list. The reason that the widget is called a DropdownButton and not DropdownList, […]

How to add borders to a widget in Flutter

Share this post

Adding a border to a widget is very easy in Flutter. We just need to wrap the widget in a Container and add BoxDecoration to it. Let’s say we want to make a square with blue borders all we need to do is: Which will look like this: What if the border is too “pointy” […]