CodePudding user response:
Do not use a toggle widget, according to the design the best widget to use is TabBar, which by default applies a border only at the bottom, you can also change the color of it:
indicatorColor: Colors.red,
Here is some resources about TabBar widget: