By default we get the Colors widget in Flutter which comes with set of predefined material design colors like Grey,Red,Yellow etc. But oftentimes we require custom colors in the UI of our app. We can use the Color method which contains two constructors .fromRGBO() and...
Flutter
How to reverse a list in Flutter
To reverse a list in Flutter, you can simply use a function in Dart called reversed. The syntax to reverse lists in Flutter is: Remember to add .toList() after reversed so that the function returns a List. Without .toList(), the function will return a Iterable....
How to navigate flutter pages without context
There are certain situations in flutter development when we need to navigate to another page from outside the state widget.In such cases the (BuildContext)context is not available to the programmer and this can make it difficult for the programmer to navigate to the inteded page.For...