This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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); |
NewerOlder