Im-Kevin / cool_ui

用flutter实现一些我认为好看的UI控件,有Popover,仿Weui的Toast,自定义键盘
Apache License 2.0
460 stars 74 forks source link

真机上CupertinoPopover圆角会无效 #35

Closed ghost closed 4 years ago

ghost commented 4 years ago

安卓机型 (华为P30Pro) image

苹果机型(iphone11ProMax) image

issue-label-bot[bot] commented 4 years ago

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.86. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

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

Im-Kevin commented 4 years ago

虚拟机会不会

Im-Kevin commented 4 years ago

请贴一下属性代码

ghost commented 4 years ago

请贴一下属性代码

大概代码为:

CupertinoPopoverButton(
        popoverHeight: 205.0,
        popoverWidth: 150.0,
        child: Container(
          width: 60,
          padding: EdgeInsets.only(top: 2),
          child: Icon(CupertinoIcons.plus_circled),
        ),
        popoverBuild: (BuildContext context) {
          return CupertinoPopoverMenuList(
            children: <Widget>[
              CupertinoPopoverMenuItem(
                leading: Container(
                  child: Icon(CupertinoIcons.conversation_bubble,
                      color: Colors.black, size: 26),
                  padding: EdgeInsets.only(left: 10),
                ),
                child: Container(
                  height: 45.0,
                  alignment: Alignment.centerLeft,
                  padding: EdgeInsets.only(left: 10),
                  child: Text(
                    "发起群聊",
                    style: TextStyle(color: Colors.black),
                  ),
                ),
              ),
              CupertinoPopoverMenuItem(
                  leading: Container(
                    child: Icon(
                      CupertinoIcons.plus_circled,
                      color: Colors.black,
                      size: 26,
                    ),
                    padding: EdgeInsets.only(left: 10),
                  ),
                  child: Container(
                    height: 45.0,
                    alignment: Alignment.centerLeft,
                    padding: EdgeInsets.only(left: 10),
                    child: Text(
                      "添加朋友",
                      style: TextStyle(color: Colors.black),
                    ),
                  )),
              CupertinoPopoverMenuItem(
                leading: Container(
                  child: Icon(
                    Icons.add,
                    color: Colors.black,
                  ),
                  padding: EdgeInsets.only(left: 10),
                ),
                child: Container(
                  height: 45.0,
                  alignment: Alignment.centerLeft,
                  padding: EdgeInsets.only(left: 10),
                  child: Text(
                    "联系客服",
                    style: TextStyle(color: Colors.black),
                  ),
                ),
              ),
              CupertinoPopoverMenuItem(
                leading: Container(
                  child: Icon(
                    Icons.add,
                    color: Colors.black,
                  ),
                  padding: EdgeInsets.only(left: 10),
                ),
                child: Container(
                  height: 45.0,
                  alignment: Alignment.centerLeft,
                  padding: EdgeInsets.only(left: 10),
                  child: Text(
                    "扫一扫",
                    style: TextStyle(color: Colors.black),
                  ),
                ),
              ),
            ],
          );
        });
ghost commented 4 years ago

虚拟机会不会

在安卓机子上直接出现无圆角, 苹果机器上多点几次就出现了 AS自带的模拟器打开也是会出现无圆角的情况! 在xcode模拟器里面是不会出现的! image

image

Im-Kevin commented 4 years ago

问题已修复,请更新最新版本