예제 #1
0
 public _DraggableScrollableSheetScrollController(
     float initialScrollOffset    = 0.0f,
     string debugLabel            = null,
     _DraggableSheetExtent extent = null
     ) : base(debugLabel: debugLabel, initialScrollOffset: initialScrollOffset)
 {
     D.assert(extent != null);
     this.extent = extent;
 }
예제 #2
0
 public override void initState()
 {
     base.initState();
     _extent = new _DraggableSheetExtent(
         minExtent: widget.minChildSize,
         maxExtent: widget.maxChildSize,
         initialExtent: widget.initialChildSize,
         listener: _setExtent
         );
     _scrollController = new _DraggableScrollableSheetScrollController(extent: _extent);
 }
예제 #3
0
 public _DraggableScrollableSheetScrollPosition(
     ScrollPhysics physics        = null,
     ScrollContext context        = null,
     float initialPixels          = 0.0f,
     bool keepScrollOffset        = true,
     ScrollPosition oldPosition   = null,
     string debugLabel            = null,
     _DraggableSheetExtent extent = null
     ) : base(physics: physics,
              context: context,
              initialPixels: initialPixels,
              keepScrollOffset: keepScrollOffset,
              oldPosition: oldPosition,
              debugLabel: debugLabel)
 {
     D.assert(extent != null);
     this.extent = extent;
 }