我正在寻找这些类型的箭头。我签到了
MdIcons
,Icons
,CuppertinoIcons
。
找不到它们。这 3 个图标包不可用吗?
在哪里可以找到这些图标?
我现在求助于这些,但我真的想要胖图标
return Row(
// return Column(
children: [
IconButton(
onPressed: () {
_upVoteTapped(upVoted);
},
padding: EdgeInsets.zero,
icon: Icon(
upVoted
? CupertinoIcons.chevron_up_circle_fill
: CupertinoIcons.chevron_up_circle,
color: Colors.green,
size: 40,
),
),
Padding(
padding: const EdgeInsets.all(8.0),
child: Text(data.voteCount.toString()),
),
Container(
// color: Colors.green,
child: IconButton(
onPressed: () {
_downVoteTapped(downVoted);
},
padding: EdgeInsets.zero,
icon: Icon(
downVoted
? CupertinoIcons.chevron_down_circle_fill
: CupertinoIcons.chevron_down_circle,
color: Colors.red,
size: 40,
),
),
),
],
);
从以下位置获取 Font Awesome for Flutter:
使用方法:
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
在代码中,它是
Icon(Icons.name)
的直接替换:
FaIcon(FontAwesomeIcons.name)