public CustomButton(
     Key key = null,
     GestureTapCallback onPressed             = null,
     EdgeInsets padding                       = null,
     Unity.UIWidgets.ui.Color backgroundColor = null,
     Widget child = null
     ) : base(key: key)
 {
     this.onPressed       = onPressed;
     this.padding         = padding ?? EdgeInsets.all(8.0);
     this.backgroundColor = backgroundColor ?? CLColors.transparent;
     this.child           = child;
 }
Exemple #2
0
        public static UnityEngine.Color ToUnityColor(this Unity.UIWidgets.ui.Color color)
        {
            var unityColor = color.toColor();

            return(unityColor);
        }