Articles → FLUTTER AND DART → Card Widget In Flutter
Card Widget In Flutter
What Is Card Widget?
- A card is a widget that has a shadow and rounded corners.
- 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
Click to Enlarge