当前位置: 首页 > news >正文

做地方网站赚钱吗化工网站建站模板下载

做地方网站赚钱吗,化工网站建站模板下载,延吉网站开发,响应式网站一般怎么设计7、Flutter banner_view 轮播图的使用 1、前言 实现轮播图#xff0c;效果如下#xff1a; 2、实现 将采用 banner_view 实现#xff1a;资源库地址 2.1、yaml 引入依赖 在 pubspec.yaml 声明需要引用的库#xff0c;执行命令 flutter packages get 进行拉取即可使用。 ba… 7、Flutter banner_view 轮播图的使用 1、前言 实现轮播图效果如下 2、实现 将采用 banner_view 实现资源库地址 2.1、yaml 引入依赖 在 pubspec.yaml 声明需要引用的库执行命令 flutter packages get 进行拉取即可使用。 banner_view: ^1.1.2   2.2、代码中引入依赖  在资源库地址下方作者提供了 banner_view 的几种展示方式。 import package:flutter/material.dart; import package:banner_view/banner_view.dart;import Pair.dart; import factory/BannerItemFactory.dart;class BannerViewPage extends StatefulWidget {override_BannerViewPageState createState() new _BannerViewPageState(); }class _BannerViewPageState extends StateBannerViewPage {overrideWidget build(BuildContext context) {return new Scaffold(body:new Container(child: new Column(children: Widget[new Container(alignment: Alignment.center,height: 200.0,child: this._bannerView0(),padding: EdgeInsets.only(bottom: 10.0),)],),),);}/*** 第一种方式*/BannerView _bannerView0() {// 盛放图片的 ListListPairString, Color param [Pair.create(https://p5.ssl.qhimg.com/dm/456_209_/t01f43c5849ef5f521a.jpg, Colors.red[500]),Pair.create(https://p.ssl.qhimg.com/t0171bb61911ebe8899.jpg, Colors.green[500]),Pair.create(https://p.ssl.qhimg.com/t01ee77978d3a95a3ae.jpg, Colors.blue[500]),];return new BannerView(BannerItemFactory.banners(param),); // return new BannerView( // BannerItemFactory.banners(param), // indicatorMargin: 10.0, // indicatorNormal: new Container( // width: 5.0, // height: 5.0, // decoration: new BoxDecoration( // color: Colors.green, // shape: BoxShape.rectangle, // ), // ), // indicatorSelected: new Container( // width: 15.0, // height: 5.0, // decoration: new BoxDecoration( // color: Colors.black, // shape: BoxShape.rectangle, // borderRadius: new BorderRadius.all( // new Radius.circular(5.0), // ), // ), // ), // indicatorBuilder: (context, indicator) { // Widget cc new Container( // padding: new EdgeInsets.symmetric(horizontal: 20.0,), // height: 44.0, // width: double.infinity, // color: Colors.grey[300], // child: indicator, // ); // return new Opacity( // opacity: 0.5, // child: cc, // ); // }, // );}/*** 第二种方式*/BannerView _bannerView() {var pre https://raw.githubusercontent.com/yangxiaoweihn/Assets/master;ListPairString, Color param [Pair.create(https://raw.githubusercontent.com/yangxiaoweihn/Assets/master/cars/car_0.jpg, Colors.red[100]),Pair.create(https://raw.githubusercontent.com/yangxiaoweihn/Assets/master/cartoons/ct_0.jpg, Colors.green[100]),Pair.create(https://raw.githubusercontent.com/yangxiaoweihn/Assets/master/pets/cat_1.jpg, Colors.blue[100]),Pair.create(https://raw.githubusercontent.com/yangxiaoweihn/Assets/master/scenery/s_1.jpg, Colors.yellow[100]),Pair.create(https://raw.githubusercontent.com/yangxiaoweihn/Assets/master/cartoons/ct_1.jpg, Colors.red[100]), // Pair.create($pre/cartoons/ct_1.jpg, Colors.red[100]),];return new BannerView(BannerItemFactory.banners(param),indicatorMargin: 10.0,indicatorNormal: new Container(width: 5.0,height: 5.0,decoration: new BoxDecoration(color: Colors.green,shape: BoxShape.rectangle,),),indicatorSelected: new Container(width: 15.0,height: 5.0,decoration: new BoxDecoration(color: Colors.black,shape: BoxShape.rectangle,borderRadius: new BorderRadius.all(new Radius.circular(5.0),),),),indicatorBuilder: (context, indicator) {Widget cc new Container(padding: new EdgeInsets.symmetric(horizontal: 20.0,),height: 44.0,width: double.infinity,color: Colors.grey[300],child: indicator,);return new Opacity(opacity: 0.5,child: cc,);},);} }   posted 2019-01-26 15:58 niceyoo 阅读(...) 评论(...) 编辑 收藏
http://wiki.neutronadmin.com/news/345582/

相关文章:

  • 网站建设 探索百度网站是什么
  • 免费建站系统开源2012r2做网站
  • 导视设计网站做库房推广哪个网站好
  • 网站标签怎么改html5 手机网站模板
  • 外贸做网站用什么qq登录网站怎么做
  • 做网站创业直播代运营收费多少
  • 做旅游地产的网站和公司下载源代码建网站
  • 上海汽车网站建设wordpress入门书籍
  • 中山火炬开发区建设局网站曲阳县做网站
  • 怎样做网站 网页七牛云域名
  • 沈阳网站建设哪里好网站空间租赁
  • 个人开网站网站建设数据库怎么传送
  • 2021手机能看的网站淮阳网站建设
  • 购物分享网站模板曹鹏wordpress建站seo视频
  • 北京官方网站网乐清网论坛
  • 企业备案网站名称怎么填邯郸市做网站建设
  • 网站类型的销售东莞市建设局网站首页
  • app软件网站建设网站设网站设计
  • 怎么用腾讯云做网站甘肃网站建设
  • 常州便宜的做网站服务高校 网站建设实施方案
  • 夸克建站系统源码下载品牌网站建设优化公司排名
  • 做网站效果头条新闻 最新消息条
  • 电商网站开发毕业设计惠阳网站建设公司
  • 自己怎么开发网站凡科网站建站教程
  • 南京网站建设公司有哪些深圳外贸网站设计
  • 电商数据分析网站公司画册模板
  • 怎么用网站源码做网站湘潭做网站口碑好磐石网络
  • 网站建设公司网站建设专业品牌深圳建设交易网站
  • 网站链接只显示到文件夹怎么做的wordpress上传主题过期
  • 昆明网站seo优化茂名企业建站程序