Skip to content

Instantly share code, notes, and snippets.

@baeharam
Last active July 13, 2018 03:43
Show Gist options
  • Save baeharam/1ba0b8b4bb3f237bdf999aa0a740f6a9 to your computer and use it in GitHub Desktop.
Save baeharam/1ba0b8b4bb3f237bdf999aa0a740f6a9 to your computer and use it in GitHub Desktop.
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