上下颤动胖箭头

问题描述 投票:0回答:1

我正在寻找这些类型的箭头。我签到了

MdIcons
Icons
CuppertinoIcons

找不到它们。这 3 个图标包不可用吗?

enter image description here

在哪里可以找到这些图标?

我现在求助于这些,但我真的想要胖图标

 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,
            ),
          ),
        ),
      ],
    );
flutter dart icons
1个回答
0
投票

从以下位置获取 Font Awesome for Flutter:

Flutter 的 Font Awesome

使用方法:

import 'package:font_awesome_flutter/font_awesome_flutter.dart';

在代码中,它是

Icon(Icons.name)
的直接替换:

FaIcon(FontAwesomeIcons.name)
© www.soinside.com 2019 - 2024. All rights reserved.