我要使用FlutterReact按钮插件在新的我的应用程序。
但当我把React按钮,并按下图标,预览图标框显示在右侧和主视图被移动到左侧网站。1
这里是项目代码显示图片和React按钮。
class CommunicationItem extends StatefulWidget {
const CommunicationItem({@required this.communication});
final Communication communication;
@override
_CommunicationItemState createState() => _CommunicationItemState();
}
class _CommunicationItemState extends State<CommunicationItem> {
@override
Widget build(BuildContext context) {
return Card(
margin: const EdgeInsets.symmetric(horizontal: 10, vertical: 5),
elevation: 2,
child: ClipRRect(
borderRadius: const BorderRadius.all(Radius.circular(5)),
child: Column(
children: [
Image.asset('assets/images/showImage.png'),
spaceH8,
Padding(
padding: const EdgeInsets.symmetric(horizontal: 20),
child: Row(
children: [
FlutterReactionButtonCheck(
onReactionChanged: (reaction, index, isChecked) {
print('reaction selected index test: $index');
},
reactions: data.reactions,
initialReaction: data.defaultInitialReaction,
selectedReaction: data.reactions[0],
),
我知道另一个解决方案,比如这个链接。
https://githubmemory.com/repo/GeekAbdelouahed/flutter-reaction-button/issues/22
但是我不知道密码的解决方法。
请帮帮忙
V/R,
2条答案
按热度按时间xqkwcwgp1#
发生这种情况是因为CupertinoPageRoute的过渡,请尝试将页面过渡设置为无。
8ftvxx2r2#
这应该在
3.0.0
及更高版本中解决