Skip to content

Instantly share code, notes, and snippets.

Norbert Kozsir Norbert515

Block or report user

Report or block Norbert515

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View my_center.dart
import 'package:flutter/rendering.dart';
import 'package:flutter/widgets.dart';
class MyCenter extends SingleChildRenderObjectWidget {
MyCenter({Key key, Widget child}): super(key: key, child: child);
View gdg-devfest-final.dart
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter/foundation.dart'
show debugDefaultTargetPlatformOverride;
class TodoModel {
String title;
View gdg-devfest.dart
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter/foundation.dart'
show debugDefaultTargetPlatformOverride;
class TodoModel {
String title;
@Norbert515
Norbert515 / signatures.dart
Created Nov 15, 2018
workshop signatures
View signatures.dart
import 'package:flutter/material.dart';
import 'package:meta/meta.dart';
class Task {
Task(this.done, this.text);
final String text;
final bool done;
}
@Norbert515
Norbert515 / fade_route.dart
Created Nov 13, 2018
A route which fades the page in.
View fade_route.dart
import 'package:flutter/material.dart';
/// Navigator.of(context).push(FadeRoute(
/// builder: (context) {
/// return NewPage();
/// }
/// ));
class FadeRoute extends PageRoute {
FadeRoute({@required this.builder});
@Norbert515
Norbert515 / login1.dart
Created Jul 26, 2018
columns inside columns
View login1.dart
child: Column(
children: <Widget>[
Flexible(
flex: 4,
child: new Column(
children: <Widget>[
// Your children ..
],
),
),
@Norbert515
Norbert515 / scaffold.dart
Created Jul 21, 2018
scaffold edge inserts
View scaffold.dart
// The minimum insets for contents of the Scaffold to keep visible.
final EdgeInsets minInsets = mediaQuery.padding.copyWith(
bottom: widget.resizeToAvoidBottomPadding ? mediaQuery.viewInsets.bottom : 0.0,
);
@Norbert515
Norbert515 / implicitly_animated_count.dart
Created Jul 17, 2018
implicitly animated count example
View implicitly_animated_count.dart
import 'package:flutter/material.dart';
void main() => runApp(new MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new MaterialApp(
title: 'Flutter Demo',
theme: new ThemeData(
View repository.dart
class Repository {
static final Repository _repo = new Repository._internal();
BookDatabase database;
static Repository get() {
return _repo;
}
View utils.dart
class FadeRoute<T> extends MaterialPageRoute<T> {
FadeRoute({ WidgetBuilder builder, RouteSettings settings })
: super(builder: builder, settings: settings);
@override
Widget buildTransitions(BuildContext context,
Animation<double> animation,
Animation<double> secondaryAnimation,
Widget child) {
if (settings.isInitialRoute)
You can’t perform that action at this time.