Skip to content

Instantly share code, notes, and snippets.

View NonymousMorlock's full-sized avatar
🏠
Working from home

NonymousMorlock

🏠
Working from home
View GitHub Profile
@NonymousMorlock
NonymousMorlock / main.dart
Created August 17, 2023 14:31 — forked from Piinks/main.dart
Two Dimensional Grid in Flutter
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'dart:math' as math;
import 'package:flutter/foundation.dart';
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
@NonymousMorlock
NonymousMorlock / Flutter ResponsiveDatatableSample.dart
Created May 12, 2023 18:26 — forked from naywin-programmer/Flutter ResponsiveDatatableSample.dart
To Create Responsive Datatable With Flutter Built-in Datatable
// Flutter Responsive Datatable
// Flutter Datatable Class: https://api.flutter.dev/flutter/material/DataTable-class.html
// Flutter code sample for DataTable
// This sample shows how to display a [DataTable] with three columns: name, age, and
// role. The columns are defined by three [DataColumn] objects. The table
// contains three rows of data for three example users, the data for which
// is defined by three [DataRow] objects.
//
@NonymousMorlock
NonymousMorlock / lintool.sh
Created November 17, 2022 10:30 — forked from akyunus/lintool.sh
lintool is a bash script for flutter projects to automate checks before creating a Pull Request
#!/bin/bash
#minimum code coverage value
coverage_limit=70
exit_message () {
echo "\e[1;31m 😅 Lintool failed.\n 🪛 Check the issues.\n 🐝 Run again.\e[0m"
exit 0
}

Animated SVG Avatar

Created a login form with an SVG avatar that responds to the input in the email field. Used the GSAP TweenMax library + GSAP's MorphSVG plugin for the animating.

Email validation is very simple and crude just for the purposes of getting this prototype working.

A Pen by Darin on CodePen.

License.

import 'dart:ui' as ui;
import 'package:flutter/foundation.dart';
import 'package:flutter/painting.dart';
// sample code
/*
class CornerDecorationTest extends StatefulWidget {
@override
_CornerDecorationTestState createState() => _CornerDecorationTestState();
}