Skip to content

Instantly share code, notes, and snippets.

View quetool's full-sized avatar
🟠
Bitcoin is freedom 🦔

Alfreedom quetool

🟠
Bitcoin is freedom 🦔
View GitHub Profile
@quetool
quetool / web3modal_example.dart
Last active November 28, 2023 17:22
WalletConnect's Web3Modal Example on personal_sign
import 'package:flutter/material.dart';
import 'package:web3modal_flutter/web3modal_flutter.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatefulWidget {
const MyApp({super.key});
// EMVCoParser Dart translation from https://github.com/wardaLyns/EMVCoParser
class EMVCoParser {
static final int length = 2;
String emvcoQrValue;
int tag, subTag;
bool hasSubTag;
EMVCoParser(String emvcoQrValue, int tag) {
@quetool
quetool / long_press_up.dart
Last active March 6, 2020 18:23
(Missing feature) Flutter onLongPressUp emulation
// Currently Flutter (0.8.2) doesn't provide an onLongPressUp method in GestureDetector as you can see here https://github.com/flutter/flutter/pull/18949
// So I came up with this solution
import 'package:flutter/rendering.dart';
import 'package:flutter/widgets.dart';
class LongPressUp extends SingleChildRenderObjectWidget {
final VoidCallback _callback;
LongPressUp(this._callback);