创建的图标上有不需要的文字

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

Unwanted text on icon

我在设计时创建了一个返回图标,但上面出现了这段文字。这段文字是什么?我该如何解决这个问题?

我的代码似乎没有错误,我在网上搜索但找不到任何结果。我不知道如何调查。

Container(
                    alignment: Alignment.center,
                    // back icon
                    height: Get.height * 0.0494,
                    width: Get.width * 0.1,
                    decoration: BoxDecoration(
                      color: const Color(0xff2a2a2a),
                      borderRadius: BorderRadius.circular(10),
                    ),
                    child: SuperTextIconButton(
                      'Back',
                      onPressed: () => Get.back(),
                      getIcon: Icons.arrow_back_ios_new,
                      buttonColor: const Color(0xff7ED550),
                    ),
                  )
flutter dart user-interface
1个回答
0
投票

我的意见是尝试用

SuperTextIconButton
包裹你的
FittedBox

Container(
                alignment: Alignment.center,
                // back icon
                height: Get.height * 0.0494,
                width: Get.width * 0.1,
                decoration: BoxDecoration(
                  color: const Color(0xff2a2a2a),
                  borderRadius: BorderRadius.circular(10),
                ),
                //edit this lines
                child: FittedBox(
                  fit: BoxFit.cover,
                  child:SuperTextIconButton(
                    'Back',
                    onPressed: () => Get.back(),
                    getIcon: Icons.arrow_back_ios_new,
                    buttonColor: const Color(0xff7ED550),
                   ),
                )
              )
© www.soinside.com 2019 - 2024. All rights reserved.