showTopFloatingWidget method

FloatingPanel showTopFloatingWidget({
  1. required BuildContext context,
  2. required Widget contentView,
  3. EdgeInsetsGeometry? margin,
  4. 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;
}