Created
January 8, 2024 19:00
-
-
Save mohn93/a00ef6cca7b3d28c644e7861340a0a52 to your computer and use it in GitHub Desktop.
Lecture 3 Lab
This file contains hidden or 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( | |
MaterialApp( | |
home: Scaffold( | |
appBar: AppBar( | |
title: Text('Hello World'), | |
), | |
body: Column( | |
children: [ | |
Container( | |
margin: const EdgeInsets.only(left: 16,right: 16,bottom: 16), | |
decoration: BoxDecoration( | |
color: Colors.grey.shade200, | |
borderRadius: BorderRadius.circular(6), | |
), | |
child: Row( | |
children: [ | |
Icon( | |
Icons.person, | |
size: 74, | |
), | |
SizedBox(width: 16), | |
Text( | |
'Title', | |
style: TextStyle( | |
fontSize: 30, | |
), | |
), | |
], | |
), | |
), Container( | |
margin: const EdgeInsets.symmetric( | |
horizontal: 16, | |
vertical: 8, | |
), | |
decoration: BoxDecoration( | |
color: Colors.grey.shade200, | |
borderRadius: BorderRadius.circular(6), | |
), | |
child: Row( | |
children: [ | |
Icon( | |
Icons.person, | |
size: 74, | |
), | |
SizedBox(width: 16), | |
Text( | |
'Title', | |
style: TextStyle( | |
fontSize: 30, | |
), | |
), | |
], | |
), | |
), | |
], | |
), | |
), | |
), | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment