小编ben*_*ten的帖子

如何在flutter中从右到左制作图片动画

如何在颤振中制作这种类型的动画?

我附上了一个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)

animation slider flutter

2
推荐指数
1
解决办法
306
查看次数

'package:flushbar/flushbar_route.dart':断言失败:第 308 行 pos 18:'overlayEntries.isEmpty':不是 true

我正在使用这个库..但是我收到了这个错误

  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)

flutter

1
推荐指数
1
解决办法
1750
查看次数

标签 统计

flutter ×2

animation ×1

slider ×1