如何将我的TextFormField后缀图标中的CircularProgressIndicator缩小?

huangapple go评论118阅读模式
英文:

I have a CircularProgressIndicator in my TextFormField's suffix icon. How to make it smaller?

问题

我在TextFormField的后缀图标中有一个CircularProgressIndicator,我想要让它变小。

我的代码:

TextFormField(
  
  decoration: InputDecoration(
    
    suffixIcon: const SizedBox(
      height: 10,
      width: 10,
      child: CircularProgressIndicator(),
    ),
  ),
),

我尝试了上面的代码,但它没有起作用。

英文:

I have a CircularProgressIndicator in my TextFormField's suffix icon. I want to make it smaller.

My code:

TextFormField(
  …
  decoration: InputDecoration(
    …
    suffixIcon: const SizedBox(
      height: 10,
      width: 10,
      child: CircularProgressIndicator(),
    ),
  ),
),

I tried the code above but it didn't work.

答案1

得分: 1

使用Suffix而不是SuffixIcon

英文:

Use Suffix instead of SuffixIcon

huangapple
  • 本文由 发表于 2023年3月8日 15:32:50
  • 转载请务必保留本文链接:https://go.coder-hub.com/75670347.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定