コード例 #1
0
 public _SliverPersistentHeaderRenderObjectWidget(
     Key key = null,
     SliverPersistentHeaderDelegate layoutDelegate = null
     ) : base(key: key)
 {
     D.assert(layoutDelegate != null);
     this.layoutDelegate = layoutDelegate;
 }
コード例 #2
0
 public _SliverPersistentHeaderRenderObjectWidget(
     Key key = null,
     SliverPersistentHeaderDelegate del = null
     ) : base(key: key)
 {
     D.assert(del != null);
     this.del = del;
 }
コード例 #3
0
 public SliverPersistentHeader(
     Key key = null,
     SliverPersistentHeaderDelegate del = null,
     bool pinned   = false,
     bool floating = false
     ) : base(key: key)
 {
     D.assert(del != null);
     this.layoutDelegate = del;
     this.pinned         = pinned;
     this.floating       = floating;
 }
コード例 #4
0
        public override void update(Widget _newWidget)
        {
            base.update(_newWidget);
            _SliverPersistentHeaderRenderObjectWidget newWidget =
                _newWidget as _SliverPersistentHeaderRenderObjectWidget;
            _SliverPersistentHeaderRenderObjectWidget oldWidget   = this.widget;
            SliverPersistentHeaderDelegate            newDelegate = newWidget.layoutDelegate;
            SliverPersistentHeaderDelegate            oldDelegate = oldWidget.layoutDelegate;

            if (newDelegate != oldDelegate &&
                (newDelegate.GetType() != oldDelegate.GetType() || newDelegate.shouldRebuild(oldDelegate)))
            {
                (this.renderObject as _RenderSliverPersistentHeaderForWidgetsMixin).triggerRebuild();
            }
        }
コード例 #5
0
 public _SliverFloatingPinnedPersistentHeader(
     Key key = null,
     SliverPersistentHeaderDelegate layoutDelegate = null
     ) : base(key: key, layoutDelegate: layoutDelegate)
 {
 }
コード例 #6
0
 public abstract bool shouldRebuild(SliverPersistentHeaderDelegate oldDelegate);
コード例 #7
0
 public _SliverScrollingPersistentHeader(
     Key key = null,
     SliverPersistentHeaderDelegate layoutDelegate = null
     ) : base(key: key, layoutDelegate: layoutDelegate)
 {
 }
コード例 #8
0
 public _SliverFloatingPinnedPersistentHeader(
     Key key = null,
     SliverPersistentHeaderDelegate del = null
     ) : base(key: key, del: del)
 {
 }
コード例 #9
0
 public _SliverScrollingPersistentHeader(
     Key key = null,
     SliverPersistentHeaderDelegate del = null
     ) : base(key: key, del: del)
 {
 }