Search
⚠️

decoration Error

Problem [Cannot provide both a color and a decoration]
This error appears when the user tries to use color and decoration in the same Container.
Solution 1
Move color in decoration
Container( // color: Colors.white, remove this height: 150, width: MediaQuery.of(context).size.width, decoration: BoxDecoration( color: Colors.white, // add color here borderRadius: BorderRadius.circular(20.0), ), ),
Dart
복사