Skip to content

TechStroke

Programming Tutorials – PHP/Python/C++/Java

  • Flutter
  • C++
  • About Us

flutter-ui

How to add border to a widget in Flutter

On February 20, 2021February 20, 2021 by Siddhant Badola

You can add a border to any widget in Flutter.All you have to do is to make Container widget as the parent of the target widget.The Container contains a decoration parameter which can be manipulated as per requirement.Suppose we have a Text widget like:- This...

How to create a custom round icon button similar to FloatingActionButton

On September 2, 2020February 20, 2021 by Siddhant Badola

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

On September 2, 2020February 20, 2021 by Siddhant Badola

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 use Hexadecimal color strings in Flutter.

On June 13, 2020June 13, 2020 by Siddhant Badola

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...

Recent Comments

    Categories

    • C++
    • Flutter
    • MySQL
    Copyright © TechStroke