Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RefreshCallback和系统的冲突了。 #120

Closed
jendy2012 opened this issue Aug 1, 2019 · 2 comments
Closed

RefreshCallback和系统的冲突了。 #120

jendy2012 opened this issue Aug 1, 2019 · 2 comments

Comments

@jendy2012
Copy link

jendy2012 commented Aug 1, 2019

import 'package:flutter/material.dart';

Error: 'RefreshCallback' is imported from both 'package:flutter_easyrefresh/src/header/refresh_indicator.dart' and 'package:flutter/src/material/refresh_indicator.dart'.

当有空视图的时候。正常内容不显示
空视图(当不为null时,只会显示空视图)
emptyWidget

new EasyRefresh(
firstRefresh: false,
header: TaurusHeader(),
emptyWidget:new Text('测试'),
onRefresh: () {

      },
      child:
      new Column(
        children: [],
      ),
    ),

之前不是自动判断没有加载到数据或者页面加载中才会显示空视图么?
现在要自己判断?

@xuelongqy
Copy link
Owner

v2版本已经重构,请查看相应示例,文档中已经说明。由于自动判断不友好,代码不规范会出现不准确。所以修改为为null时,只会显示空视图,设置为null就不会再显示了。冲突可以使用别名或者屏蔽的方式解决,下一个版本会进行修改

@xuelongqy xuelongqy reopened this Aug 2, 2019
@xuelongqy
Copy link
Owner

v2.0.1已修复

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants