A borderRadius can only be given for uniform borders.

2024-05-29 00:48

本文主要是介绍A borderRadius can only be given for uniform borders.,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

在Container中使用decoration属性时报出的异常信息:

The following assertion was thrown during paint():
A borderRadius can only be given for uniform borders.
'package:flutter/src/painting/box_border.dart':
Failed assertion: line 510 pos 12: 'borderRadius == null'
Either the assertion indicates an error in the framework itself, or we should provide substantially
more information in this error message to help you determine and fix the underlying cause.

 

错误代码是这样的:

错误的原因也非常明确,A borderRadius can only be given for uniform borders.

中文意思就是:边界半径只能用于统一的边界。

所以推测是不是给定的border不统一呢,所以做如下修改:

再次运行代码,完美解决。

除了上面的解决方法,也可以不指定border,或borderRadius

这篇关于A borderRadius can only be given for uniform borders.的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/1012172

相关文章

关于No resource found that matches the given name 'Theme.AppCompat.Light' No resource found that ma

关于No resource found that matches the given name  'Theme.AppCompat.Light' No resource found that matches the given name   'android:Widget.Material.ActionButton.CloseMode'. 我的上一遍文章 http://blog.csdn.net

概率论 --- Uva 11181 Probability|Given

Uva 11181 Probability|Given  Problem's Link:   http://acm.hust.edu.cn/vjudge/problem/viewProblem.action?id=18546   Mean:  n个人去逛超市,第i个人会购买东西的概率是Pi。出超市以后发现有r个人买了东西,问你每个人购买东西的实际概率是多少。   analyse

flutter RenderConstrainedBox object was given an infinite size during layout.

问题原因  sliapp 加上的 动态设置高度 问题 去掉 就行了 SliverToBoxAdapter(child: SizedBox(height: _getSliverToBox().toDouble()),),

leetcode 902. Numbers At Most N Given Digit Set

题目链接 Given an array of digits which is sorted in non-decreasing order. You can write numbers using each digits[i] as many times as we want. For example, if digits = ['1','3','5'], we may write number

DESUtils 加解密时 Given final block not properly padded bug小记

事情的经过是这个样子的。。。。。。 先说说问题是怎么出现的。根据客户需求,需要完成一个一键登录的功能,于是我的项目中就诞生了DesUtil,但是经过上百次用户测试,发现有一个用户登录就一直报错!难道又遇到神坑啦!!发火 让我们先看看源代码,干货来了! package com.kwp.main.util.security;import java.io.IOException;import

问题解决:Given NMToken for application : appattempt_xxx is not valid for current node manager

文章目录 问题场景问题环境问题原因解决方案结果总结随缘求赞 问题场景 登录服务器,使用hive -f test.sql命令,启动了统计脚本。但是,经过了SQL校验通过之后,启动就报错了。登录Hadoop控制台,点开了自己的应用,发现了以下报错提示: 问题环境 软件版本CDH5.15.1Hive1.1.0Centos7 问题原因 从报错提示,我们可以看到,现在的任务在某个

JBOSS启动报错Given parent is not an ancestor of this virt

环境:JBOSS AS 7、 Linux、JDK1.7 报错信息: 2017-07-13 10:07:16,764 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC00001: Failed to start service jboss.deployment.unit."voc.war".STRUCTURE: org

numpy.random.uniform、np.random.choice

numpy.random.uniform介绍: 函数原型:  numpy.random.uniform(low,high,size) 功能:从一个均匀分布[low,high)中随机采样,注意定义域是左闭右开,即包含low,不包含high. 参数介绍:           low: 采样下界,float类型,默认值为0;     high: 采样上界,float类型,默认值为1;     si

Exception_android_No resource found that matches the given name...

如果在刚够构建Android Studio项目的时候,运行发现,出现没找到资源的错误!找不到com.android.support/appcompat-v7/23.0.1/res/values-v23/values-v23.xml [html]  view plain copy /路径/app/build/intermediates/exploded-aar/co

ValueError: some of the strides of a given numpy array are negative. This is currently not supported

ValueError: some of the strides of a given numpy array are negative. This is currently not supported, but will be added in future releases. Pytorch0.4 问题: ValueError: some of the strides of a given n