如何在颤振中制作这种类型的动画?
我附上了一个YouTube 视频。我制作了很多动画,但没有一个能解决我现在面临的这个问题。
请导入: awesome_slider: ^0.1.0
这是我尝试过的代码:
class Submits extends StatefulWidget {
Submits({Key key}) : super(key: key);
@override
_SubmitsState createState() => _SubmitsState();
}
class _SubmitsState extends State<Submits> {
int valuess = 0;
List itemWidget = [
AnimatedContainer(
transform:Matrix4.translationValues(0, 0, 0) ,
// Use the properties stored in the State class.
key: UniqueKey(),
child: Center(
child: Padding(
padding: const EdgeInsets.fromLTRB(10,240,0,0),
),
),
width: 400,
height: 300,
decoration: BoxDecoration(
gradient: LinearGradient(colors: [Colors.red,Colors.red]),
color: Colors.blue,
),
// Define how long the …Run Code Online (Sandbox Code Playgroud) 我正在使用这个库..但是我收到了这个错误
Flushbar(
title: 'Warning',
message: "You have no Internet",
icon: Icon(
Icons.error_outline,
size: 28,
color: Colors.red,
),
leftBarIndicatorColor: Colors.blue.shade300,
duration: Duration(seconds: 3),
)..show(context);
Run Code Online (Sandbox Code Playgroud)