Skip to content

Instantly share code, notes, and snippets.

@baeharam baeharam/card.dart
Last active Jul 13, 2018

Embed
What would you like to do?
card
import 'package:flutter/material.dart';
void main() => runApp(MaterialApp(home: MyApp()));
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text("Card"),
centerTitle: true,
backgroundColor: Colors.deepOrangeAccent,
),
body: Center(
child: Card(
elevation: 10.0,
margin: const EdgeInsets.all(10.0),
shape: StadiumBorder(),
color: Colors.lightBlue,
child: Column(
mainAxisSize: MainAxisSize.min,
children: <Widget>[
const ListTile(
contentPadding: const EdgeInsets.only(left: 20.0, top: 30.0),
leading: const Icon(Icons.album),
title: const Text(
"빨간 맛",
style: TextStyle(fontSize: 20.0),
),
subtitle: const Text("- 레드벨벳"),
),
ButtonBar(
children: <Widget>[
FlatButton(
child: const Text(
"티켓 사기",
style: TextStyle(color: Colors.white),
),
onPressed: () {},
),
FlatButton(
child:
const Text("듣기", style: TextStyle(color: Colors.white)),
onPressed: () {},
)
],
)
],
),
),
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.