fule_text 0.1.1 copy "fule_text: ^0.1.1" to clipboard
fule_text: ^0.1.1 copied to clipboard

A text widget that can automatically adapt to the width of the parent widget.

FuleText #

Pub Version GitHub

一个可以自动适应父容器宽度的文本组件,主要用于解决不同机型文本超出容器的问题。

上方样例的 源码

开始 #

安装 #

该项目还在探索阶段,对外接口可能会存在较大变化,请选择好使用的版本。

在pubspec.yaml中添加依赖包

使用相对稳定的版本
fule_text: '>=0.1.1 <0.2.0'
或始终使用最新版本
fule_text: '^0.1.0'

获取依赖包

$ flutter pub get

引入 #

import 'package:fule_text/fule_text.dart';

参数 #

属性 类型 默认值 必填 说明 组件版本
text String - 内容 0.1.0
style TextStyle - 样式 0.1.0
textAlign TextAlign TextAlign.center 对齐 0.1.0
textDirection TextDirection TextDirection.ltr 方向 0.1.0
1
likes
35
pub points
0%
popularity

Publisher

verified publisherfule.tech

A text widget that can automatically adapt to the width of the parent widget.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on fule_text