How to increase the width of the code line in Android studio?

I solved this issue by changing Settings->Editor -> Code style -> Dart -> Wrapping and braces (tab) -> changed Hard wrap to 150


FOR MAC OS:

Android Studio -> Preferences -> Editor -> Code Style -> Dart -> Line length: int


I'm not sure how to change the settings, maybe with an Android Studio plugin, but as described in the Dart docs you should avoid lines with more than 80 characters of code. Try to structure your code a bit then you have more overview instead of squeezing everything in one method, widget or whatever together

Link to Dart docs