v0.3.1flutter_circular_text
一个将文本放置在弯曲圆形路径上的 Flutter 包。
177喜欢 3500近 30 天下载160Pub 分数
AndroidiOSWebmacOSWindowsLinux
Flutter 圆形文本小部件
以下为英文项目原文快照,最新内容请访问 GitHub。
Add dependency in pubspec.yaml:
dependencies:
flutter_circular_text: "^0.3.1"
Import in your project:
import 'package:flutter_circular_text/circular_text.dart';
CircularText(
children: [
TextItem(
text: Text(
"Chuck Norris".toUpperCase(),
style: TextStyle(
fontSize: 28,
color: Colors.blue,
fontWeight: FontWeight.bold,
),
),
space: 12,
startAngle: -90,
startAngleAlignment: StartAngleAlignment.center,
direction: CircularTextDirection.clockwise,
),
TextItem(
text: Text(
"top 100 Facts".toUpperCase(),
style: TextStyle(
fontSize: 20,
color: Colors.amberAccent,
fontWeight: FontWeight.bold,
),
),
space: 10,
startAngle: 90,
startAngleAlignment: StartAngleAlignment.center,
direction: CircularTextDirection.anticlockwise,
),
],
radius: 125,
position: CircularTextPosition.inside,
backgroundPaint: Paint()..color = Colors.grey.shade200,
)
example project contains single and multi text demos
Check Changelog for updates
Reporting issues and requests for new features are always welcome.
依赖清单 2 项
{"sdk":"flutter"}{"sdk":"flutter"}先按使用场景筛选,再比较项目活跃情况,最后到原始仓库核对使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