Skip to content

Instantly share code, notes, and snippets.

View jogboms's full-sized avatar
💙
Building Awesome w/ Dart & Flutter

Jeremiah Ogbomo jogboms

💙
Building Awesome w/ Dart & Flutter
View GitHub Profile
@Piinks
Piinks / main.dart
Last active January 18, 2024 21:24
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';
@jogboms
jogboms / !Pods.md
Last active October 19, 2023 20:52
Re-implementing Riverpod
@jogboms
jogboms / main.dart
Last active September 4, 2022 11:35
Parallax Header
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
void main() => runApp(
const MaterialApp(
debugShowCheckedModeBanner: false,
home: ParallaxHeaderDemo(),
),
);
@jogboms
jogboms / README.md
Created August 25, 2022 12:56 — forked from lopspower/README.md
Hexadecimal color code for transparency

Hexadecimal color code for transparency

Twitter

How to set transparency with hex value ?

For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.

Download This sample on Google Play Store

@jogboms
jogboms / README.md
Last active August 21, 2023 05:44
Flutter guild presentation - Demo examples
@sma
sma / terminal-flutter.md
Last active December 12, 2021 16:31
For fun, I wrote a Flutter-like framework for command line applications

Terminal Flutter

For fun, I recreated a subset of Flutter that is enough to build a tiny Minesweeper application for the terminal.

Here is how it looks:

+----------------------+
|Minesweeper       3/12|
| |
@sma
sma / _gui.md
Created November 29, 2021 14:14
A tutorial for Dart on how to create a GUI from scratch that runs in a HTML canvas

Canvas GUI

So you want to create a GUI from scratch using HTML canvas?

Colors

Let's start with an abstraction for ARGB color values:

class Color {
@sma
sma / flag.dart
Last active January 16, 2022 19:05
A Flag widget to display flags (doesn't work on Dart Pad)
import 'package:flutter/material.dart';
final Color darkBlue = Color.fromARGB(255, 18, 32, 47);
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
@slightfoot
slightfoot / bubble_effect.dart
Created March 18, 2021 00:42
3D Style Bubble Magnifying Effect - by Simon Lightfoot and Wilson Wilson @wilsonowilson - 18/03/2021
// MIT License
//
// Copyright (c) 2021 Simon Lightfoot
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
@sma
sma / hyper.dart
Created February 28, 2021 08:58
a proof of concept micro web framework inspired by an older version of Jorge Bucaran's hyperapp
import 'dart:async';
import 'dart:html';
/// [H] is what you'd call a virtual DOM node, representing HTML elements.
///
/// You call it with a tag name that optionally contains one or more class
/// names prefixed by `.` and/or an ID prefixed by `#`. If you pass a `Map`,
/// it is used as properties. If you pass other objects, they are used as
/// children. `List` objects are flattened, `null` values are ignored, other
/// [H] instances are taken literally, everything else is converted into