Search
 
SCRIPT & CODE EXAMPLE
 

DART

how to add cards in flutter

Container(

      width: 300,
      height: 100,
      child: Card(
        shape: RoundedRectangleBorder(
        borderRadius: BorderRadius.circular(15.0),

        ),
        color: Colors.lightBlueAccent.withOpacity(0.5),

      ),
    );
Comment

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

              ),
            ),
          ],
        ),
      ),
    ),
Comment

PREVIOUS NEXT
Code Example
Dart :: flutter snackbar top 
Dart :: dart const constructor 
Dart :: flutter appbar hide 
Dart :: dart class 
Dart :: alternate of string class in dart, stringBuffer dart, string buffer dart, string buffer,stringbuffer,stringBuffer 
Dart :: how to change the shape of a buton in flutter to cicular 
Dart :: flutter Scaffold.of() called with a context that does not contain a Scaffold 
Dart :: flutter api service example 
Dart :: flutter color 
Dart :: if else dart example 
Dart :: dart array remove 
Dart :: change color of container on tap flutter 
Dart :: Modal overlay in flutter 
Dart :: how to create random gradient in flutter 
Dart :: flutter increment decrement widget 
Dart :: install fvm in flutter using pub package 
Dart :: Dart simple program 
Dart :: flutter add external icons 
Dart :: flutter sizedbo 
Dart :: flutter how to load a future function in main function 
Dart :: flutter column stackov 
Dart :: limited box flutter 
Dart :: flutter raised button shadow 
Swift :: set image width and height swiftui 
Swift :: get device name swift 
Swift :: swift convert string to ns muteable string 
Swift :: limit log file size swift 
Swift :: Fetch structure from userdefaults ios swift 
Swift :: swift date plus1 day 
Swift :: swift create a method who can return result or throw an error 
ADD CONTENT
Topic
Content
Source link
Name
1+6 =