showTopFloatingWidget method
FloatingPanel
showTopFloatingWidget({
- required BuildContext context,
- required Widget contentView,
- EdgeInsetsGeometry? margin,
- Color? backgroundColor,
显示顶部浮动组件
context
widget context
contentView
组件视图
margin
外边距
Implementation
FloatingPanel showTopFloatingWidget(
{required BuildContext context,
required Widget contentView,
EdgeInsetsGeometry? margin,
Color? backgroundColor}) {
var floatingPanel = FloatingPanel();
floatingPanel.show(context, contentView, margin: margin, backgroundColor: backgroundColor);
return floatingPanel;
}