Articles → FLUTTER AND DART → Card Widget In Flutter

Card Widget In Flutter






What Is Card Widget?


  1. A card is a widget that has a shadow and rounded corners.
  2. A card is used to show the related information like a person and his address.

Example


import 'package:flutter/material.dart';

void main() {
    runApp(MyApp());
}

class MyApp extends StatelessWidget {
    Widget build(BuildContext context) {
        return MaterialApp(
            home: Scaffold(
                appBar: AppBar(),
                body: Container(
                    child: Card(child: Text("Address: I stay in india")),
                )));
    }
}



Output


Picture showing the output of card widget in flutter
Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Friday, August 30, 2019

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250