Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Color getBg(){
- // insert code to set bg color here
- return bgColor;
- }
- (...)
- Container(
- decoration: BoxDecoration(
- color: getBg(),
- ),
- child: Image(
- image: AssetImage('assets/myImgWithTransparentBg.png'),
- ),
- ),
Add Comment
Please, Sign In to add comment