Skip to content

Instantly share code, notes, and snippets.

View Norbert515's full-sized avatar
😃

Norbert Kozsir Norbert515

😃
View GitHub Profile
@Norbert515
Norbert515 / login1.dart
Created July 26, 2018 07:57
columns inside columns
child: Column(
children: <Widget>[
Flexible(
flex: 4,
child: new Column(
children: <Widget>[
// Your children ..
],
),
),
@Norbert515
Norbert515 / fade_route.dart
Created November 13, 2018 22:27
A route which fades the page in.
import 'package:flutter/material.dart';
/// Navigator.of(context).push(FadeRoute(
/// builder: (context) {
/// return NewPage();
/// }
/// ));
class FadeRoute extends PageRoute {
FadeRoute({@required this.builder});
@Norbert515
Norbert515 / signatures.dart
Created November 15, 2018 22:00
workshop signatures
import 'package:flutter/material.dart';
import 'package:meta/meta.dart';
class Task {
Task(this.done, this.text);
final String text;
final bool done;
}
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter/foundation.dart'
show debugDefaultTargetPlatformOverride;
class TodoModel {
String title;
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter/foundation.dart'
show debugDefaultTargetPlatformOverride;
class TodoModel {
String title;
import 'package:flutter/rendering.dart';
import 'package:flutter/widgets.dart';
class MyCenter extends SingleChildRenderObjectWidget {
MyCenter({Key key, Widget child}): super(key: key, child: child);
@Norbert515
Norbert515 / ssh-deploy-key-wrapper.sh
Last active October 31, 2020 07:21 — forked from mpdude/ssh-deploy-key-wrapper.sh
Wrapper around `ssh` to pick the right one from several GitHub deploy keys
#!/bin/bash
# The last argument is the command to be executed on the remote end, which is something
# like "git-upload-pack 'webfactory/ssh-agent.git'". We need the repo path only, so we
# loop over this last argument to get the last part of if.
for last in ${!#}; do :; done
"I STARTED RUNNING" >> /home/runner/work/log.txt
$last >> /home/runner/work/log.txt
@Norbert515
Norbert515 / main.dart
Created May 27, 2021 14:19
Framecrate screenshot template
import 'dart:html';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
import 'dart:js';
import 'dart:ui' as ui;
Widget buildShowcaseWidget(BuildContext context) {
// TODO return an instance of your widget here
// Once your done, hit run and 'Screenshot & Publish'
/*
Problem statement:
Coming up with an easy to use and understand architecture, where the naming of 'things' makes inherent sense.
My basic architecture:
top_level:
Norbert Kozsir
Funkerstraße 33
7762276137 Karlsruhe
Germany
Contact: kozsir.norbert(at)gmail.com