Пример #1
0
        Widget _buildTopAssetsRow(BuildContext context, string title)
        {
            var testCard = new AssetCard(
                "AI Template",
                "INVECTOR",
                45.0f,
                36.0f,
                true,
                "https://d2ujflorbtfzji.cloudfront.net/key-image/46dc65c1-f605-4ccb-97e0-3d60b28cfdfe.jpg"
                );

            return(new Container(
                       margin: EdgeInsets.only(left: 98),
                       child: new Column(
                           children: new List <Widget> {
                new Container(
                    child: new Container(
                        margin: EdgeInsets.only(top: 50, bottom: 20),
                        child: new Row(
                            crossAxisAlignment: CrossAxisAlignment.baseline,
                            children: new List <Widget> {
                    new Container(
                        child: new Text(
                            title,
                            style: new TextStyle(
                                fontSize: 24,
                                color: CLColors.black
                                )
                            )
                        ),
                    new Container(
                        margin: EdgeInsets.only(left: 15),
                        child:
                        new Text(
                            "See More",
                            style: new TextStyle(
                                fontSize: 16,
                                color: CLColors.text4
                                )
                            )
                        )
                })
                        )
                    ),
                new Row(
                    children: new List <Widget> {
                    testCard,
                    testCard,
                    testCard,
                    testCard,
                    testCard,
                    testCard
                }
                    )
            }
                           )));
        }
Пример #2
0
        Widget _buildTopAssetsRow(BuildContext context, string title)
        {
            var testCard = new AssetCard(
                "AI Template",
                "INVECTOR",
                45.0f,
                36.0f,
                true,
                "https://assetstorev1-prd-cdn.unity3d.com/key-image/76a549ae-de17-4536-bd96-4231ed20dece.jpg"
                );

            return(new Container(
                       margin: EdgeInsets.only(left: 98),
                       child: new Column(
                           children: new List <Widget> {
                new Container(
                    child: new Container(
                        margin: EdgeInsets.only(top: 50, bottom: 20),
                        child: new Row(
                            crossAxisAlignment: CrossAxisAlignment.baseline,
                            children: new List <Widget> {
                    new Container(
                        child: new Text(
                            title,
                            style: new TextStyle(
                                fontSize: 24,
                                color: CLColors.black
                                )
                            )
                        ),
                    new Container(
                        margin: EdgeInsets.only(left: 15),
                        child:
                        new Text(
                            "See More",
                            style: new TextStyle(
                                fontSize: 16,
                                color: CLColors.text4
                                )
                            )
                        )
                })
                        )
                    ),
                new Row(
                    children: new List <Widget> {
                    testCard,
                    testCard,
                    testCard,
                    testCard,
                    testCard,
                    testCard
                }
                    )
            }
                           )));
        }