Last active
January 3, 2021 16:10
-
-
Save suragch/4c41182c238af37faae6ac5d1fc9f721 to your computer and use it in GitHub Desktop.
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
import 'package:flutter/material.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
home: Scaffold( | |
appBar: AppBar(title: Text('My App')), | |
body: Row( | |
mainAxisAlignment: MainAxisAlignment.center, | |
children: <Widget>[ | |
Container( | |
padding: const EdgeInsets.all(20), | |
color: Colors.green[200], | |
child: RaisedButton( | |
child: Text('Do something'), | |
onPressed: () {}, | |
), | |
), | |
Container( | |
padding: const EdgeInsets.all(35), | |
color: Colors.blue[200], | |
child: Text('Show something'), | |
), | |
], | |
), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment