Flutter Text 下划线

Dart 复制代码
IntrinsicWidth(
                                          child: Column(
                                            mainAxisAlignment:
                                                MainAxisAlignment.center,
                                            children: [
                                              Text(
                                                "工单名称",
                                                style: TextStyle(
                                                  overflow: TextOverflow.fade,
                                                  color: AppColors.baseColor,
                                                  fontSize: 15.sp,
                                                  // decorationStyle: TextDecorationStyle.dashed
                                                ),
                                              ),
                                              Container(
                                                margin: EdgeInsets.only(top: 1.h),
                                                height: 1.h,
                                                color: AppColors.baseColor,
                                              )
                                            ],
                                          ),
                                        ),

系统自带的下划线、 删除线

decoration :TextDecoration可在文字上 中 下方添加直线

decorationStyle :extDecorationStyle 可指定线条样式,如直线、虚线、波浪线、双实线、点线

decorationThickness :设置线条的宽度

decorationColor :设置线条的颜色

相关推荐
恋猫de小郭4 小时前
Flutter 官方 LLM 动态 UI 库 flutter_genui 发布,让 App UI 自己生成 UI
android·前端·flutter
tangweiguo030519876 小时前
FlutterActivity vs FlutterFragmentActivity:全面对比与最佳实践
android·flutter
ITKEY_6 小时前
flutter日期选择国际化支持
开发语言·javascript·flutter
农夫三拳_有点甜6 小时前
Flutter SystemChrome 完整指南
flutter
葱段6 小时前
【Flutter】TextField 监听长按菜单粘贴点击事件
android·flutter·dart
2501_919749037 小时前
flutter鸿蒙:使用flutter_local_notifications实现本地通知
flutter·华为·harmonyos
浮生若茶808816 小时前
Flutter环境搭建全攻略之-Macos环境搭建
flutter·macos
农夫三拳_有点甜21 小时前
Flutter Expanded 组件总结
flutter
火柴就是我1 天前
跟着官方demo 学flame 之 word 坐标系以及Camera的一些属性
flutter
新镜1 天前
【Flutter】drag_select_grid_view: ^0.6.2 使用
flutter