我想为我的容器提供动画,我想将容器的大小从容器的低宽度和高度增加到它现在采用的默认大小。
Container(
decoration: BoxDecoration(
image: DecorationImage(
fit: BoxFit.cover,
colorFilter:ColorFilter.mode(Colors.pink, BlendMode.color),
image: AssetImage(
'lib/images/Alone.jpg',
),
),
borderRadius: BorderRadius.circular(10),
gradient: LinearGradient(
colors: <Color>[
Colors.yellowAccent,
Colors.blueAccent,
]
)
),
child: FlatButton(
onPressed: (){
Navigator.push(
context,
MaterialPageRoute(builder: (context)=>Alone())
);
},
child: Padding(
padding: const EdgeInsets.all(24.0),
child: Text(
'Alone',
style: TextStyle(
fontWeight: FontWeight.bold,
color: Colors.white,
fontSize: 20,
),
),
),
),
),