Skip to content

Instantly share code, notes, and snippets.

View h4p's full-sized avatar

Tobias h4p

  • Aumühle
View GitHub Profile
@h4p
h4p / bareBones.dart
Created September 16, 2020 14:10
Flutter - Bare Bones App
import 'package:flutter/widgets.dart';
main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(context) => Center(
child: Text('Hello Flutter!', textDirection: TextDirection.ltr)
);
}
@h4p
h4p / minimal_material.dart
Created September 16, 2020 14:12
Flutter - Minimal Material App
// lib/main.dart
import 'package:flutter/material.dart';
main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(context) {
return MaterialApp(
@h4p
h4p / minimal_stateful.dart
Created September 16, 2020 14:14
Flutter - Minimal Stateful App
import 'package:flutter/material.dart';
main() => runApp(MinimalStatefulApp());
class MinimalStatefulApp extends StatefulWidget {
@override
_MinimalState createState() => _MinimalState();
}
class _MinimalState extends State<MinimalStatefulApp> {
@h4p
h4p / flutter_async.dart
Created September 16, 2020 14:17
Flutter - Async Method Call
import 'package:flutter/material.dart';
void main() => runApp(MaterialApp(home: Scaffold(body: Center(child: MyWidget()))));
Future<String> callAsyncFetch() => Future.delayed(Duration(seconds: 2), () => "hi");
class MyWidget extends StatelessWidget {
@override
Widget build(context) {
return FutureBuilder<String>(
{
"meta": {
"theme": "elegant"
},
"basics": {
"name": "Tobias Wessels",
"label": "Build- and Configuration Engineer",
"image": "https://avatars.githubusercontent.com/u/5081289?s=400&u=233c05d4f73f11c8177e914de0e99c4cc625e669&v=4",
"summary": "Ich bin Software-Entwickler und interessiere mich auch dafür, Apps »zum Laufen« zu bringen. Konzepte wie Platform-as-a-service (PaaS) finde ich spannend - dennoch weiß ich gerne darüber Bescheid, was im Hintergrund passiert. Von eingebetetten Systemen, über Application-Servern bis hin zu Cloud-Lösung hatte ich schon mit einer Vielzahl an Systemen praktisch zu tun. Darüber hinaus versuche ich mich auch ganz gerne an der Gestaltung von User-Interfaces.",
"email": "[email protected]",
{
"meta": {
"theme": "elegant"
},
"basics": {
"name": "Tobias Wessels",
"label": "Build- and Configuration Engineer",
"image": "https://avatars.githubusercontent.com/u/5081289?s=400&u=233c05d4f73f11c8177e914de0e99c4cc625e669&v=4",
"summary": "Ich bin Software-Entwickler und interessiere mich auch dafür, Apps »zum Laufen« zu bringen. Konzepte wie Platform-as-a-service (PaaS) finde ich spannend - dennoch weiß ich gerne darüber Bescheid, was im Hintergrund passiert. Von eingebetetten Systemen, über Application-Servern bis hin zu Cloud-Lösung hatte ich schon mit einer Vielzahl an Systemen praktisch zu tun. Darüber hinaus versuche ich mich auch ganz gerne an der Gestaltung von User-Interfaces.",
"email": "[email protected]",
{
"meta": {
"theme": "elegant"
},
"basics": {
"name": "Tobias Wessels",
"label": "Build- and Configuration Engineer",
"image": "https://avatars.githubusercontent.com/u/5081289?s=400&u=233c05d4f73f11c8177e914de0e99c4cc625e669&v=4",
"summary": "I'm a software engineer who is also interested in running apps. Concepts like platform-as-a-service (PaaS) fascinate me - but I do like to know what is happening behind the curtain. Although I am fond with embedded systems, nowadays, my tasks more have to do with applications servers, container and cloud solutions. In my freetime I enjoy creating (somewhat) beautiful user interfaces as well.",
"email": "[email protected]",