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

网站怎样被百度收录江门关键词排名工具

网站怎样被百度收录,江门关键词排名工具,学计算机去哪个职业学校,WordPress自动发英文文章变态需求 flutter中再满足多行文本,文本内有多个样式,并且多个样式可触发事件的情况,将其中的一部分文本的下划线往下移 方式一: 实现 使用RichText组件,主要是看中里面的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.read<MmSignUpBloc>().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.dt0577.cn/news/7068.html

相关文章:

  • 潍坊外贸建站百度seo排名技术必不可少
  • 北京画册设计公司seo专业论坛
  • WordPress不支持大数据seo网络优化前景怎么样
  • 广西城乡建设厅网站百度百科官网
  • 狗狗和人做网站网站排名优化公司哪家好
  • 在那些网站上做企业宣传好百度下载并安装
  • 成都网站建设龙兵seo外包公司多吗
  • 武汉做营销型网站推广百度收录网址
  • 有九类商标可以做网站名吗网站排名优化多少钱
  • 企销客搜索引擎的优化方法有哪些
  • 网站建设保密条款2024最火的十大新闻有哪些
  • 网站除了域名还要什么用河南整站关键词排名优化软件
  • seo深度优化公司seo职业培训学校
  • 杭州网站设计工作室查关键词排名软件
  • 学做网站是什么深圳网站推广公司
  • 商城购物网站有哪些模块seo案例分析100例
  • 网站设计案例方案网站优化 福州
  • 西海岸新区城市建设局网站淘宝代运营公司排名
  • 公司做企业网站的必要性成人短期培训能学什么
  • 做模具在哪个网站找工作qq营销
  • 秦皇岛网站开发哪家好百度网盘搜索引擎盘多多
  • 工作总结及工作计划seo网站技术培训
  • b2c购物网站系统线上推广宣传方式有哪些
  • wordpress抓取新闻快速排序优化
  • 在国外网站建设邯郸今日头条最新消息
  • 西宁专业做网站百度推广关键词优化
  • 外贸人自己搭建外贸网站wordpress数字化营销
  • wordpress获取所有标签重庆seo网站收录优化
  • 在线做网站怎么做如何做网页推广
  • 公司网站建设 入账公司网站建设价格