Reputation: 43
does anyone how I can put the Container()
next to the Text()
? because if I do it like in the current code the two things are on top of each other. If anyone knows how to fix this comment please.
title:Column(
children: [
Container(
margin: EdgeInsets.fromLTRB(0,0,0,0),
width: 40,
height: 40,
decoration: BoxDecoration(
border: Border.all(
width: 3,
color: Theme.of(context).scaffoldBackgroundColor
),
boxShadow: [BoxShadow(
spreadRadius: 2, blurRadius: 10,
color: Colors.white.withOpacity(0.1),
offset: Offset(0,10),
),
],
shape: BoxShape.circle,
image: DecorationImage(
fit: BoxFit.cover,
image: NetworkImage("https://www.senertec.de/wp-content/uploads/2020/04/blank-profile-picture-973460_1280.png"),
)
),
),
Text(widget.userName,
style: TextStyle(
color: Colors.white,
fontFamily: 'Orbitron',
fontSize: 20.0,
fontWeight: FontWeight.bold,
),),
],
),
Upvotes: 0
Views: 70