我有一个颤振容器(紫色趋势文本),它现在位于左上角。我想知道我应该做哪些代码更改来定位容器的右下角?
Container(
height: 25.0,
width: MediaQuery.of(context).size.width * 0.25,
margin: const EdgeInsets.all(8.0),
decoration: BoxDecoration(
color: Theme.of(context).primaryColor,
borderRadius: BorderRadius.only(
topLeft: Radius.circular(12.0),
bottomRight: Radius.circular(12.0),
),
),
alignment: Alignment.center,
child: Shimmer.fromColors(
baseColor: Colors.white60,
highlightColor: Colors.white,
period: Duration(milliseconds: 1000),
child: Text(
'Trending',
maxLines: 1,
overflow: TextOverflow.ellipsis,
style: GoogleFonts.poppins(
color: Colors.white.withOpacity(0.9),
fontSize: 13.0,
fontWeight: FontWeight.w500,
),
),
),
)
目前看来