优化示例代码规范

This commit is contained in:
toly
2021-08-18 14:15:44 +08:00
parent 007b074c4e
commit 8a5a57f5ac
12 changed files with 70 additions and 54 deletions

View File

@@ -20,13 +20,13 @@ class TextDirectionText extends StatelessWidget {
spacing: 40,
runSpacing: 10,
children: TextDirection.values
.map((e) => Container(
.map((TextDirection direction) => Container(
width: 120,
color: Colors.cyanAccent.withAlpha(33),
height: 120 * 0.618,
child: Text(
" 张风捷特烈 toly " * 10,
textDirection: e,
textDirection: direction,
maxLines: 3,
overflow: TextOverflow.ellipsis,
),