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

企业网站推广价格wordpress单页面网站怎么做

企业网站推广价格,wordpress单页面网站怎么做,广州网站优化专家,wordpress微信防红插件需求#xff1a;同一个页面的两个不同的入口#xff0c;同一个控件的位置有变化#xff0c;显示引导页时对应这个控件的引导内容的位置也需要改变#xff1b;同时半透明底部显示出真实的页面内容。 这样的需要如果切图然后再往页面上贴位置无法精确的对准。 思路#xff1…需求同一个页面的两个不同的入口同一个控件的位置有变化显示引导页时对应这个控件的引导内容的位置也需要改变同时半透明底部显示出真实的页面内容。 这样的需要如果切图然后再往页面上贴位置无法精确的对准。 思路先绘制一层半透明遮罩覆盖页面在需要显示的控件位置绘制为全透明然后再将引导内容绘制在遮罩上面共有三层真实页面、透明遮罩。控件对应的那些说明内容,获取控件的位置确定在哪里全透明。 入口一进入时 入口二进入时 import package:common/sp_util.dart; import package:jade/configs/CommonConfig.dart; import package:jade/configs/PathConfig.dart; import package:jade/utils/JadeColors.dart; import package/jade/utils/Utils.dart; import package:util/navigator_util.dart; import package:flutter/material.dart; import package:flutter_screenutil/flutter_screenutil.dart; /* * 引导页 * */ class SharedPurchaseGuidePage extends StatelessWidget {final double width;final double height;final Offset offset;const SharedPurchaseGuidePage({this.width,this.height,this.offset});overrideWidget build(BuildContext context) {return WillPopScope(child: Stack(children: [CustomPaint(size: Size(Utils().screenWidth(context), Utils().screenHeight(context)), // 自定义Widget的大小painter: MyCustomPainter(width,height,offset),),Positioned(left: offset.dx width,top: offset.dy,child: _leftView(context))],),onWillPop: () async false,);}_leftView(context){return Container(width: Utils().screenWidth(context) * 0.68,height: 210.w,padding: EdgeInsets.symmetric(vertical: 28.w),decoration: BoxDecoration(image: DecorationImage(image: AssetImage(PathConfig.imageSharedPurchaseGuideBg),fit: BoxFit.fill)),child: Column(crossAxisAlignment: CrossAxisAlignment.end,children: [Row(mainAxisAlignment: MainAxisAlignment.end,children: [Text(点击了解共享购,style: TextStyle(color: Colors.white,fontSize: 28.sp,fontWeight: FontWeight.w600)),SizedBox(width: 54.w),GestureDetector(child: Container(width: 100.w,height: 40.w,alignment: Alignment.center,margin: EdgeInsets.only(right: 20.w),decoration: BoxDecoration(color: Colors.white,borderRadius: BorderRadius.circular(20),),child: Text(知道了,style: TextStyle(color: JadeColors.blue,fontSize: 22.sp,fontWeight: FontWeight.w600),),),onTap: (){SpUtil.putBool(CommonConfig.havePostDetailSharedPurchaseGuide, true);NavigatorUtil.pop();},)],),Container(margin: EdgeInsets.only(right: 20.w,top: 26.w),child: Text(为促进交易本版块加入了独特的共\n享购功能与传统的团购与拼单很不\n一样欢迎体验,style: TextStyle(color: Colors.white,fontSize: 22.sp)))],),);} }class MyCustomPainter extends CustomPainter {final double width;final double height;final Offset offset;const MyCustomPainter(this.width,this.height,this.offset);overridevoid paint(Canvas canvas, Size size) {//背景Paint backgroundPaint Paint()..color Colors.black45..style PaintingStyle.fill;//添加背景一个路径Path path Path()..addRect(Rect.fromLTWH(0, 0, size.width, size.height));//留白的圆角矩形路径Path holePath Path()// ..addRect(Rect.fromLTWH(offset.dx, offset.dy, width, height));..addRRect(RRect.fromRectAndRadius(Rect.fromLTWH(offset.dx-5, offset.dy, width5, height), Radius.circular(5)));Path combinedPath Path.combine(PathOperation.difference, path, holePath);canvas.drawPath(combinedPath, backgroundPaint);}overridebool shouldRepaint(covariant CustomPainter oldDelegate) {return false; // 不需要重绘因为我们只是绘制一次并没有动画或状态更改} }GlobalKey _sharedPurchaseKey new GlobalKey(); //需要全透明的控件 Row(key: _sharedPurchaseKey,children: [Text(S.current.sharedPurchase,style: TextStyle(color: JadeColors.blue,fontSize: 24.sp,fontWeight: FontWeight.bold)),GestureDetector(child: Container(color: Colors.transparent,padding: EdgeInsets.all(4),child: Image.asset(PathConfig.iconQuestion,width: 34.w,height: 34.w),),onTap: (){NavigatorUtil.push(SharedPurchaseDesc());},),],),//获取共享购文字加问号的坐标跳转这个方法需要在页面加载完成后调用_getOffset() {if(_sharedPurchaseKey.currentContext ! null){_sharedPurchaseWidth _sharedPurchaseKey.currentContext.size.width;_sharedPurchaseHeight _sharedPurchaseKey.currentContext.size.height;_offset WidgetUtil.getWidgetLocalToGlobal(_sharedPurchaseKey.currentContext);bool sharedPurchaseGuide SpUtil.getBool(CommonConfig.havePostDetailSharedPurchaseGuide,defValue: false);if(!sharedPurchaseGuide){//跳转一个透明页面NavigatorUtil.pushTransparentRoute(SharedPurchaseGuidePage(width: _sharedPurchaseWidth,height: _sharedPurchaseHeight,offset: _offset));}}}///Get the coordinates of the widget on the screen.Widgets must be rendered completely.///获取widget在屏幕上的坐标,widget必须渲染完成static Offset getWidgetLocalToGlobal(BuildContext context) {RenderBox box context.findRenderObject();return box null ? Offset.zero : box.localToGlobal(Offset.zero);}
http://www.hkea.cn/news/14346027/

