Articles → FLUTTER AND DART → Card widget in flutter

Card widget in flutter






What is card widget?







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