addWindowTo static method

void addWindowTo(
  1. BuildContext context, {
  2. required String title,
  3. required Widget body,
  4. Alignment? parentWidgetAlignment,
  5. double? minWidth,
  6. double? minHeight,
  7. double? width,
  8. double? height,
  9. double? placementPadding,
  10. double? x,
  11. double? y,
  12. Color? headerColor,
  13. Color? bodyColor,
})

Implementation

static void addWindowTo(
  BuildContext context, {
  required String title,
  required Widget body,
  Alignment? parentWidgetAlignment,
  double? minWidth,
  double? minHeight,
  double? width,
  double? height,
  double? placementPadding,
  double? x,
  double? y,
  Color? headerColor,
  Color? bodyColor,
}) {
  Provider.of<MdiController>(context, listen: false).addWindow(
    title: title,
    body: body,
    parentWidgetAlignment: parentWidgetAlignment,
    minWidth: minWidth,
    minHeight: minHeight,
    width: width,
    height: height,
    placementPadding: placementPadding,
    x: x,
    y: y,
  );
}