Created
July 13, 2020 16:00
-
-
Save alin-turcu/5dce3af950bb6b9475dc6a754cc61e3c to your computer and use it in GitHub Desktop.
My card Flutter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", | |
), | |
), | |
]), | |
), | |
); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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