简体   繁体   English

Flutter - 我想创建自定义 TextFomrField 边框

[英]Flutter - I want to create a custom TextFomrField border

This TextFormField should have different width in different borderside这个 TextFormField 在不同的边界应该有不同的宽度

For example:例如:

  • left border = 3左边框 = 3
  • right border =1右边框 =1

How can I do that without using containers?在不使用容器的情况下如何做到这一点?

the default code is默认代码是

I just need to create a new class and extends the OutlineInputBorder and override the paint function and in canvas, i need to change to width of the line that i want with different width我只需要创建一个新的 class 并扩展 OutlineInputBorder 并覆盖油漆 function 和 canvas,我需要更改为我想要的不同宽度的线宽

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM