The TabBar widget can be used to display a collection of tabs to the user in a horizontal format. The user would then select the…