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

当子组件是 StatefulWidget时 滑动时 第一张会自动弹回来 #12

Open
yuantanglong opened this issue Sep 2, 2020 · 6 comments

Comments

@yuantanglong
Copy link

List cards = List.generate(
colors.length,
(int index) {
return TestPage(colors[index]);
},
);

class TestPage extends StatefulWidget {
Color color;
@OverRide
TestPageState createState() => new TestPageState(color);

TestPage(this.color);
}

class TestPageState extends State {
Color color;
TestPageState(this.color);
@OverRide
Widget build(BuildContext context) {
return Container(
alignment: Alignment.center,
decoration: BoxDecoration(
color: color,
),
);
}
}

@issue-label-bot
Copy link

Issue-Label Bot is automatically applying the label feature_request to this issue, with a confidence of 0.61. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

@yuantanglong
Copy link
Author

麻烦看下 这个问题 在线等 挺急的。。。

@xrr2016
Copy link
Collaborator

xrr2016 commented Sep 4, 2020

麻烦看下 这个问题 在线等 挺急的。。。

哈哈,我看看

@xrr2016
Copy link
Collaborator

xrr2016 commented Sep 4, 2020

麻烦看下 这个问题 在线等 挺急的。。。

哈哈,我看看

用 DartPad 弄不出来呢...等我回去用我自己的电脑看看吧 (>人<;)

@yuantanglong
Copy link
Author

麻烦看下 这个问题 在线等 挺急的。。。

哈哈,我看看

用 DartPad 弄不出来呢...等我回去用我自己的电脑看看吧 (>人<;)

好的 谢谢

@Wing-Li
Copy link

Wing-Li commented Mar 11, 2021

这个问题解决了吗?
现在还依然存在啊。

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

No branches or pull requests

3 participants