While FloatingActionButton always comes in handy when making a prominent icon button, sometimes we want to customize the button to suit our needs.For this we can use RawMaterialButton to get the customization we want.An example is given below:-
How to add an image as background image in Flutter page/activity.
To add an image as background image in Flutter we can simply add the following code:- In the above code we use a Container() inside the Scaffold widget which gives us many customization options, one of which is decoration: parameter in which we will supply...
How to convert String to List in Flutter.
There are cases when we need to break down the string into smaller parts and store them individually.We can achieve this by simply passing the .split() function to the string.Syntax for this looks like:- Here <String variable> is variable of type String and <separator> is...
Type casting operators in C++
To convert an expression of a given type into another is known as type-casting. There are basically two types of type conversion: Implicit Type Conversion Explicit Type Conversion Casting operators comes under Explicit type conversion, in order to control the types of conversion between C++...
What are the best C++ books
C++ (pronounced as see plus plus) was developed by Bjarne Stroustrup as an extension to the C language in year 1979. It had undergone minor update released in 2003 (called C++03) and three major updates to the programming language (C++11, C++14 and C++17, ratified in...
How to convert int to string in C++
There are three ways possible to convert an integer to string in c++ Using std::to_string function The string function converts numerical int value to string. It takes integer value as argument and returns a string object containing the representation of numerical value as a sequence...
How to view large rows with many columns in mysql cli client
It’s hard to view long column names in mysql CLI as the screen wraps them and then instead of a table spanning horizontally , half the columns are stacked over each other , making it confusing to look at . There are two ways to...
How to use Hexadecimal color strings in Flutter.
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...
How to reverse a list in Flutter
Remember to add .toList() after reversed so that the function returns a List. Without .toList(), the function will return a Iterable. A simple example to reverse a list of integers is given below but you can use it with any List of predefined datatype.
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...