Assuming that I have an ordinary container. How can I add a widget, for example, a Button to the border of my Container?
You can use Badges plugin. for example, in your case you can wrap the container with Badge and modify the position parameter which is a BadgePosition to the exact bottom and right values.
Badge(
position: BadgePosition.bottomRight(bottom: 0,right: 0),//change this to get the right location
badgeContent: YourWidgetAtTheBorder(),
child: YourContainer(),
)
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments