Skip to content

Instantly share code, notes, and snippets.

View CoderNamedHendrick's full-sized avatar
🥷

Sebastine Odeh CoderNamedHendrick

🥷
View GitHub Profile
class FineButton extends StatefulWidget {
const FineButton({super.key, this.onTap, this.label = 'label'});
final VoidCallback? onTap;
final String label;
@override
State<FineButton> createState() => _FineButtonState();
}
class CustomAmountKeyboard extends StatefulWidget {
const CustomAmountKeyboard({Key? key}) : super(key: key);
@override
State<CustomAmountKeyboard> createState() => _CustomAmountKeyboardState();
}
class _CustomAmountKeyboardState extends State<CustomAmountKeyboard> {
late final FocusNode focusNode;
late final TextEditingController controller;
@CoderNamedHendrick
CoderNamedHendrick / gist:13442233ad7dbe3e7914aa454c10af2e
Created August 12, 2023 16:50 — forked from psayre23/gist:c30a821239f4818b0709
Runtime Complexity of Java Collections
Below are the Big O performance of common functions of different Java Collections.
List | Add | Remove | Get | Contains | Next | Data Structure
---------------------|------|--------|------|----------|------|---------------
ArrayList | O(1) | O(n) | O(1) | O(n) | O(1) | Array
LinkedList | O(1) | O(1) | O(n) | O(n) | O(1) | Linked List
CopyOnWriteArrayList | O(n) | O(n) | O(1) | O(n) | O(1) | Array
@CoderNamedHendrick
CoderNamedHendrick / banks.json
Last active April 8, 2026 10:56 — forked from LordGhostX/banks.json
List of Nigerian Banks and Codes
{
"9 payment service Bank": "120001",
"AB MICROFINANCE BANK": "090270",
"ABBEY MORTGAGE BANK": "070010",
"ABOVE ONLY MICROFINANCE BANK": "090260",
"ABU MICROFINANCE BANK": "090197",
"ACCESS BANK": "000014",
"ACCESSMONEY": "100013",
"ACCION MFB": "090134",
"ADDOSSER MFBB": "090160",
@CoderNamedHendrick
CoderNamedHendrick / AppDelegate.swift
Last active March 9, 2024 17:41
Flutter to native communication via declarative UI toolkits article codesnippets
import UIKit
import SwiftUI
import Flutter
typealias FlutterResult = (Result<String, Error>) -> Void
@UIApplicationMain
@objc class AppDelegate: FlutterAppDelegate, NativeMobileHostApi {
private var navigationController: DelegateViewController? = nil
@CoderNamedHendrick
CoderNamedHendrick / biometrics_implementation.dart
Last active April 11, 2024 12:06
Clean Biometrics implementation
import 'package:flutter/services.dart';
import 'package:local_auth/error_codes.dart' as auth_error;
import 'package:local_auth/local_auth.dart' as local_auth;
class BiometricsService implements BiometricsInterface {
const BiometricsService();
static final _auth = local_auth.LocalAuthentication();
@CoderNamedHendrick
CoderNamedHendrick / countdown_indicator.dart
Created November 23, 2023 18:36
Customisable circular countdown
import 'package:flutter/material.dart';
import 'dart:math';
class CountdownOTPWidget extends StatefulWidget {
const CountdownOTPWidget({
super.key,
required this.countDownDurationInMinutes,
this.children = const [],
this.progressColor,
this.progressBackgroundColor,
@CoderNamedHendrick
CoderNamedHendrick / example.dart
Last active December 14, 2023 08:42
Animate animate animate
/// Example Usage
class MyWidget extends StatefulWidget {
const MyWidget({super.key});
@override
State<MyWidget> createState() => _MyWidgetState();
}
class _MyWidgetState extends State<MyWidget> {
double _progress = 1;
@CoderNamedHendrick
CoderNamedHendrick / interaction_inactivity.dart
Created January 9, 2024 14:03
Interaction inactivity widget
import 'package:flutter/material.dart';
/// Widget which determines users inactivity by listening for touch actions, best used at the root(MaterialApp)
/// of your project.
/// Inactivity duration is the duration to listen for
/// onNoActiveInteraction is callback to perform action when the app hasn't been interacted with
/// for [inactivityDuration].
class InteractionInactivityWidget extends StatefulWidget {
const InteractionInactivityWidget({
super.key,
@CoderNamedHendrick
CoderNamedHendrick / example.dart
Last active January 19, 2024 08:02
A simple toast messaging service
import 'package:flutter/material.dart';
import 'package:notification_poc/toast_notification.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatefulWidget {
const MyApp({super.key});