Skip to content

Instantly share code, notes, and snippets.

View brookmg's full-sized avatar
🎯
Focusing

Brook Mezgebu brookmg

🎯
Focusing
View GitHub Profile
@brookmg
brookmg / ScannerOverlay.kt
Last active February 6, 2024 07:08
Basic QR Scanner overlay for Android. Originally made by Ravi Tamada.
package com.example.app.widget // Change this to the actual packagename
import android.content.Context
import android.graphics.*
import android.util.AttributeSet
import android.util.DisplayMetrics
import android.view.ViewGroup
import androidx.core.content.ContextCompat
// import /*Package name of the app*/.R
import kotlin.math.roundToInt
@brookmg
brookmg / bottom_navigation_bar_impl.dart
Created February 5, 2019 14:21
Bottom Navigation Bar implementation for flutter that doesn't show labels under items.
// Copyright 2016 The Chromium Authors. 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:collection' show Queue;
import 'dart:math' as math;
import 'package:flutter/widgets.dart';
import 'package:flutter/material.dart';