Skip to content

Instantly share code, notes, and snippets.

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

Brandon Donnelson branflake2267

🏠
Working from home
View GitHub Profile
@branflake2267
branflake2267 / main.dart
Last active June 22, 2022 02:41
Flutter fonts example use.
import 'package:flutter/material.dart';
const String words1 = "Almost before we knew it, we had left the ground.";
const String words2 = "A shining crescent far beneath the flying vessel.";
const String words3 = "A red flair silhouetted the jagged edge of a wing.";
const String words4 = "Mist enveloped the ship three hours out from port.";
void main() {
runApp(new MyApp());
}
@branflake2267
branflake2267 / InputCheckboxCell.java
Last active May 11, 2022 15:25
GXT combo with multiple checkbox for GXT 4.0.3
package com.sencha.gxt.test.client.combo_multi_checkselect4;
import com.google.gwt.cell.client.AbstractCell;
import com.google.gwt.cell.client.ValueUpdater;
import com.google.gwt.dom.client.Element;
import com.google.gwt.dom.client.InputElement;
import com.google.gwt.dom.client.NativeEvent;
import com.google.gwt.safehtml.shared.SafeHtmlBuilder;
import com.google.gwt.safehtml.shared.SafeHtmlUtils;
import com.sencha.gxt.core.client.dom.XElement;
@branflake2267
branflake2267 / README.md
Last active November 7, 2021 10:07
Froala webpack example config.

Simple Froala Webpack Project Example

This covers the basic directions to get up and running with webpack.

Configure

If you're creating your webpack configuration from scratch, these plugins will be needed.

Webpack

  • Run npm install --save-dev webpack
  • Run npm install --save-dev webpack webpack-cli
@branflake2267
branflake2267 / main.dart
Created March 27, 2018 04:37
Flutter - Passing data to the next page. Used in the youtube video.
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(
@branflake2267
branflake2267 / main.dart
Last active May 7, 2021 03:36
Flutter - Navigation Drawer Left or Right
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(
@branflake2267
branflake2267 / main.dart
Created April 16, 2018 01:18
Flutter - Using the Refresh Indicator
import 'dart:async';
import 'package:flutter/material.dart';
void main() => runApp(new MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new MaterialApp(
@branflake2267
branflake2267 / main.dart
Created April 16, 2018 04:34
Flutter - Cloud Firestore Streaming to a List
import 'package:cloud_firestore/cloud_firestore.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',
import 'package:flutter/services.dart';
class LowerCaseTextFormatter extends TextInputFormatter {
@override
TextEditingValue formatEditUpdate(TextEditingValue oldValue,
TextEditingValue newValue) {
return newValue.copyWith(text: newValue.text.toLowerCase());
}
@branflake2267
branflake2267 / main.dart
Created April 16, 2018 01:15
Flutter - Flutter - Auto Scaling the Text Size
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(
@branflake2267
branflake2267 / ElementalFileDndUploadExample.java
Created December 9, 2017 00:28
GXT & GWT Elemental 2 File Drag and Drop onto Window, with File Upload and File Download after it's dropped.
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.ui.RootPanel;
import com.sencha.gxt.core.client.dom.XElement;
import com.sencha.gxt.widget.core.client.container.FlowLayoutContainer;
import elemental2.dom.DataTransfer;
import elemental2.dom.DomGlobal;
import elemental2.dom.DragEvent;
import elemental2.dom.Element;