最近我更新了Flutter到最新的版本,我发现了一个问题,当我尝试添加一个borderRadius时,ide指示我需要使用borderRadiusGeometry,有人知道如何修复它吗?返回容器(子:卡片(子:文本(‘${myNumbersindex}’),颜色: Colors.black,),装饰:常量对齐(颜色: Colors.black,borderRadius: BorderRadiusGeometry.lerp<<-我</ 浏览...
max(0.0, borderSide.width))); } @override Path getOuterPath(Rect rect, {TextDirection? textDirection}) { return Path()..addRRect(borderRadius.resolve(textDirection).toRRect(rect)); } @override void paintInterior(Canvas canvas, Rect rect, Paint paint, {TextDirection? textDirection}) { ...
Create a new Flutter application. Open the main.dart file and add a new TextField widget. TextField( decoration: InputDecoration( hintText: 'Enter text', border: OutlineInputBorder( borderRadius: BorderRadius.circular(10.0), ), ), ) 复制 Here, we have set the decoration property of the...
自7月起,您现在可以使用enabledBorder:
No, dropdown causes corruption, textfields are ok till first dropdown appears on form. And let's don't rush to close this one, I still believe it is Flutter bug in the end of the road, though we need to find out which part of dropdown causes it. Contributor iapicca commented Nov...
自7月起,您现在可以使用enabledBorder: