Skip to content

Instantly share code, notes, and snippets.

@alin-turcu
Last active July 13, 2020 16:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alin-turcu/90d16d33f8022fc8ef1cd79e5cabbeaa to your computer and use it in GitHub Desktop.
Save alin-turcu/90d16d33f8022fc8ef1cd79e5cabbeaa to your computer and use it in GitHub Desktop.
My card Flutter
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
backgroundColor: Colors.teal,
body: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Text(
'Alin',
style: TextStyle(
fontSize: 40.0,
color: Colors.white,
fontWeight: FontWeight.bold,
),
),
FlatButton(
color: Colors.red,
onPressed: () {
/*do something*/
},
child: Text(
"Press me",
),
),
]),
),
);
}
export default function App() {
return (
<div className="App" style={{backgroundColor: "lightblue"}}>
<p style={{
color: "white",
fontSize: 40.0,
fontWeight: "bold"}}>Alin</p>
<button style={{
color: "red"}}
onClick={doSomething}>Press me</button>
</div>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment