ArcaneResizable.splitView constructor

ArcaneResizable.splitView({
  1. required Widget top,
  2. required Widget bottom,
  3. double topSize = 50,
  4. double topMinSize = 20,
  5. double topMaxSize = 80,
  6. Key? key,
})

Implementation

factory ArcaneResizable.splitView({
  required Widget top,
  required Widget bottom,
  double topSize = 50,
  double topMinSize = 20,
  double topMaxSize = 80,
  Key? key,
}) {
  return ArcaneResizable(
    key: key,
    direction: ResizeDirection.vertical,
    panels: [
      ResizablePanelData(
        child: top,
        defaultSize: topSize,
        minSize: topMinSize,
        maxSize: topMaxSize,
      ),
      ResizablePanelData(child: bottom),
    ],
  );
}