EN VI

flutter ClipRect has no borderRadius property?

2024-03-13 18:30:10
How to flutter ClipRect has no borderRadius property

Every example of ClipRect has it followed by the borderRadius property. This for some reason does not exist for me:

compiler

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: SafeArea(
          child: Column(
            children: <Widget>[
              ClipRect(
                borderRadius: BorderRadius.circular(5.0),
                child: Container(
                  height: 50,
                  width: 50,
                  color: Colors.blueAccent,
                ),
              ),
            ],
          )
      ),
    );
  }

You can see here as well it does not autosuggest any properties when you start typing "a" or "b" and the first properties that get suggested start with "c":

nothing for b

something for c

Solution:

I think you are looking for ClipRRect which has borderRadius property.

Answer

Login


Forgot Your Password?

Create Account


Lost your password? Please enter your email address. You will receive a link to create a new password.

Reset Password

Back to login