Skip to content

TechStroke

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

  • Flutter
  • C++
  • About Us

Siddhant Badola

How to add asset image in Flutter

On February 23, 2023February 23, 2023 by Siddhant Badola

In this article I will tell you step by step how to add an asset image in Flutter.

How to change package name or app name in Flutter.

On February 23, 2023February 23, 2023 by Siddhant Badola

First, to change the app name, we have to simply go to AndroidManifest.xml file in the android folder and look for the android:label=”<app name>” property and change the name as per requirement. To change the package name, go to the app level Build.gradle and we...

How to restrict to number only keypad in Flutter.

On July 29, 2022July 29, 2022 by Siddhant Badola

To restrict only numeric input keyboard we have to provide a single line of code in our TextField. It’s a parameter by the name of keyboardType: and we enter an enum of TextInputType. The complete code is given below:- We will get a numeric keyboard...

How to create Toast/Snackbar in Flutter.

On July 5, 2021July 5, 2021 by Siddhant Badola

Officially, Snackbars are the implementation of Toast messages in Flutter. Thus, we will show you how to create Snackbars in Flutter. Creating a Snackbar is simple in Flutter. Just like Navigation, we will require a ScaffoldState and we will use this to create the Snackbar....

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 show Progress Indicator for Async tasks in Flutter

On July 28, 2020March 31, 2021 by Siddhant Badola

Today, we will be learning how to show the Progress Indicator while async tasks are performed in Flutter. Many times we require the progress indicator widget to show the user that a task is being performed, this makes sure the user does not get confused...

How to convert String to List in Flutter

On July 26, 2020February 20, 2021 by Siddhant Badola

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

How to disable a button in Flutter.

On June 25, 2020March 31, 2021 by Siddhant Badola

To disable a Button in Flutter, we can simply give the onpressed: parameter a null value. This will disable the button. Something like this will work:- But our button will be of no use like this. Instead, a better approach is to create a helper...

Posts navigation

1 2 Next

Recent Comments

    Categories

    • C++
    • Flutter
    • MySQL
    Copyright © TechStroke