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

网站首页图片代码皋兰县建设局网站

网站首页图片代码,皋兰县建设局网站,下载app到手机,制作网页需要的技术变态需求 flutter中再满足多行文本#xff0c;文本内有多个样式#xff0c;并且多个样式可触发事件的情况#xff0c;将其中的一部分文本的下划线往下移 方式一#xff1a; 实现 使用RichText组件#xff0c;主要是看中里面的WidgetSpan可以穿child为一个widget 实现源… 变态需求  flutter中再满足多行文本文本内有多个样式并且多个样式可触发事件的情况将其中的一部分文本的下划线往下移 方式一 实现 使用RichText组件主要是看中里面的WidgetSpan可以穿child为一个widget 实现源码 Expanded(child: RichText(text: TextSpan(children: [TextSpan(text: MmStrings.confirmService,style:MmTextStyles.textRegular.copyWith(fontSize: 12.sp),recognizer: TapGestureRecognizer()..onTap () {context.readMmSignUpBloc().add(SignAgreePrivacyChangeEvent(!state.isAgreePrivacyPolicy,),);},),WidgetSpan(child: InkWell(onTap: () {MmWebUtils.launchWebUrl(${CommonConfig.instance.apiPreConfig.webUrl}${MmStrings.serviceAgreementUrl},);},child: Stack(clipBehavior: Clip.none,children: [Text(MmStrings.serviceAgreement,style: MmTextStyles.agreementStyle.copyWith(fontSize: 12.sp,decoration: TextDecoration.none,),),Positioned(left: 0,right: 0,bottom: -2,child: Container(height: 1,color: MmColors.colorAgreement,),)],),),),TextSpan(text: MmStrings.andThe,style:MmTextStyles.textRegular.copyWith(fontSize: 12.sp),),WidgetSpan(child: InkWell(onTap: () {MmWebUtils.launchWebUrl(${CommonConfig.instance.apiPreConfig.webUrl}${MmStrings.privacyPolicyUrl},);},child: Stack(clipBehavior: Clip.none,children: [Text(MmStrings.privacyPolicy,style: MmTextStyles.agreementStyle.copyWith(fontSize: 12.sp,decoration: TextDecoration.none,),),Positioned(left: 0,right: 0,bottom: -2,child: Container(height: 1,color: MmColors.colorAgreement,),)],),),),TextSpan(text: .,style:MmTextStyles.textRegular.copyWith(fontSize: 12.sp),),],),),), 上面的方式有缺点和限制如当一行文字换行就GG 但是 方式二 新思路 使用shadow具体实现很简单 设置shadow extension MmTextStyleExtension on TextStyle {TextStyle toShadowStyle({double offset -4,double thickness 3,bool hasUnderline true,}) {return this.copyWith(shadows: [Shadow(color: this.color ?? Colors.black,offset: Offset(0, offset),),],decoration: hasUnderline ? TextDecoration.underline : TextDecoration.none,decorationThickness: thickness,color: Colors.transparent,);} } 使用 Text.rich(TextSpan(children: [TextSpan(text: example example example example example example ,style: MmTextStyles.textSemiBold.toShadowStyle(hasUnderline: false),),TextSpan(text: underline underline underline underline underline underline underline ,style: MmTextStyles.textSemiBoldUnLiner.toShadowStyle(),),],),), 方式三 下面的方式过于复杂不建议 Flutter-Engine 的定制实践Text 绘制流程浅析及自定义underline的间距-CSDN博客
http://www.hkea.cn/news/14460112/

相关文章:

  • 手机网站建设最新报价企业文化墙制作
  • 黑龙江建设人员证件查询网站开发软件的应用
  • 网站设计时尚芜湖公司网站建设
  • 免费推广网站入口2023godaddy网站建设
  • 网站关键词优化报价网站会员注册系统源码
  • 教育网站开发官方网站平台有哪些
  • 安徽网站开发培训价格html网站怎么做
  • 广德做网站设计开发软件著作权证书
  • 网站 第三方登录如何进入微网站
  • 自己怎么做外贸网站空间金山做企业网站
  • 营销网站案例什么意思为拟建设的网站申请一个域名
  • 自己建网站卖东西好卖吗网页设计图片边框代码
  • 江苏网站建设联系方式河南男科医院排名榜
  • 百度多久收录一次网站民族文化网站建设的作用
  • 合肥网站建设 乐云seo从零开始网站建设下载
  • 网站建设开票单位空间设计软件
  • 南海建设局网站教育网站开发需求分析
  • 移动商城网站建设银川做网站
  • 广州网站建设 信科公司wordpress超链接
  • 苗木企业网站建设源代码 园林网站源码程序 苗圃花卉网站制作源码第一ppt网ppt模板下载免费
  • 校园微信网站模板濮阳早报
  • 注册网站手机号收验证码企业咨询公司名称大全
  • 网站建设电脑配置京东商城网上购物下载
  • 怎么做服务器网站下载链接工信部网站备案系统
  • pc端的网站设计方案网站简历模板
  • 上海wordpress建站知名的网站设计公司
  • 湛江做网站多少钱如何不用代码做网站
  • 网页设计个人网站作业设计师的免费设计软件
  • 优秀的定制网站建设公司网站主机 分为
  • 上海巨型网站建设网站建设搜索优化app推广新闻营销