Created
February 7, 2024 17:03
-
-
Save mohn93/7b220d6de4a73a3c97e555f8eb55632e to your computer and use it in GitHub Desktop.
Lecture 3 lab 1
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(const App()); | |
} | |
class App extends StatelessWidget { | |
const App({super.key}); | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
home: Scaffold( | |
appBar: AppBar( | |
centerTitle: false, | |
title: const Text('Android Cafe'), | |
), | |
body: Column( | |
children: [ | |
Container( | |
margin: const EdgeInsets.symmetric(horizontal: 8), | |
decoration: BoxDecoration( | |
borderRadius: BorderRadius.circular(8), | |
color: Colors.purple.shade200, | |
), | |
child: Padding( | |
padding: const EdgeInsets.all(16), | |
child: Column( | |
children: [ | |
Row( | |
children: [ | |
Container( | |
decoration: BoxDecoration( | |
color: Colors.black.withOpacity(0.15), | |
shape: BoxShape.circle, | |
), | |
padding: const EdgeInsets.all(6), | |
child: const Icon( | |
Icons.star_outline, | |
size: 28, | |
), | |
), | |
const SizedBox( | |
width: 8, | |
), | |
const Text( | |
'Relationship', | |
style: TextStyle( | |
fontSize: 16, | |
fontWeight: FontWeight.bold, | |
), | |
) | |
], | |
), | |
Row( | |
children: [ | |
const Icon( | |
Icons.videocam_outlined, | |
), | |
const SizedBox( | |
width: 8, | |
), | |
const Text( | |
'24 exercises', | |
style: TextStyle( | |
fontSize: 12, | |
fontWeight: FontWeight.bold, | |
), | |
), | |
const Spacer(), | |
Container( | |
padding: const EdgeInsets.all(12), | |
decoration: BoxDecoration( | |
color: Colors.white, | |
borderRadius: BorderRadius.circular(12)), | |
child: const Icon( | |
Icons.arrow_forward_ios, | |
size: 16, | |
), | |
), | |
], | |
) | |
], | |
), | |
), | |
) | |
], | |
), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment