Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Flutter Developer | Contra Costa Co. CA

Keith D Commiskey KDCinfo

💭
Flutter Developer | Contra Costa Co. CA
View GitHub Profile
@KDCinfo
KDCinfo / dart_null_safe_map_key.dart
Created September 16, 2021 06:47
Dart (/Flutter): A null safe approach to convert a dynamic List inside a Map into a List of Strings.
View dart_null_safe_map_key.dart
void main() {
/// I got the below working as a null safe approach used to
/// convert a `dynamic` List inside a Map, such as one received
/// and json.decoded from an API endpoint, into a List of `String`s.
///
/// If anyone knows if anything is incorrect or can be done better, please comment.
/// Always looking to learn proper methodologies and better approaches.
/// Two scenarios: A key exists in a Map, or it doesn't (is null).
///
@KDCinfo
KDCinfo / main.dart
Last active May 2, 2021 09:07
Find differences between two Lists with Dart | Flutter
View main.dart
///
/// Find differences between two Lists with Dart | Flutter
///
/// DartPad: https://dartpad.dev/3b4d345e76d8c7dd3f0f571bdefcdfdb
///
void main() {
List<double> _current = [1, 2, 3, 4, 7]; // [1,2,3,4, 7]
List<double> _new = [3, 5, 6, 7, 9, 10]; // [ 3, 5,6,7,9,10]
@KDCinfo
KDCinfo / flutter_dragtarget_hover.dart
Created January 28, 2021 20:46
Flutter: Draggable and DragTarget Annotated
View flutter_dragtarget_hover.dart
import 'package:flutter/material.dart';
/// Inspiration for how the DragTarget hovering works goes to:
/// Stack Overflow A: https://stackoverflow.com/a/53981607/638153
/// Stack Overflow Q: https://stackoverflow.com/questions/53979586/flutter-dragtarget-on-hover
final Color darkBlue = Color.fromARGB(255, 18, 32, 45);
void main() {
runApp(MyApp());
@KDCinfo
KDCinfo / provider_scope_test.dart
Last active December 4, 2020 07:33
Flutter Provider Scope for NotifyListeners() - The following code shows that Provider only listens on its own ChangeNotifier updates.
View provider_scope_test.dart
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
void main() { runApp(MaterialApp(home: TestScreen())); }
class TestScreen extends StatelessWidget {
///
/// Flutter Provider Scope for NotifyListeners()
///
/// The following code shows that Provider only listens on its own ChangeNotifier updates.
View max_height.css
.expander {
display: flex;
}
.expander__container {
width: 100%;
}
.expander__content {
position: relative;
transition: all .3s ease;
max-height: 0;
@KDCinfo
KDCinfo / README.md
Last active August 2, 2019 15:04
Simple Automated Tooltips for Form Input Fields
View README.md

Automated Tooltips for Form Input Fields

Tooltip auto-generated content is based on input placeholder content.

Source HTML

<input type='text' placeholder='Welcome home, World!'>

Expected/Generated HTML

@KDCinfo
KDCinfo / fed-migration-to-fee.md
Last active July 28, 2018 00:41
A light extract of some resources I used whilst migrating from a Front-End Developer to a Front-End Engineer throughout 2017 and 2018.
View fed-migration-to-fee.md

Migration to Front-End Engineer 2017-2018

Order of tech: From most recent, to when I began. 67 resources provided at bottom.

The following is a light extract of some resources I used whilst migrating from a Front-End Developer to a Front-End Engineer (aspiring Full-Stack) throughout 2017 and 2018.

Background: Most Front-End Developer positions now require Design experience. And because I have little aptitude for Design, I found the Engineering path goes through deeper JavaScript, frameworks, libraries, and a vast span of technologies and paradigms (the fun truly never ends).

PWA

@KDCinfo
KDCinfo / vscode.md
Last active July 28, 2018 00:21
Personal Notes: VS Code Cons and Pros wrt Sublime Text 3
View vscode.md

Pros and Cons of Visual Studio Code vs. Sublime Text 3

VS Code vs. ST3 - Overview

VS Code: A lightweight IDE

Sublime Text: A customizable code editor

@KDCinfo
KDCinfo / README.md
Created May 8, 2018 21:23
Code for: CSS Grid Changes EVERYTHING
View README.md
@KDCinfo
KDCinfo / README.md
Last active May 8, 2018 21:18
Code for: CSS Grid Layout - Rachel Andrew | February 2017
View README.md