示例#1
0
        public static Widget createRow(bool canHover = true, bool nest = false)
        {
            Widget result = new Container(width: 200, height: 60, color: Color.fromARGB(255, 255, 0, 255));

            if (canHover)
            {
                result = new HoverTrackWidget(null,
                                              result);
            }

            if (nest)
            {
                result = new Container(child: result, padding: EdgeInsets.all(40),
                                       color: Color.fromARGB(255, 255, 0, 0));
                result = new HoverTrackWidget(null,
                                              result);
            }

            return(result);
        }
示例#2
0
        public static Widget createRow(bool canHover = true, bool nest = false)
        {
            Widget result = new Container(width: 200, height: 60, color: Color.fromARGB(255, 255, 0, 255));

            if (canHover)
            {
                result = new HoverTrackWidget(null,
                                              result, "inner");
            }

            //WARNING: nested MouseTracker is not supported by the current implementation that ported from flutter
            //refer to this issue https://github.com/flutter/flutter/issues/28407 and wait Google guys fixing it

            /*
             * if (nest) {
             *  result = new Container(child: result, padding: EdgeInsets.all(40),
             *      color: Color.fromARGB(255, 255, 0, 0));
             *  result = new HoverTrackWidget(null,
             *      result, "outer");
             * }
             */

            return(result);
        }