Let’s design a widget to display the usual “3 out of 5 stars” rating.
A segmented control is an iOS specific UI element that basically is a horizontal row of radio buttons. Material Design defines toggle button groups which work similar but have a different visual appearance.