flutter 上拉影藏头部动画
小白
2019-09-20
【原创文章】
new CustomScrollView( physics: new BouncingScrollPhysics(), // 需要使用 slivers 才可以 slivers:[ // 头部内容 new SliverAppBar( // 高度 expandedHeight: 256.0, pinned: true, floating: !true, snap: !true, flexibleSpace: new FlexibleSpaceBar( // 标题 title: Text('标题'), centerTitle: true, // 背景图 background: new Image.network( 'http://img.anfone.net/Outside/anfone/201666/2016661523021277.jpg', fit: BoxFit.cover, ), ), ), // 列表内容 new SliverList( delegate: new SliverChildBuilderDelegate((ctx, index) { return new Text('item: $index'); }, childCount: this.count), ), ],)
最新发布

- 视频截取封面 =php-ffmpeg/php-ffmpeg!
- 常用实例2023-5-10!
- 富文本 塞入mysql 报错: General error: 1366 Incorrect string value: ‘\xF0\x9F\x98\x84‘ for column ‘content‘!
- 百度地图拖拽获取地址实例!
- php使用smtp鉴权方式发送邮件 插件PHPMailer!
- 有道翻译接口对接!
- tp5循环插入百万数据模块不存在:error!
- git 切换仓库版本!
- PHP通过OpenSSL生成证书、密钥并且加密解密数据,以及公钥,私钥和数字签名的理解!
- 微信支付jsapi v3支付实例!
最热排行
