Generate a floating widget that sticks to the sides of the screen Usually paired with a Floating action button.
You must use a PreferredSizeWidget, if you know how to get the size of a child without showing it on screen, please raise an issue or send a PR.
Stack( children: <Widget>[ MyPage(), FloatingBubble( child: PreferredSize( child: FloatingActionButton( child: Icon(Icons.exit_to_app), heroTag: "FloatingButton", onPressed: () => Navigator.of(context).pop(), ), preferredSize: Size(64.0, 64.0), ), ) ], )
- Foreign Function Interface for interoperability with the C programming language. [...]
- HTML elements and other resources for web-based applications that need to interact with the browser and the DOM (Document Object Model). [...]
- Utility methods to efficiently manipulate typed JSInterop objects in cases where the name to call is not known at runtime. You should only use these methods when the same effect cannot be achieved with @JS annotations. These methods would be extension methods on JSObject if Dart supported extension methods.