小编Bha*_*ani的帖子

参数类型“_ProfileImageState”无法分配给参数类型“TickerProvider”

主要目标是允许用户从图库/相机中选择图像,但为了使事情看起来不错,使用了一些动画并设计了整个图像拾取对话框

class _ProfileImageState extends State<ProfileImage>{

      @override

      File _image;

      //ImagePickerHandler imagePicker;

      @override
      void initState() {

        super.initState();
//initiating to start so that transition from one state to another is smooth
 
        var _controller = new AnimationController(
          vsync: this,
          duration: const Duration(milliseconds: 500),
        );


        imagePicker=new ImagePickerHandler(this.userImage(_image));


      }
Run Code Online (Sandbox Code Playgroud)

flutter animationcontroller

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

标签 统计

animationcontroller ×1

flutter ×1