Esempio n. 1
0
 public ReorderableListView(
     Key key                           = null,
     Widget header                     = null,
     List <Widget> children            = null,
     ReorderCallback onReorder         = null,
     ScrollController scrollController = null,
     Axis scrollDirection              = Axis.vertical,
     EdgeInsets padding                = null,
     bool reverse                      = false
     ) : base(key: key)
 {
     D.assert(onReorder != null);
     D.assert(children != null);
     D.assert(
         children.All((Widget w) => w.key != null),
         () => "All children of this widget must have a key."
         );
     this.header           = header;
     this.children         = children;
     this.scrollController = scrollController;
     this.scrollDirection  = scrollDirection;
     this.padding          = padding;
     this.onReorder        = onReorder;
     this.reverse          = reverse;
 }
 public _ReorderableListContent(
     Widget header,
     List <Widget> children,
     Axis scrollDirection,
     EdgeInsets padding,
     ReorderCallback onReorder
     )
 {
     this.header          = header;
     this.children        = children;
     this.scrollDirection = scrollDirection;
     this.padding         = padding;
     this.onReorder       = onReorder;
 }
Esempio n. 3
0
 public _ReorderableListContent(
     Widget header,
     List <Widget> children,
     ScrollController scrollController,
     Axis scrollDirection,
     EdgeInsets padding,
     ReorderCallback onReorder,
     bool?reverse = null
     )
 {
     this.header           = header;
     this.children         = children;
     this.scrollController = scrollController;
     this.scrollDirection  = scrollDirection;
     this.padding          = padding;
     this.onReorder        = onReorder;
     this.reverse          = reverse;
 }
 public ReorderableListView(
     Widget header             = null,
     List <Widget> children    = null,
     ReorderCallback onReorder = null,
     Axis scrollDirection      = Axis.vertical,
     EdgeInsets padding        = null
     )
 {
     D.assert(onReorder != null);
     D.assert(children != null);
     D.assert(
         children.All((Widget w) => w.key != null),
         "All children of this widget must have a key."
         );
     this.header          = header;
     this.children        = children;
     this.scrollDirection = scrollDirection;
     this.padding         = padding;
     this.onReorder       = onReorder;
 }