相关文章:

  • app扁平化设计网站深圳有哪些网站开发公司
  • 网站开发实训周报wordpress 数据库错误
  • ppt模板免费下载哪个网站好可以显示文章列表的wordpress主题
  • 规划建立一个网站 项目yxcms wordpress
  • 销售网站怎么做的网页设计图片与文字的研究
  • 企业网站开发需求简历表格 个人简历手机版
  • 杭州高端企业网站建设网站优化建设深圳
  • 网站优化的公司宁乡做网站地方
  • 北京个人做网站免费万能视频提取器
  • 做编程的网站有哪些内容wordpress 搭建教育
  • 网站免费做软件四川建设行业网站有哪些
  • 烟台专业网站制作公司中企动力温州分公司官网
  • 建设网站属于什么费用wordpress删除页面地址
  • wordpress成品站源码哪里可以做网站啊
  • 网站建设波斯文wordpress被刷搜索
  • 企业网站管理系统用户代做ppt的网站
  • 上海公司新能源过户个人网站如何做360优化
  • 网站过场动画做网站模板的软件
  • 怀仁有做网站的公司吗免费拓客软件排行榜
  • 莘县网站开发中升乙源建设公司网站
  • jrs直播网站谁做的做安全宣传的是什么网站
  • 辽宁城乡住房建设厅网站wordpress获取页面文章内容的代码
  • 网站源码本地演示人人设计网网址
  • 买空间服务器做网站怎么弄做网站排名公司推荐
  • 做seo网站图片怎么优化企业seo关键字优化
  • 公司网站的ftp是什么做网站图片为什么不清晰
  • 张家港建网站费用免费ppt模板下载公众号
  • 网站建设技术支持 会天下如何免费建购物网站
  • wordpress 站内搜索 慢wordpress 织梦转换
  • 宝塔设置加速wordpress站点成都网站设计开发做得好