Skip to content

Instantly share code, notes, and snippets.

@mmanflori
Created December 25, 2018 16:58
Show Gist options
  • Save mmanflori/fae2158a7db005fc64390d156a783981 to your computer and use it in GitHub Desktop.
Save mmanflori/fae2158a7db005fc64390d156a783981 to your computer and use it in GitHub Desktop.
import 'package:flutter/material.dart';
void main() {
runApp(MaterialApp(
title: "Flutter lernen",
home: Scaffold(
appBar: AppBar(
title: Text("Flutter lernen"),
),
body: flutter_lernen(),
),
));
}
class flutter_lernen extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Container(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Container(
width: 53.0,
height: 53.0,
child: Icon(
Icons.person,
size: 53.0,
),
),
Column(
children: <Widget>[
Container(
height: 27.0,
width: 158.0,
color: Colors.redAccent,
),
Container(
height: 27.0,
width: 158.0,
color: Colors.deepOrange,
)
],
),
],
),
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Container(
width: 132.0,
height: 42.0,
color: Colors.indigo,
),
Container(
width: 53.0,
height: 42.0,
color: Colors.red,
),
Container(
width: 53.0,
height: 42.0,
color: Colors.yellow,
),
],
),
],
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment