Skip to content

Instantly share code, notes, and snippets.

@mohn93
Created January 8, 2024 19: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 mohn93/a00ef6cca7b3d28c644e7861340a0a52 to your computer and use it in GitHub Desktop.
Save mohn93/a00ef6cca7b3d28c644e7861340a0a52 to your computer and use it in GitHub Desktop.
Lecture 3 Lab
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