Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

card in flutter

body: SingleChildScrollView(
      child: Container(
        color: Colors.black,
        height: 200.0,
        width: double.infinity,
        child: Row(
          children: <Widget>[
            Expanded(
              child: Column(
                mainAxisAlignment: MainAxisAlignment.center,
                children: <Widget>[
                  Expanded(
                    child: Container(
                      color: Colors.yellow,
                      height: 100.0,
                      width: double.infinity,
                      child: Text(
                          'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500'),
                    ),
                  ),
                  Container(
                    color: Colors.green,
                    height: 50.0,
                    width: double.infinity,
                    child: Column(
                      mainAxisAlignment: MainAxisAlignment.start,
                      crossAxisAlignment: CrossAxisAlignment.start,
                      children: <Widget>[
                        Text('Your date'),
                        Text('Your Category')
                      ],
                    ),
                  )
                ],
              ),
            ),
            Container(
              color: Colors.red,
              height: double.infinity,
              width: 150.0,
              child: Image.network("https://thumbs.dreamstime.com/b/funny-face-baby-27701492.jpg",
                fit: BoxFit.fill

              ),
            ),
          ],
        ),
      ),
    ),
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #card #flutter
ADD COMMENT
Topic
Name
9+2 =