├── .gitignore ├── .metadata ├── README.md ├── analysis_options.yaml ├── android ├── .gitignore ├── app │ ├── build.gradle │ └── src │ │ ├── debug │ │ └── AndroidManifest.xml │ │ ├── main │ │ ├── AndroidManifest.xml │ │ ├── kotlin │ │ │ └── com │ │ │ │ └── gaurav │ │ │ │ └── flutter_crypto │ │ │ │ └── MainActivity.kt │ │ └── res │ │ │ ├── drawable-v21 │ │ │ └── launch_background.xml │ │ │ ├── drawable │ │ │ └── launch_background.xml │ │ │ ├── mipmap-hdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxxhdpi │ │ │ └── ic_launcher.png │ │ │ ├── values-night │ │ │ └── styles.xml │ │ │ └── values │ │ │ └── styles.xml │ │ └── profile │ │ └── AndroidManifest.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ └── gradle-wrapper.properties └── settings.gradle ├── ios ├── .gitignore ├── Flutter │ ├── AppFrameworkInfo.plist │ ├── Debug.xcconfig │ └── Release.xcconfig ├── Podfile ├── Runner.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ ├── IDEWorkspaceChecks.plist │ │ │ └── WorkspaceSettings.xcsettings │ └── xcshareddata │ │ └── xcschemes │ │ └── Runner.xcscheme ├── Runner.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ ├── IDEWorkspaceChecks.plist │ │ └── WorkspaceSettings.xcsettings └── Runner │ ├── AppDelegate.swift │ ├── Assets.xcassets │ ├── AppIcon.appiconset │ │ ├── Contents.json │ │ ├── Icon-App-1024x1024@1x.png │ │ ├── Icon-App-20x20@1x.png │ │ ├── Icon-App-20x20@2x.png │ │ ├── Icon-App-20x20@3x.png │ │ ├── Icon-App-29x29@1x.png │ │ ├── Icon-App-29x29@2x.png │ │ ├── Icon-App-29x29@3x.png │ │ ├── Icon-App-40x40@1x.png │ │ ├── Icon-App-40x40@2x.png │ │ ├── Icon-App-40x40@3x.png │ │ ├── Icon-App-60x60@2x.png │ │ ├── Icon-App-60x60@3x.png │ │ ├── Icon-App-76x76@1x.png │ │ ├── Icon-App-76x76@2x.png │ │ └── Icon-App-83.5x83.5@2x.png │ └── LaunchImage.imageset │ │ ├── Contents.json │ │ ├── LaunchImage.png │ │ ├── LaunchImage@2x.png │ │ ├── LaunchImage@3x.png │ │ └── README.md │ ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard │ ├── Info.plist │ └── Runner-Bridging-Header.h ├── lib ├── data │ ├── ethereum_connector.dart │ └── repo │ │ └── wallet_connector.dart ├── main.dart └── presentation │ ├── home_page.dart │ └── wallet.dart ├── pubspec.lock ├── pubspec.yaml └── test └── widget_test.dart /.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | migrate_working_dir/ 12 | 13 | # IntelliJ related 14 | *.iml 15 | *.ipr 16 | *.iws 17 | .idea/ 18 | 19 | # The .vscode folder contains launch configuration and tasks you configure in 20 | # VS Code which you may wish to be included in version control, so this line 21 | # is commented out by default. 22 | #.vscode/ 23 | 24 | # Flutter/Dart/Pub related 25 | **/doc/api/ 26 | **/ios/Flutter/.last_build_id 27 | .dart_tool/ 28 | .flutter-plugins 29 | .flutter-plugins-dependencies 30 | .packages 31 | .pub-cache/ 32 | .pub/ 33 | /build/ 34 | 35 | # Symbolication related 36 | app.*.symbols 37 | 38 | # Obfuscation related 39 | app.*.map.json 40 | 41 | # Android Studio will place build artifacts here 42 | /android/app/debug 43 | /android/app/profile 44 | /android/app/release 45 | -------------------------------------------------------------------------------- /.metadata: -------------------------------------------------------------------------------- 1 | # This file tracks properties of this Flutter project. 2 | # Used by Flutter tool to assess capabilities and perform upgrades etc. 3 | # 4 | # This file should be version controlled. 5 | 6 | version: 7 | revision: ffccd96b62ee8cec7740dab303538c5fc26ac543 8 | channel: stable 9 | 10 | project_type: app 11 | 12 | # Tracks metadata for the flutter migrate command 13 | migration: 14 | platforms: 15 | - platform: root 16 | create_revision: ffccd96b62ee8cec7740dab303538c5fc26ac543 17 | base_revision: ffccd96b62ee8cec7740dab303538c5fc26ac543 18 | - platform: android 19 | create_revision: ffccd96b62ee8cec7740dab303538c5fc26ac543 20 | base_revision: ffccd96b62ee8cec7740dab303538c5fc26ac543 21 | - platform: ios 22 | create_revision: ffccd96b62ee8cec7740dab303538c5fc26ac543 23 | base_revision: ffccd96b62ee8cec7740dab303538c5fc26ac543 24 | 25 | # User provided section 26 | 27 | # List of Local paths (relative to this file) that should be 28 | # ignored by the migrate tool. 29 | # 30 | # Files that are not part of the templates will be ignored by default. 31 | unmanaged_files: 32 | - 'lib/main.dart' 33 | - 'ios/Runner.xcodeproj/project.pbxproj' 34 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # flutter_crypto 2 | 3 | 1. walletconnect_dart: 4 | 5 | WalletConnect is an open source protocol for connecting decentralised applications to mobile 6 | wallets with QR code scanning or deep linking. A user can interact securely with any Dapp from 7 | their mobile phone. 8 | 9 | 2. web3dart : 10 | A dart library that connects to interact with the Ethereum blockchain. It connects to an Ethereum 11 | node to send transactions, interact with smart contracts and much more! 12 | -------------------------------------------------------------------------------- /analysis_options.yaml: -------------------------------------------------------------------------------- 1 | # This file configures the analyzer, which statically analyzes Dart code to 2 | # check for errors, warnings, and lints. 3 | # 4 | # The issues identified by the analyzer are surfaced in the UI of Dart-enabled 5 | # IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be 6 | # invoked from the command line by running `flutter analyze`. 7 | 8 | # The following line activates a set of recommended lints for Flutter apps, 9 | # packages, and plugins designed to encourage good coding practices. 10 | include: package:flutter_lints/flutter.yaml 11 | 12 | linter: 13 | # The lint rules applied to this project can be customized in the 14 | # section below to disable rules from the `package:flutter_lints/flutter.yaml` 15 | # included above or to enable additional rules. A list of all available lints 16 | # and their documentation is published at 17 | # https://dart-lang.github.io/linter/lints/index.html. 18 | # 19 | # Instead of disabling a lint rule for the entire project in the 20 | # section below, it can also be suppressed for a single line of code 21 | # or a specific dart file by using the `// ignore: name_of_lint` and 22 | # `// ignore_for_file: name_of_lint` syntax on the line or in the file 23 | # producing the lint. 24 | rules: 25 | # avoid_print: false # Uncomment to disable the `avoid_print` rule 26 | # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule 27 | 28 | # Additional information about this file can be found at 29 | # https://dart.dev/guides/language/analysis-options 30 | -------------------------------------------------------------------------------- /android/.gitignore: -------------------------------------------------------------------------------- 1 | gradle-wrapper.jar 2 | /.gradle 3 | /captures/ 4 | /gradlew 5 | /gradlew.bat 6 | /local.properties 7 | GeneratedPluginRegistrant.java 8 | 9 | # Remember to never publicly share your keystore. 10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app 11 | key.properties 12 | **/*.keystore 13 | **/*.jks 14 | -------------------------------------------------------------------------------- /android/app/build.gradle: -------------------------------------------------------------------------------- 1 | def localProperties = new Properties() 2 | def localPropertiesFile = rootProject.file('local.properties') 3 | if (localPropertiesFile.exists()) { 4 | localPropertiesFile.withReader('UTF-8') { reader -> 5 | localProperties.load(reader) 6 | } 7 | } 8 | 9 | def flutterRoot = localProperties.getProperty('flutter.sdk') 10 | if (flutterRoot == null) { 11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") 12 | } 13 | 14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode') 15 | if (flutterVersionCode == null) { 16 | flutterVersionCode = '1' 17 | } 18 | 19 | def flutterVersionName = localProperties.getProperty('flutter.versionName') 20 | if (flutterVersionName == null) { 21 | flutterVersionName = '1.0' 22 | } 23 | 24 | apply plugin: 'com.android.application' 25 | apply plugin: 'kotlin-android' 26 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" 27 | 28 | android { 29 | compileSdkVersion 32 30 | ndkVersion flutter.ndkVersion 31 | 32 | compileOptions { 33 | sourceCompatibility JavaVersion.VERSION_1_8 34 | targetCompatibility JavaVersion.VERSION_1_8 35 | } 36 | 37 | kotlinOptions { 38 | jvmTarget = '1.8' 39 | } 40 | 41 | sourceSets { 42 | main.java.srcDirs += 'src/main/kotlin' 43 | } 44 | 45 | defaultConfig { 46 | applicationId "com.gaurav.flutter_crypto" 47 | minSdkVersion 21 48 | targetSdkVersion 33 49 | versionCode flutterVersionCode.toInteger() 50 | versionName flutterVersionName 51 | } 52 | 53 | buildTypes { 54 | release { 55 | // TODO: Add your own signing config for the release build. 56 | // Signing with the debug keys for now, so `flutter run --release` works. 57 | signingConfig signingConfigs.debug 58 | } 59 | } 60 | } 61 | 62 | flutter { 63 | source '../..' 64 | } 65 | 66 | dependencies { 67 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" 68 | } 69 | -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 9 | 17 | 21 | 24 | 25 | 26 | 27 | 28 | 29 | 31 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /android/app/src/main/kotlin/com/gaurav/flutter_crypto/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package com.gaurav.flutter_crypto 2 | 3 | import io.flutter.embedding.android.FlutterActivity 4 | 5 | class MainActivity: FlutterActivity() { 6 | } 7 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-v21/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Anonymousgaurav/flutter_blockchain_payment/ee81d1c2101194b3bbe590677c02d65f54d9cb37/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Anonymousgaurav/flutter_blockchain_payment/ee81d1c2101194b3bbe590677c02d65f54d9cb37/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Anonymousgaurav/flutter_blockchain_payment/ee81d1c2101194b3bbe590677c02d65f54d9cb37/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Anonymousgaurav/flutter_blockchain_payment/ee81d1c2101194b3bbe590677c02d65f54d9cb37/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Anonymousgaurav/flutter_blockchain_payment/ee81d1c2101194b3bbe590677c02d65f54d9cb37/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/values-night/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | ext.kotlin_version = '1.6.10' 3 | repositories { 4 | google() 5 | mavenCentral() 6 | } 7 | 8 | dependencies { 9 | classpath 'com.android.tools.build:gradle:7.1.2' 10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 11 | } 12 | } 13 | 14 | allprojects { 15 | repositories { 16 | google() 17 | mavenCentral() 18 | } 19 | } 20 | 21 | rootProject.buildDir = '../build' 22 | subprojects { 23 | project.buildDir = "${rootProject.buildDir}/${project.name}" 24 | } 25 | subprojects { 26 | project.evaluationDependsOn(':app') 27 | } 28 | 29 | task clean(type: Delete) { 30 | delete rootProject.buildDir 31 | } 32 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | android.useAndroidX=true 3 | android.enableJetifier=true 4 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | zipStoreBase=GRADLE_USER_HOME 4 | zipStorePath=wrapper/dists 5 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-all.zip 6 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | 3 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties") 4 | def properties = new Properties() 5 | 6 | assert localPropertiesFile.exists() 7 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } 8 | 9 | def flutterSdkPath = properties.getProperty("flutter.sdk") 10 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties" 11 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" 12 | -------------------------------------------------------------------------------- /ios/.gitignore: -------------------------------------------------------------------------------- 1 | **/dgph 2 | *.mode1v3 3 | *.mode2v3 4 | *.moved-aside 5 | *.pbxuser 6 | *.perspectivev3 7 | **/*sync/ 8 | .sconsign.dblite 9 | .tags* 10 | **/.vagrant/ 11 | **/DerivedData/ 12 | Icon? 13 | **/Pods/ 14 | **/.symlinks/ 15 | profile 16 | xcuserdata 17 | **/.generated/ 18 | Flutter/App.framework 19 | Flutter/Flutter.framework 20 | Flutter/Flutter.podspec 21 | Flutter/Generated.xcconfig 22 | Flutter/ephemeral/ 23 | Flutter/app.flx 24 | Flutter/app.zip 25 | Flutter/flutter_assets/ 26 | Flutter/flutter_export_environment.sh 27 | ServiceDefinitions.json 28 | Runner/GeneratedPluginRegistrant.* 29 | 30 | # Exceptions to above rules. 31 | !default.mode1v3 32 | !default.mode2v3 33 | !default.pbxuser 34 | !default.perspectivev3 35 | -------------------------------------------------------------------------------- /ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | App 9 | CFBundleIdentifier 10 | io.flutter.flutter.app 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | App 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | MinimumOSVersion 24 | 11.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /ios/Podfile: -------------------------------------------------------------------------------- 1 | # Uncomment this line to define a global platform for your project 2 | # platform :ios, '11.0' 3 | 4 | # CocoaPods analytics sends network stats synchronously affecting flutter build latency. 5 | ENV['COCOAPODS_DISABLE_STATS'] = 'true' 6 | 7 | project 'Runner', { 8 | 'Debug' => :debug, 9 | 'Profile' => :release, 10 | 'Release' => :release, 11 | } 12 | 13 | def flutter_root 14 | generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__) 15 | unless File.exist?(generated_xcode_build_settings_path) 16 | raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first" 17 | end 18 | 19 | File.foreach(generated_xcode_build_settings_path) do |line| 20 | matches = line.match(/FLUTTER_ROOT\=(.*)/) 21 | return matches[1].strip if matches 22 | end 23 | raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get" 24 | end 25 | 26 | require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) 27 | 28 | flutter_ios_podfile_setup 29 | 30 | target 'Runner' do 31 | use_frameworks! 32 | use_modular_headers! 33 | 34 | flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) 35 | end 36 | 37 | post_install do |installer| 38 | installer.pods_project.targets.each do |target| 39 | flutter_additional_ios_build_settings(target) 40 | end 41 | end 42 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 50; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 11 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 12 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; 13 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 14 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 15 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; 16 | /* End PBXBuildFile section */ 17 | 18 | /* Begin PBXCopyFilesBuildPhase section */ 19 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = { 20 | isa = PBXCopyFilesBuildPhase; 21 | buildActionMask = 2147483647; 22 | dstPath = ""; 23 | dstSubfolderSpec = 10; 24 | files = ( 25 | ); 26 | name = "Embed Frameworks"; 27 | runOnlyForDeploymentPostprocessing = 0; 28 | }; 29 | /* End PBXCopyFilesBuildPhase section */ 30 | 31 | /* Begin PBXFileReference section */ 32 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 33 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 34 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 35 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; 36 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 37 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 38 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 39 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 40 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 41 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 42 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 43 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 44 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 45 | /* End PBXFileReference section */ 46 | 47 | /* Begin PBXFrameworksBuildPhase section */ 48 | 97C146EB1CF9000F007C117D /* Frameworks */ = { 49 | isa = PBXFrameworksBuildPhase; 50 | buildActionMask = 2147483647; 51 | files = ( 52 | ); 53 | runOnlyForDeploymentPostprocessing = 0; 54 | }; 55 | /* End PBXFrameworksBuildPhase section */ 56 | 57 | /* Begin PBXGroup section */ 58 | 9740EEB11CF90186004384FC /* Flutter */ = { 59 | isa = PBXGroup; 60 | children = ( 61 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 62 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 63 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 64 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, 65 | ); 66 | name = Flutter; 67 | sourceTree = ""; 68 | }; 69 | 97C146E51CF9000F007C117D = { 70 | isa = PBXGroup; 71 | children = ( 72 | 9740EEB11CF90186004384FC /* Flutter */, 73 | 97C146F01CF9000F007C117D /* Runner */, 74 | 97C146EF1CF9000F007C117D /* Products */, 75 | ); 76 | sourceTree = ""; 77 | }; 78 | 97C146EF1CF9000F007C117D /* Products */ = { 79 | isa = PBXGroup; 80 | children = ( 81 | 97C146EE1CF9000F007C117D /* Runner.app */, 82 | ); 83 | name = Products; 84 | sourceTree = ""; 85 | }; 86 | 97C146F01CF9000F007C117D /* Runner */ = { 87 | isa = PBXGroup; 88 | children = ( 89 | 97C146FA1CF9000F007C117D /* Main.storyboard */, 90 | 97C146FD1CF9000F007C117D /* Assets.xcassets */, 91 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 92 | 97C147021CF9000F007C117D /* Info.plist */, 93 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 94 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 95 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, 96 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, 97 | ); 98 | path = Runner; 99 | sourceTree = ""; 100 | }; 101 | /* End PBXGroup section */ 102 | 103 | /* Begin PBXNativeTarget section */ 104 | 97C146ED1CF9000F007C117D /* Runner */ = { 105 | isa = PBXNativeTarget; 106 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; 107 | buildPhases = ( 108 | 9740EEB61CF901F6004384FC /* Run Script */, 109 | 97C146EA1CF9000F007C117D /* Sources */, 110 | 97C146EB1CF9000F007C117D /* Frameworks */, 111 | 97C146EC1CF9000F007C117D /* Resources */, 112 | 9705A1C41CF9048500538489 /* Embed Frameworks */, 113 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 114 | ); 115 | buildRules = ( 116 | ); 117 | dependencies = ( 118 | ); 119 | name = Runner; 120 | productName = Runner; 121 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */; 122 | productType = "com.apple.product-type.application"; 123 | }; 124 | /* End PBXNativeTarget section */ 125 | 126 | /* Begin PBXProject section */ 127 | 97C146E61CF9000F007C117D /* Project object */ = { 128 | isa = PBXProject; 129 | attributes = { 130 | LastUpgradeCheck = 1300; 131 | ORGANIZATIONNAME = ""; 132 | TargetAttributes = { 133 | 97C146ED1CF9000F007C117D = { 134 | CreatedOnToolsVersion = 7.3.1; 135 | LastSwiftMigration = 1100; 136 | }; 137 | }; 138 | }; 139 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; 140 | compatibilityVersion = "Xcode 9.3"; 141 | developmentRegion = en; 142 | hasScannedForEncodings = 0; 143 | knownRegions = ( 144 | en, 145 | Base, 146 | ); 147 | mainGroup = 97C146E51CF9000F007C117D; 148 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */; 149 | projectDirPath = ""; 150 | projectRoot = ""; 151 | targets = ( 152 | 97C146ED1CF9000F007C117D /* Runner */, 153 | ); 154 | }; 155 | /* End PBXProject section */ 156 | 157 | /* Begin PBXResourcesBuildPhase section */ 158 | 97C146EC1CF9000F007C117D /* Resources */ = { 159 | isa = PBXResourcesBuildPhase; 160 | buildActionMask = 2147483647; 161 | files = ( 162 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 163 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 164 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 165 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 166 | ); 167 | runOnlyForDeploymentPostprocessing = 0; 168 | }; 169 | /* End PBXResourcesBuildPhase section */ 170 | 171 | /* Begin PBXShellScriptBuildPhase section */ 172 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 173 | isa = PBXShellScriptBuildPhase; 174 | buildActionMask = 2147483647; 175 | files = ( 176 | ); 177 | inputPaths = ( 178 | ); 179 | name = "Thin Binary"; 180 | outputPaths = ( 181 | ); 182 | runOnlyForDeploymentPostprocessing = 0; 183 | shellPath = /bin/sh; 184 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; 185 | }; 186 | 9740EEB61CF901F6004384FC /* Run Script */ = { 187 | isa = PBXShellScriptBuildPhase; 188 | buildActionMask = 2147483647; 189 | files = ( 190 | ); 191 | inputPaths = ( 192 | ); 193 | name = "Run Script"; 194 | outputPaths = ( 195 | ); 196 | runOnlyForDeploymentPostprocessing = 0; 197 | shellPath = /bin/sh; 198 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; 199 | }; 200 | /* End PBXShellScriptBuildPhase section */ 201 | 202 | /* Begin PBXSourcesBuildPhase section */ 203 | 97C146EA1CF9000F007C117D /* Sources */ = { 204 | isa = PBXSourcesBuildPhase; 205 | buildActionMask = 2147483647; 206 | files = ( 207 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, 208 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, 209 | ); 210 | runOnlyForDeploymentPostprocessing = 0; 211 | }; 212 | /* End PBXSourcesBuildPhase section */ 213 | 214 | /* Begin PBXVariantGroup section */ 215 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = { 216 | isa = PBXVariantGroup; 217 | children = ( 218 | 97C146FB1CF9000F007C117D /* Base */, 219 | ); 220 | name = Main.storyboard; 221 | sourceTree = ""; 222 | }; 223 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { 224 | isa = PBXVariantGroup; 225 | children = ( 226 | 97C147001CF9000F007C117D /* Base */, 227 | ); 228 | name = LaunchScreen.storyboard; 229 | sourceTree = ""; 230 | }; 231 | /* End PBXVariantGroup section */ 232 | 233 | /* Begin XCBuildConfiguration section */ 234 | 249021D3217E4FDB00AE95B9 /* Profile */ = { 235 | isa = XCBuildConfiguration; 236 | buildSettings = { 237 | ALWAYS_SEARCH_USER_PATHS = NO; 238 | CLANG_ANALYZER_NONNULL = YES; 239 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 240 | CLANG_CXX_LIBRARY = "libc++"; 241 | CLANG_ENABLE_MODULES = YES; 242 | CLANG_ENABLE_OBJC_ARC = YES; 243 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 244 | CLANG_WARN_BOOL_CONVERSION = YES; 245 | CLANG_WARN_COMMA = YES; 246 | CLANG_WARN_CONSTANT_CONVERSION = YES; 247 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 248 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 249 | CLANG_WARN_EMPTY_BODY = YES; 250 | CLANG_WARN_ENUM_CONVERSION = YES; 251 | CLANG_WARN_INFINITE_RECURSION = YES; 252 | CLANG_WARN_INT_CONVERSION = YES; 253 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 254 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 255 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 256 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 257 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 258 | CLANG_WARN_STRICT_PROTOTYPES = YES; 259 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 260 | CLANG_WARN_UNREACHABLE_CODE = YES; 261 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 262 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 263 | COPY_PHASE_STRIP = NO; 264 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 265 | ENABLE_NS_ASSERTIONS = NO; 266 | ENABLE_STRICT_OBJC_MSGSEND = YES; 267 | GCC_C_LANGUAGE_STANDARD = gnu99; 268 | GCC_NO_COMMON_BLOCKS = YES; 269 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 270 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 271 | GCC_WARN_UNDECLARED_SELECTOR = YES; 272 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 273 | GCC_WARN_UNUSED_FUNCTION = YES; 274 | GCC_WARN_UNUSED_VARIABLE = YES; 275 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 276 | MTL_ENABLE_DEBUG_INFO = NO; 277 | SDKROOT = iphoneos; 278 | SUPPORTED_PLATFORMS = iphoneos; 279 | TARGETED_DEVICE_FAMILY = "1,2"; 280 | VALIDATE_PRODUCT = YES; 281 | }; 282 | name = Profile; 283 | }; 284 | 249021D4217E4FDB00AE95B9 /* Profile */ = { 285 | isa = XCBuildConfiguration; 286 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 287 | buildSettings = { 288 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 289 | CLANG_ENABLE_MODULES = YES; 290 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 291 | ENABLE_BITCODE = NO; 292 | INFOPLIST_FILE = Runner/Info.plist; 293 | LD_RUNPATH_SEARCH_PATHS = ( 294 | "$(inherited)", 295 | "@executable_path/Frameworks", 296 | ); 297 | PRODUCT_BUNDLE_IDENTIFIER = com.gaurav.flutterCrypto; 298 | PRODUCT_NAME = "$(TARGET_NAME)"; 299 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 300 | SWIFT_VERSION = 5.0; 301 | VERSIONING_SYSTEM = "apple-generic"; 302 | }; 303 | name = Profile; 304 | }; 305 | 97C147031CF9000F007C117D /* Debug */ = { 306 | isa = XCBuildConfiguration; 307 | buildSettings = { 308 | ALWAYS_SEARCH_USER_PATHS = NO; 309 | CLANG_ANALYZER_NONNULL = YES; 310 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 311 | CLANG_CXX_LIBRARY = "libc++"; 312 | CLANG_ENABLE_MODULES = YES; 313 | CLANG_ENABLE_OBJC_ARC = YES; 314 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 315 | CLANG_WARN_BOOL_CONVERSION = YES; 316 | CLANG_WARN_COMMA = YES; 317 | CLANG_WARN_CONSTANT_CONVERSION = YES; 318 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 319 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 320 | CLANG_WARN_EMPTY_BODY = YES; 321 | CLANG_WARN_ENUM_CONVERSION = YES; 322 | CLANG_WARN_INFINITE_RECURSION = YES; 323 | CLANG_WARN_INT_CONVERSION = YES; 324 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 325 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 326 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 327 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 328 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 329 | CLANG_WARN_STRICT_PROTOTYPES = YES; 330 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 331 | CLANG_WARN_UNREACHABLE_CODE = YES; 332 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 333 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 334 | COPY_PHASE_STRIP = NO; 335 | DEBUG_INFORMATION_FORMAT = dwarf; 336 | ENABLE_STRICT_OBJC_MSGSEND = YES; 337 | ENABLE_TESTABILITY = YES; 338 | GCC_C_LANGUAGE_STANDARD = gnu99; 339 | GCC_DYNAMIC_NO_PIC = NO; 340 | GCC_NO_COMMON_BLOCKS = YES; 341 | GCC_OPTIMIZATION_LEVEL = 0; 342 | GCC_PREPROCESSOR_DEFINITIONS = ( 343 | "DEBUG=1", 344 | "$(inherited)", 345 | ); 346 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 347 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 348 | GCC_WARN_UNDECLARED_SELECTOR = YES; 349 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 350 | GCC_WARN_UNUSED_FUNCTION = YES; 351 | GCC_WARN_UNUSED_VARIABLE = YES; 352 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 353 | MTL_ENABLE_DEBUG_INFO = YES; 354 | ONLY_ACTIVE_ARCH = YES; 355 | SDKROOT = iphoneos; 356 | TARGETED_DEVICE_FAMILY = "1,2"; 357 | }; 358 | name = Debug; 359 | }; 360 | 97C147041CF9000F007C117D /* Release */ = { 361 | isa = XCBuildConfiguration; 362 | buildSettings = { 363 | ALWAYS_SEARCH_USER_PATHS = NO; 364 | CLANG_ANALYZER_NONNULL = YES; 365 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 366 | CLANG_CXX_LIBRARY = "libc++"; 367 | CLANG_ENABLE_MODULES = YES; 368 | CLANG_ENABLE_OBJC_ARC = YES; 369 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 370 | CLANG_WARN_BOOL_CONVERSION = YES; 371 | CLANG_WARN_COMMA = YES; 372 | CLANG_WARN_CONSTANT_CONVERSION = YES; 373 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 374 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 375 | CLANG_WARN_EMPTY_BODY = YES; 376 | CLANG_WARN_ENUM_CONVERSION = YES; 377 | CLANG_WARN_INFINITE_RECURSION = YES; 378 | CLANG_WARN_INT_CONVERSION = YES; 379 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 380 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 381 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 382 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 383 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 384 | CLANG_WARN_STRICT_PROTOTYPES = YES; 385 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 386 | CLANG_WARN_UNREACHABLE_CODE = YES; 387 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 388 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 389 | COPY_PHASE_STRIP = NO; 390 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 391 | ENABLE_NS_ASSERTIONS = NO; 392 | ENABLE_STRICT_OBJC_MSGSEND = YES; 393 | GCC_C_LANGUAGE_STANDARD = gnu99; 394 | GCC_NO_COMMON_BLOCKS = YES; 395 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 396 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 397 | GCC_WARN_UNDECLARED_SELECTOR = YES; 398 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 399 | GCC_WARN_UNUSED_FUNCTION = YES; 400 | GCC_WARN_UNUSED_VARIABLE = YES; 401 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 402 | MTL_ENABLE_DEBUG_INFO = NO; 403 | SDKROOT = iphoneos; 404 | SUPPORTED_PLATFORMS = iphoneos; 405 | SWIFT_COMPILATION_MODE = wholemodule; 406 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 407 | TARGETED_DEVICE_FAMILY = "1,2"; 408 | VALIDATE_PRODUCT = YES; 409 | }; 410 | name = Release; 411 | }; 412 | 97C147061CF9000F007C117D /* Debug */ = { 413 | isa = XCBuildConfiguration; 414 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 415 | buildSettings = { 416 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 417 | CLANG_ENABLE_MODULES = YES; 418 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 419 | ENABLE_BITCODE = NO; 420 | INFOPLIST_FILE = Runner/Info.plist; 421 | LD_RUNPATH_SEARCH_PATHS = ( 422 | "$(inherited)", 423 | "@executable_path/Frameworks", 424 | ); 425 | PRODUCT_BUNDLE_IDENTIFIER = com.gaurav.flutterCrypto; 426 | PRODUCT_NAME = "$(TARGET_NAME)"; 427 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 428 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 429 | SWIFT_VERSION = 5.0; 430 | VERSIONING_SYSTEM = "apple-generic"; 431 | }; 432 | name = Debug; 433 | }; 434 | 97C147071CF9000F007C117D /* Release */ = { 435 | isa = XCBuildConfiguration; 436 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 437 | buildSettings = { 438 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 439 | CLANG_ENABLE_MODULES = YES; 440 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 441 | ENABLE_BITCODE = NO; 442 | INFOPLIST_FILE = Runner/Info.plist; 443 | LD_RUNPATH_SEARCH_PATHS = ( 444 | "$(inherited)", 445 | "@executable_path/Frameworks", 446 | ); 447 | PRODUCT_BUNDLE_IDENTIFIER = com.gaurav.flutterCrypto; 448 | PRODUCT_NAME = "$(TARGET_NAME)"; 449 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 450 | SWIFT_VERSION = 5.0; 451 | VERSIONING_SYSTEM = "apple-generic"; 452 | }; 453 | name = Release; 454 | }; 455 | /* End XCBuildConfiguration section */ 456 | 457 | /* Begin XCConfigurationList section */ 458 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 459 | isa = XCConfigurationList; 460 | buildConfigurations = ( 461 | 97C147031CF9000F007C117D /* Debug */, 462 | 97C147041CF9000F007C117D /* Release */, 463 | 249021D3217E4FDB00AE95B9 /* Profile */, 464 | ); 465 | defaultConfigurationIsVisible = 0; 466 | defaultConfigurationName = Release; 467 | }; 468 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 469 | isa = XCConfigurationList; 470 | buildConfigurations = ( 471 | 97C147061CF9000F007C117D /* Debug */, 472 | 97C147071CF9000F007C117D /* Release */, 473 | 249021D4217E4FDB00AE95B9 /* Profile */, 474 | ); 475 | defaultConfigurationIsVisible = 0; 476 | defaultConfigurationName = Release; 477 | }; 478 | /* End XCConfigurationList section */ 479 | }; 480 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 481 | } 482 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 37 | 38 | 39 | 40 | 41 | 42 | 52 | 54 | 60 | 61 | 62 | 63 | 69 | 71 | 77 | 78 | 79 | 80 | 82 | 83 | 86 | 87 | 88 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | import Flutter 3 | 4 | @UIApplicationMain 5 | @objc class AppDelegate: FlutterAppDelegate { 6 | override func application( 7 | _ application: UIApplication, 8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? 9 | ) -> Bool { 10 | GeneratedPluginRegistrant.register(with: self) 11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions) 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "20x20", 5 | "idiom" : "iphone", 6 | "filename" : "Icon-App-20x20@2x.png", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "size" : "20x20", 11 | "idiom" : "iphone", 12 | "filename" : "Icon-App-20x20@3x.png", 13 | "scale" : "3x" 14 | }, 15 | { 16 | "size" : "29x29", 17 | "idiom" : "iphone", 18 | "filename" : "Icon-App-29x29@1x.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "29x29", 23 | "idiom" : "iphone", 24 | "filename" : "Icon-App-29x29@2x.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "29x29", 29 | "idiom" : "iphone", 30 | "filename" : "Icon-App-29x29@3x.png", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "size" : "40x40", 35 | "idiom" : "iphone", 36 | "filename" : "Icon-App-40x40@2x.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "40x40", 41 | "idiom" : "iphone", 42 | "filename" : "Icon-App-40x40@3x.png", 43 | "scale" : "3x" 44 | }, 45 | { 46 | "size" : "60x60", 47 | "idiom" : "iphone", 48 | "filename" : "Icon-App-60x60@2x.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "60x60", 53 | "idiom" : "iphone", 54 | "filename" : "Icon-App-60x60@3x.png", 55 | "scale" : "3x" 56 | }, 57 | { 58 | "size" : "20x20", 59 | "idiom" : "ipad", 60 | "filename" : "Icon-App-20x20@1x.png", 61 | "scale" : "1x" 62 | }, 63 | { 64 | "size" : "20x20", 65 | "idiom" : "ipad", 66 | "filename" : "Icon-App-20x20@2x.png", 67 | "scale" : "2x" 68 | }, 69 | { 70 | "size" : "29x29", 71 | "idiom" : "ipad", 72 | "filename" : "Icon-App-29x29@1x.png", 73 | "scale" : "1x" 74 | }, 75 | { 76 | "size" : "29x29", 77 | "idiom" : "ipad", 78 | "filename" : "Icon-App-29x29@2x.png", 79 | "scale" : "2x" 80 | }, 81 | { 82 | "size" : "40x40", 83 | "idiom" : "ipad", 84 | "filename" : "Icon-App-40x40@1x.png", 85 | "scale" : "1x" 86 | }, 87 | { 88 | "size" : "40x40", 89 | "idiom" : "ipad", 90 | "filename" : "Icon-App-40x40@2x.png", 91 | "scale" : "2x" 92 | }, 93 | { 94 | "size" : "76x76", 95 | "idiom" : "ipad", 96 | "filename" : "Icon-App-76x76@1x.png", 97 | "scale" : "1x" 98 | }, 99 | { 100 | "size" : "76x76", 101 | "idiom" : "ipad", 102 | "filename" : "Icon-App-76x76@2x.png", 103 | "scale" : "2x" 104 | }, 105 | { 106 | "size" : "83.5x83.5", 107 | "idiom" : "ipad", 108 | "filename" : "Icon-App-83.5x83.5@2x.png", 109 | "scale" : "2x" 110 | }, 111 | { 112 | "size" : "1024x1024", 113 | "idiom" : "ios-marketing", 114 | "filename" : "Icon-App-1024x1024@1x.png", 115 | "scale" : "1x" 116 | } 117 | ], 118 | "info" : { 119 | "version" : 1, 120 | "author" : "xcode" 121 | } 122 | } 123 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Anonymousgaurav/flutter_blockchain_payment/ee81d1c2101194b3bbe590677c02d65f54d9cb37/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Anonymousgaurav/flutter_blockchain_payment/ee81d1c2101194b3bbe590677c02d65f54d9cb37/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Anonymousgaurav/flutter_blockchain_payment/ee81d1c2101194b3bbe590677c02d65f54d9cb37/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Anonymousgaurav/flutter_blockchain_payment/ee81d1c2101194b3bbe590677c02d65f54d9cb37/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Anonymousgaurav/flutter_blockchain_payment/ee81d1c2101194b3bbe590677c02d65f54d9cb37/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Anonymousgaurav/flutter_blockchain_payment/ee81d1c2101194b3bbe590677c02d65f54d9cb37/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Anonymousgaurav/flutter_blockchain_payment/ee81d1c2101194b3bbe590677c02d65f54d9cb37/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Anonymousgaurav/flutter_blockchain_payment/ee81d1c2101194b3bbe590677c02d65f54d9cb37/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Anonymousgaurav/flutter_blockchain_payment/ee81d1c2101194b3bbe590677c02d65f54d9cb37/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Anonymousgaurav/flutter_blockchain_payment/ee81d1c2101194b3bbe590677c02d65f54d9cb37/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Anonymousgaurav/flutter_blockchain_payment/ee81d1c2101194b3bbe590677c02d65f54d9cb37/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Anonymousgaurav/flutter_blockchain_payment/ee81d1c2101194b3bbe590677c02d65f54d9cb37/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Anonymousgaurav/flutter_blockchain_payment/ee81d1c2101194b3bbe590677c02d65f54d9cb37/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Anonymousgaurav/flutter_blockchain_payment/ee81d1c2101194b3bbe590677c02d65f54d9cb37/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Anonymousgaurav/flutter_blockchain_payment/ee81d1c2101194b3bbe590677c02d65f54d9cb37/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchImage.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchImage@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "LaunchImage@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Anonymousgaurav/flutter_blockchain_payment/ee81d1c2101194b3bbe590677c02d65f54d9cb37/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Anonymousgaurav/flutter_blockchain_payment/ee81d1c2101194b3bbe590677c02d65f54d9cb37/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Anonymousgaurav/flutter_blockchain_payment/ee81d1c2101194b3bbe590677c02d65f54d9cb37/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md: -------------------------------------------------------------------------------- 1 | # Launch Screen Assets 2 | 3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory. 4 | 5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /ios/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleDisplayName 8 | Flutter Crypto 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | flutter_crypto 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | $(FLUTTER_BUILD_NAME) 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | $(FLUTTER_BUILD_NUMBER) 25 | LSRequiresIPhoneOS 26 | 27 | UILaunchStoryboardName 28 | LaunchScreen 29 | UIMainStoryboardFile 30 | Main 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | UISupportedInterfaceOrientations~ipad 38 | 39 | UIInterfaceOrientationPortrait 40 | UIInterfaceOrientationPortraitUpsideDown 41 | UIInterfaceOrientationLandscapeLeft 42 | UIInterfaceOrientationLandscapeRight 43 | 44 | UIViewControllerBasedStatusBarAppearance 45 | 46 | CADisableMinimumFrameDurationOnPhone 47 | 48 | UIApplicationSupportsIndirectInputEvents 49 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /ios/Runner/Runner-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | #import "GeneratedPluginRegistrant.h" 2 | -------------------------------------------------------------------------------- /lib/data/ethereum_connector.dart: -------------------------------------------------------------------------------- 1 | import 'dart:typed_data'; 2 | 3 | import 'package:flutter/material.dart'; 4 | import 'package:flutter_crypto/data/repo/wallet_connector.dart'; 5 | import 'package:http/http.dart'; 6 | import 'package:walletconnect_dart/walletconnect_dart.dart'; 7 | import 'package:walletconnect_qrcode_modal_dart/walletconnect_qrcode_modal_dart.dart'; 8 | import 'package:web3dart/crypto.dart'; 9 | import 'package:web3dart/web3dart.dart'; 10 | 11 | class WalletConnectEthereumCredentials extends CustomTransactionSender { 12 | WalletConnectEthereumCredentials({required this.provider}); 13 | 14 | final EthereumWalletConnectProvider provider; 15 | 16 | @override 17 | Future extractAddress() { 18 | throw UnimplementedError(); 19 | } 20 | 21 | @override 22 | Future sendTransaction(Transaction transaction) async { 23 | final hash = await provider.sendTransaction( 24 | from: transaction.from!.hex, 25 | to: transaction.to?.hex, 26 | data: transaction.data, 27 | gas: transaction.maxGas, 28 | gasPrice: transaction.gasPrice?.getInWei, 29 | value: transaction.value?.getInWei, 30 | nonce: transaction.nonce, 31 | ); 32 | 33 | return hash; 34 | } 35 | 36 | @override 37 | Future signToSignature(Uint8List payload, 38 | {int? chainId, bool isEIP1559 = false}) { 39 | throw UnimplementedError(); 40 | } 41 | } 42 | 43 | class EthereumConnector implements WalletConnector { 44 | 45 | late final WalletConnectQrCodeModal _connector; 46 | late final EthereumWalletConnectProvider _provider; 47 | 48 | EthereumConnector() { 49 | _connector = WalletConnectQrCodeModal( 50 | connector: WalletConnect( 51 | bridge: 'https://bridge.walletconnect.org', 52 | clientMeta: const PeerMeta( 53 | name: 'Demo ETH', 54 | description: 'Demo ETH Application', 55 | url: 'https://walletconnect.org', 56 | icons: [ 57 | 'https://gblobscdn.gitbook.com/spaces%2F-LJJeCjcLrr53DcT1Ml7%2Favatar.png?alt=media' 58 | ], 59 | ), 60 | ), 61 | ); 62 | 63 | _provider = EthereumWalletConnectProvider(_connector.connector); 64 | } 65 | 66 | @override 67 | Future connect(BuildContext context) async { 68 | return await _connector.connect(context, chainId: 1); 69 | } 70 | 71 | @override 72 | void registerListeners( 73 | OnConnectRequest? onConnect, 74 | OnSessionUpdate? onSessionUpdate, 75 | OnDisconnect? onDisconnect, 76 | ) => 77 | _connector.registerListeners( 78 | onConnect: onConnect, 79 | onSessionUpdate: onSessionUpdate, 80 | onDisconnect: onDisconnect, 81 | ); 82 | 83 | @override 84 | Future sendAmount({ 85 | required String recipientAddress, 86 | required double amount, 87 | }) async { 88 | final sender = 89 | EthereumAddress.fromHex(_connector.connector.session.accounts[0]); 90 | final recipient = EthereumAddress.fromHex(address); 91 | 92 | final etherAmount = EtherAmount.fromUnitAndValue( 93 | EtherUnit.szabo, (amount * 1000 * 1000).toInt()); 94 | 95 | final transaction = Transaction( 96 | to: recipient, 97 | from: sender, 98 | gasPrice: EtherAmount.inWei(BigInt.one), 99 | maxGas: 100000, 100 | value: etherAmount, 101 | ); 102 | 103 | final credentials = WalletConnectEthereumCredentials(provider: _provider); 104 | 105 | try { 106 | final txBytes = await _ethereum.sendTransaction(credentials, transaction); 107 | return txBytes; 108 | } catch (e) { 109 | print('Error: $e'); 110 | } 111 | 112 | _connector.killSession(); 113 | 114 | return null; 115 | } 116 | 117 | @override 118 | Future openWalletApp() async => await _connector.openWalletApp(); 119 | 120 | @override 121 | Future getBalance() async { 122 | final address = 123 | EthereumAddress.fromHex(_connector.connector.session.accounts[0]); 124 | final amount = await _ethereum.getBalance(address); 125 | return amount.getValueInUnit(EtherUnit.ether).toDouble(); 126 | } 127 | 128 | @override 129 | bool validateAddress({required String address}) { 130 | try { 131 | EthereumAddress.fromHex(address); 132 | return true; 133 | } catch (_) { 134 | return false; 135 | } 136 | } 137 | 138 | @override 139 | String get faucetUrl => 'https://faucet.dimensions.network/'; 140 | 141 | @override 142 | String get address => _connector.connector.session.accounts[0]; 143 | 144 | @override 145 | String get coinName => 'Eth'; 146 | 147 | final _ethereum = Web3Client( 148 | 'https://mainnet.infura.io/v3/fd88f3e465e14e6198863596706440ba', 149 | Client()); 150 | } 151 | -------------------------------------------------------------------------------- /lib/data/repo/wallet_connector.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:walletconnect_dart/walletconnect_dart.dart'; 3 | 4 | abstract class WalletConnector { 5 | Future connect(BuildContext context); 6 | 7 | Future sendAmount({ 8 | required String recipientAddress, 9 | required double amount, 10 | }); 11 | 12 | Future openWalletApp(); 13 | 14 | Future getBalance(); 15 | 16 | bool validateAddress({required String address}); 17 | 18 | String get faucetUrl; 19 | 20 | String get address; 21 | 22 | String get coinName; 23 | 24 | void registerListeners( 25 | OnConnectRequest? onConnect, 26 | OnSessionUpdate? onSessionUpdate, 27 | OnDisconnect? onDisconnect, 28 | ); 29 | } 30 | -------------------------------------------------------------------------------- /lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_crypto/presentation/home_page.dart'; 3 | 4 | void main() { 5 | runApp(const MyApp()); 6 | } 7 | 8 | class MyApp extends StatelessWidget { 9 | const MyApp({super.key}); 10 | 11 | @override 12 | Widget build(BuildContext context) { 13 | return MaterialApp( 14 | title: 'Flutter Demo', 15 | theme: ThemeData( 16 | primarySwatch: Colors.blue, 17 | ), 18 | home: const HomePage(), 19 | ); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /lib/presentation/home_page.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_crypto/data/ethereum_connector.dart'; 3 | import 'package:flutter_crypto/data/repo/wallet_connector.dart'; 4 | import 'package:flutter_crypto/presentation/wallet.dart'; 5 | 6 | enum ConnectionState { 7 | disconnected, 8 | connecting, 9 | connected, 10 | connectionFailed, 11 | connectionCancelled, 12 | } 13 | 14 | class HomePage extends StatefulWidget { 15 | const HomePage({Key? key}) : super(key: key); 16 | 17 | @override 18 | State createState() => _HomePageState(); 19 | } 20 | 21 | class _HomePageState extends State { 22 | WalletConnector connector = EthereumConnector(); 23 | ConnectionState _state = ConnectionState.disconnected; 24 | 25 | @override 26 | void initState() { 27 | connector.registerListeners((session) => print('Connected: $session'), 28 | (response) => print('Session updated: $response'), () { 29 | setState( 30 | () => _state = ConnectionState.disconnected, 31 | ); 32 | }); 33 | super.initState(); 34 | } 35 | 36 | @override 37 | Widget build(BuildContext context) { 38 | return Scaffold( 39 | appBar: AppBar( 40 | title: const Text('Wallet Connection Test'), 41 | ), 42 | body: Column( 43 | children: [ 44 | Expanded( 45 | child: Column( 46 | mainAxisAlignment: MainAxisAlignment.center, 47 | children: [ 48 | Padding( 49 | padding: const EdgeInsets.only( 50 | left: 16, 51 | right: 16, 52 | bottom: 32, 53 | ), 54 | child: Text( 55 | 'Connect to the Ethereum account through WalletConnect.', 56 | style: Theme.of(context).textTheme.bodyText1, 57 | textAlign: TextAlign.center, 58 | ), 59 | ), 60 | ElevatedButton( 61 | onPressed: _transactionStateToAction(context, state: _state), 62 | child: Text( 63 | _transactionStateToString(state: _state), 64 | ), 65 | ), 66 | ], 67 | ), 68 | ), 69 | ], 70 | ), 71 | ); 72 | } 73 | 74 | String _transactionStateToString({required ConnectionState state}) { 75 | switch (state) { 76 | case ConnectionState.disconnected: 77 | return 'Connect!'; 78 | case ConnectionState.connecting: 79 | return 'Connecting'; 80 | case ConnectionState.connected: 81 | return 'Session connected'; 82 | case ConnectionState.connectionFailed: 83 | return 'Connection failed'; 84 | case ConnectionState.connectionCancelled: 85 | return 'Connection cancelled'; 86 | } 87 | } 88 | 89 | VoidCallback? _transactionStateToAction(BuildContext context, 90 | {required ConnectionState state}) { 91 | print('State: ${_transactionStateToString(state: state)}'); 92 | switch (state) { 93 | case ConnectionState.connecting: 94 | return null; 95 | case ConnectionState.connected: 96 | return () => _openWalletPage(); 97 | 98 | case ConnectionState.disconnected: 99 | case ConnectionState.connectionCancelled: 100 | case ConnectionState.connectionFailed: 101 | return () async { 102 | setState(() => _state = ConnectionState.connecting); 103 | try { 104 | final session = await connector.connect(context); 105 | if (session != null) { 106 | setState(() => _state = ConnectionState.connected); 107 | Future.delayed(Duration.zero, () => _openWalletPage()); 108 | } else { 109 | setState(() => _state = ConnectionState.connectionCancelled); 110 | } 111 | } catch (e) { 112 | setState(() => _state = ConnectionState.connectionFailed); 113 | } 114 | }; 115 | } 116 | } 117 | 118 | void _openWalletPage() { 119 | Navigator.of(context).push( 120 | MaterialPageRoute( 121 | builder: (context) => WalletPage(connector: connector), 122 | ), 123 | ); 124 | } 125 | } 126 | -------------------------------------------------------------------------------- /lib/presentation/wallet.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter/services.dart'; 3 | 4 | import '../data/repo/wallet_connector.dart'; 5 | 6 | enum TransactionState { 7 | idle, 8 | sending, 9 | successful, 10 | failed, 11 | } 12 | 13 | class WalletPage extends StatefulWidget { 14 | WalletPage({ 15 | required this.connector, 16 | Key? key, 17 | }) : super(key: key); 18 | 19 | final WalletConnector connector; 20 | 21 | 22 | @override 23 | State createState() => _WalletPageState(); 24 | } 25 | 26 | class _WalletPageState extends State { 27 | late Future balanceFuture = widget.connector.getBalance(); 28 | final addressController = TextEditingController(); 29 | final amountController = TextEditingController(); 30 | bool validateAddress = true; 31 | bool validateAmount = true; 32 | TransactionState state = TransactionState.idle; 33 | late String address = widget.connector.address; 34 | @override 35 | void dispose() { 36 | addressController.dispose(); 37 | amountController.dispose(); 38 | super.dispose(); 39 | } 40 | 41 | @override 42 | void initState() { 43 | Future.delayed(const Duration(seconds: 1), () => copyAddressToClipboard()); 44 | super.initState(); 45 | } 46 | 47 | @override 48 | Widget build(BuildContext context) { 49 | return Scaffold( 50 | appBar: AppBar(), 51 | body: SafeArea( 52 | child: SingleChildScrollView( 53 | child: Padding( 54 | padding: const EdgeInsets.all(16), 55 | child: Column( 56 | crossAxisAlignment: CrossAxisAlignment.start, 57 | children: [ 58 | Padding( 59 | padding: const EdgeInsets.only(top: 16), 60 | child: Text( 61 | 'Address', 62 | style: Theme.of(context).textTheme.headline5, 63 | ), 64 | ), 65 | Text(address), 66 | Padding( 67 | padding: const EdgeInsets.only(top: 16), 68 | child: Text( 69 | 'Balance', 70 | style: Theme.of(context).textTheme.headline5, 71 | ), 72 | ), 73 | FutureBuilder( 74 | future: balanceFuture, 75 | builder: (context, snapshot) { 76 | if (snapshot.hasData) { 77 | final balance = snapshot.data; 78 | 79 | print(snapshot.data); 80 | return Row( 81 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 82 | children: [ 83 | Text( 84 | '${balance!.toStringAsFixed(5)} ${widget.connector.coinName}'), 85 | Row( 86 | children: [ 87 | ElevatedButton( 88 | onPressed: () => setState(() { 89 | balanceFuture = widget.connector.getBalance(); 90 | }), 91 | child: const Text('Refresh'), 92 | ), 93 | ], 94 | ), 95 | ], 96 | ); 97 | } else { 98 | return const CircularProgressIndicator(); 99 | } 100 | }, 101 | ), 102 | Padding( 103 | padding: const EdgeInsets.only(top: 16), 104 | child: TextField( 105 | controller: addressController, 106 | keyboardType: TextInputType.text, 107 | autocorrect: false, 108 | enableSuggestions: true, 109 | decoration: InputDecoration( 110 | labelText: 'Recipient address', 111 | errorText: validateAddress ? null : 'Invalid address', 112 | ), 113 | ), 114 | ), 115 | Padding( 116 | padding: const EdgeInsets.only(top: 16), 117 | child: TextField( 118 | controller: amountController, 119 | keyboardType: 120 | const TextInputType.numberWithOptions(decimal: true), 121 | decoration: InputDecoration( 122 | labelText: 'Amount', 123 | errorText: validateAmount 124 | ? null 125 | : 'Please enter amount in ${widget.connector.coinName}', 126 | ), 127 | ), 128 | ), 129 | Padding( 130 | padding: const EdgeInsets.only(top: 32), 131 | child: ElevatedButton( 132 | onPressed: () async { 133 | FocusScope.of(context).unfocus(); 134 | if (amountController.text.isNotEmpty) { 135 | setState(() => validateAmount = true); 136 | if (widget.connector 137 | .validateAddress(address: addressController.text)) { 138 | setState(() => validateAddress = true); 139 | 140 | await transactionAction(address); 141 | } else { 142 | setState(() => validateAddress = false); 143 | } 144 | } else { 145 | setState(() => validateAmount = false); 146 | } 147 | }, 148 | child: Text(transactionString()), 149 | ), 150 | ), 151 | ], 152 | ), 153 | ), 154 | ), 155 | ), 156 | ); 157 | } 158 | 159 | String transactionString() { 160 | switch (state) { 161 | case TransactionState.idle: 162 | return 'Send transaction'; 163 | case TransactionState.sending: 164 | return 'Sending transaction. Please go back to the Wallet to confirm.'; 165 | case TransactionState.successful: 166 | return 'Transaction successful'; 167 | case TransactionState.failed: 168 | return 'Transaction failed'; 169 | } 170 | } 171 | 172 | Future transactionAction(String address) async { 173 | switch (state) { 174 | case TransactionState.idle: 175 | setState(() => state = TransactionState.sending); 176 | 177 | Future.delayed(Duration.zero, () => widget.connector.openWalletApp()); 178 | 179 | final hash = await widget.connector.sendAmount( 180 | recipientAddress: addressController.text, 181 | amount: double.parse(amountController.text)); 182 | 183 | if (hash != null) { 184 | setState(() => state = TransactionState.successful); 185 | } else { 186 | address = address; 187 | setState(() => state = TransactionState.failed); 188 | } 189 | break; 190 | case TransactionState.sending: 191 | case TransactionState.successful: 192 | case TransactionState.failed: 193 | break; 194 | } 195 | } 196 | 197 | void copyAddressToClipboard() { 198 | Clipboard.setData(ClipboardData(text: widget.connector.address)); 199 | ScaffoldMessenger.of(context).showSnackBar( 200 | const SnackBar( 201 | duration: Duration(milliseconds: 500), 202 | content: Text('Address copied!'), 203 | ), 204 | ); 205 | } 206 | } 207 | -------------------------------------------------------------------------------- /pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See https://dart.dev/tools/pub/glossary#lockfile 3 | packages: 4 | _fe_analyzer_shared: 5 | dependency: transitive 6 | description: 7 | name: _fe_analyzer_shared 8 | url: "https://pub.dartlang.org" 9 | source: hosted 10 | version: "47.0.0" 11 | analyzer: 12 | dependency: transitive 13 | description: 14 | name: analyzer 15 | url: "https://pub.dartlang.org" 16 | source: hosted 17 | version: "4.7.0" 18 | args: 19 | dependency: transitive 20 | description: 21 | name: args 22 | url: "https://pub.dartlang.org" 23 | source: hosted 24 | version: "2.3.1" 25 | async: 26 | dependency: transitive 27 | description: 28 | name: async 29 | url: "https://pub.dartlang.org" 30 | source: hosted 31 | version: "2.9.0" 32 | boolean_selector: 33 | dependency: transitive 34 | description: 35 | name: boolean_selector 36 | url: "https://pub.dartlang.org" 37 | source: hosted 38 | version: "2.1.0" 39 | build: 40 | dependency: transitive 41 | description: 42 | name: build 43 | url: "https://pub.dartlang.org" 44 | source: hosted 45 | version: "2.3.0" 46 | build_config: 47 | dependency: transitive 48 | description: 49 | name: build_config 50 | url: "https://pub.dartlang.org" 51 | source: hosted 52 | version: "1.1.0" 53 | build_daemon: 54 | dependency: transitive 55 | description: 56 | name: build_daemon 57 | url: "https://pub.dartlang.org" 58 | source: hosted 59 | version: "3.1.0" 60 | build_resolvers: 61 | dependency: transitive 62 | description: 63 | name: build_resolvers 64 | url: "https://pub.dartlang.org" 65 | source: hosted 66 | version: "2.0.9" 67 | build_runner: 68 | dependency: "direct main" 69 | description: 70 | name: build_runner 71 | url: "https://pub.dartlang.org" 72 | source: hosted 73 | version: "2.2.0" 74 | build_runner_core: 75 | dependency: transitive 76 | description: 77 | name: build_runner_core 78 | url: "https://pub.dartlang.org" 79 | source: hosted 80 | version: "7.2.3" 81 | built_collection: 82 | dependency: transitive 83 | description: 84 | name: built_collection 85 | url: "https://pub.dartlang.org" 86 | source: hosted 87 | version: "5.1.1" 88 | built_value: 89 | dependency: transitive 90 | description: 91 | name: built_value 92 | url: "https://pub.dartlang.org" 93 | source: hosted 94 | version: "8.4.1" 95 | cached_network_image: 96 | dependency: transitive 97 | description: 98 | name: cached_network_image 99 | url: "https://pub.dartlang.org" 100 | source: hosted 101 | version: "3.2.2" 102 | cached_network_image_platform_interface: 103 | dependency: transitive 104 | description: 105 | name: cached_network_image_platform_interface 106 | url: "https://pub.dartlang.org" 107 | source: hosted 108 | version: "2.0.0" 109 | cached_network_image_web: 110 | dependency: transitive 111 | description: 112 | name: cached_network_image_web 113 | url: "https://pub.dartlang.org" 114 | source: hosted 115 | version: "1.0.2" 116 | characters: 117 | dependency: transitive 118 | description: 119 | name: characters 120 | url: "https://pub.dartlang.org" 121 | source: hosted 122 | version: "1.2.1" 123 | checked_yaml: 124 | dependency: transitive 125 | description: 126 | name: checked_yaml 127 | url: "https://pub.dartlang.org" 128 | source: hosted 129 | version: "2.0.1" 130 | clock: 131 | dependency: transitive 132 | description: 133 | name: clock 134 | url: "https://pub.dartlang.org" 135 | source: hosted 136 | version: "1.1.1" 137 | code_builder: 138 | dependency: transitive 139 | description: 140 | name: code_builder 141 | url: "https://pub.dartlang.org" 142 | source: hosted 143 | version: "4.2.0" 144 | collection: 145 | dependency: transitive 146 | description: 147 | name: collection 148 | url: "https://pub.dartlang.org" 149 | source: hosted 150 | version: "1.16.0" 151 | convert: 152 | dependency: transitive 153 | description: 154 | name: convert 155 | url: "https://pub.dartlang.org" 156 | source: hosted 157 | version: "3.0.2" 158 | crypto: 159 | dependency: transitive 160 | description: 161 | name: crypto 162 | url: "https://pub.dartlang.org" 163 | source: hosted 164 | version: "3.0.2" 165 | cryptography: 166 | dependency: transitive 167 | description: 168 | name: cryptography 169 | url: "https://pub.dartlang.org" 170 | source: hosted 171 | version: "2.0.5" 172 | cupertino_icons: 173 | dependency: "direct main" 174 | description: 175 | name: cupertino_icons 176 | url: "https://pub.dartlang.org" 177 | source: hosted 178 | version: "1.0.5" 179 | dart_style: 180 | dependency: transitive 181 | description: 182 | name: dart_style 183 | url: "https://pub.dartlang.org" 184 | source: hosted 185 | version: "2.2.3" 186 | eip55: 187 | dependency: transitive 188 | description: 189 | name: eip55 190 | url: "https://pub.dartlang.org" 191 | source: hosted 192 | version: "1.0.2" 193 | fake_async: 194 | dependency: transitive 195 | description: 196 | name: fake_async 197 | url: "https://pub.dartlang.org" 198 | source: hosted 199 | version: "1.3.1" 200 | ffi: 201 | dependency: transitive 202 | description: 203 | name: ffi 204 | url: "https://pub.dartlang.org" 205 | source: hosted 206 | version: "2.0.1" 207 | file: 208 | dependency: transitive 209 | description: 210 | name: file 211 | url: "https://pub.dartlang.org" 212 | source: hosted 213 | version: "6.1.4" 214 | fixnum: 215 | dependency: transitive 216 | description: 217 | name: fixnum 218 | url: "https://pub.dartlang.org" 219 | source: hosted 220 | version: "1.0.1" 221 | flutter: 222 | dependency: "direct main" 223 | description: flutter 224 | source: sdk 225 | version: "0.0.0" 226 | flutter_blurhash: 227 | dependency: transitive 228 | description: 229 | name: flutter_blurhash 230 | url: "https://pub.dartlang.org" 231 | source: hosted 232 | version: "0.7.0" 233 | flutter_cache_manager: 234 | dependency: transitive 235 | description: 236 | name: flutter_cache_manager 237 | url: "https://pub.dartlang.org" 238 | source: hosted 239 | version: "3.3.0" 240 | flutter_lints: 241 | dependency: "direct dev" 242 | description: 243 | name: flutter_lints 244 | url: "https://pub.dartlang.org" 245 | source: hosted 246 | version: "2.0.1" 247 | flutter_test: 248 | dependency: "direct dev" 249 | description: flutter 250 | source: sdk 251 | version: "0.0.0" 252 | flutter_web_plugins: 253 | dependency: transitive 254 | description: flutter 255 | source: sdk 256 | version: "0.0.0" 257 | frontend_server_client: 258 | dependency: transitive 259 | description: 260 | name: frontend_server_client 261 | url: "https://pub.dartlang.org" 262 | source: hosted 263 | version: "2.1.3" 264 | glob: 265 | dependency: transitive 266 | description: 267 | name: glob 268 | url: "https://pub.dartlang.org" 269 | source: hosted 270 | version: "2.1.0" 271 | graphs: 272 | dependency: transitive 273 | description: 274 | name: graphs 275 | url: "https://pub.dartlang.org" 276 | source: hosted 277 | version: "2.1.0" 278 | http: 279 | dependency: transitive 280 | description: 281 | name: http 282 | url: "https://pub.dartlang.org" 283 | source: hosted 284 | version: "0.13.5" 285 | http_multi_server: 286 | dependency: transitive 287 | description: 288 | name: http_multi_server 289 | url: "https://pub.dartlang.org" 290 | source: hosted 291 | version: "3.2.1" 292 | http_parser: 293 | dependency: transitive 294 | description: 295 | name: http_parser 296 | url: "https://pub.dartlang.org" 297 | source: hosted 298 | version: "4.0.1" 299 | io: 300 | dependency: transitive 301 | description: 302 | name: io 303 | url: "https://pub.dartlang.org" 304 | source: hosted 305 | version: "1.0.3" 306 | js: 307 | dependency: transitive 308 | description: 309 | name: js 310 | url: "https://pub.dartlang.org" 311 | source: hosted 312 | version: "0.6.4" 313 | json_annotation: 314 | dependency: transitive 315 | description: 316 | name: json_annotation 317 | url: "https://pub.dartlang.org" 318 | source: hosted 319 | version: "4.6.0" 320 | json_rpc_2: 321 | dependency: transitive 322 | description: 323 | name: json_rpc_2 324 | url: "https://pub.dartlang.org" 325 | source: hosted 326 | version: "3.0.2" 327 | lints: 328 | dependency: transitive 329 | description: 330 | name: lints 331 | url: "https://pub.dartlang.org" 332 | source: hosted 333 | version: "2.0.0" 334 | logging: 335 | dependency: transitive 336 | description: 337 | name: logging 338 | url: "https://pub.dartlang.org" 339 | source: hosted 340 | version: "1.0.2" 341 | matcher: 342 | dependency: transitive 343 | description: 344 | name: matcher 345 | url: "https://pub.dartlang.org" 346 | source: hosted 347 | version: "0.12.12" 348 | material_color_utilities: 349 | dependency: transitive 350 | description: 351 | name: material_color_utilities 352 | url: "https://pub.dartlang.org" 353 | source: hosted 354 | version: "0.1.5" 355 | meta: 356 | dependency: transitive 357 | description: 358 | name: meta 359 | url: "https://pub.dartlang.org" 360 | source: hosted 361 | version: "1.8.0" 362 | mime: 363 | dependency: transitive 364 | description: 365 | name: mime 366 | url: "https://pub.dartlang.org" 367 | source: hosted 368 | version: "1.0.2" 369 | octo_image: 370 | dependency: transitive 371 | description: 372 | name: octo_image 373 | url: "https://pub.dartlang.org" 374 | source: hosted 375 | version: "1.0.2" 376 | package_config: 377 | dependency: transitive 378 | description: 379 | name: package_config 380 | url: "https://pub.dartlang.org" 381 | source: hosted 382 | version: "2.1.0" 383 | path: 384 | dependency: transitive 385 | description: 386 | name: path 387 | url: "https://pub.dartlang.org" 388 | source: hosted 389 | version: "1.8.2" 390 | path_provider: 391 | dependency: transitive 392 | description: 393 | name: path_provider 394 | url: "https://pub.dartlang.org" 395 | source: hosted 396 | version: "2.0.11" 397 | path_provider_android: 398 | dependency: transitive 399 | description: 400 | name: path_provider_android 401 | url: "https://pub.dartlang.org" 402 | source: hosted 403 | version: "2.0.20" 404 | path_provider_ios: 405 | dependency: transitive 406 | description: 407 | name: path_provider_ios 408 | url: "https://pub.dartlang.org" 409 | source: hosted 410 | version: "2.0.11" 411 | path_provider_linux: 412 | dependency: transitive 413 | description: 414 | name: path_provider_linux 415 | url: "https://pub.dartlang.org" 416 | source: hosted 417 | version: "2.1.7" 418 | path_provider_macos: 419 | dependency: transitive 420 | description: 421 | name: path_provider_macos 422 | url: "https://pub.dartlang.org" 423 | source: hosted 424 | version: "2.0.6" 425 | path_provider_platform_interface: 426 | dependency: transitive 427 | description: 428 | name: path_provider_platform_interface 429 | url: "https://pub.dartlang.org" 430 | source: hosted 431 | version: "2.0.4" 432 | path_provider_windows: 433 | dependency: transitive 434 | description: 435 | name: path_provider_windows 436 | url: "https://pub.dartlang.org" 437 | source: hosted 438 | version: "2.1.2" 439 | pedantic: 440 | dependency: transitive 441 | description: 442 | name: pedantic 443 | url: "https://pub.dartlang.org" 444 | source: hosted 445 | version: "1.11.1" 446 | platform: 447 | dependency: transitive 448 | description: 449 | name: platform 450 | url: "https://pub.dartlang.org" 451 | source: hosted 452 | version: "3.1.0" 453 | plugin_platform_interface: 454 | dependency: transitive 455 | description: 456 | name: plugin_platform_interface 457 | url: "https://pub.dartlang.org" 458 | source: hosted 459 | version: "2.1.2" 460 | pointycastle: 461 | dependency: transitive 462 | description: 463 | name: pointycastle 464 | url: "https://pub.dartlang.org" 465 | source: hosted 466 | version: "3.6.1" 467 | pool: 468 | dependency: transitive 469 | description: 470 | name: pool 471 | url: "https://pub.dartlang.org" 472 | source: hosted 473 | version: "1.5.1" 474 | process: 475 | dependency: transitive 476 | description: 477 | name: process 478 | url: "https://pub.dartlang.org" 479 | source: hosted 480 | version: "4.2.4" 481 | pub_semver: 482 | dependency: transitive 483 | description: 484 | name: pub_semver 485 | url: "https://pub.dartlang.org" 486 | source: hosted 487 | version: "2.1.1" 488 | pubspec_parse: 489 | dependency: transitive 490 | description: 491 | name: pubspec_parse 492 | url: "https://pub.dartlang.org" 493 | source: hosted 494 | version: "1.2.1" 495 | qr: 496 | dependency: transitive 497 | description: 498 | name: qr 499 | url: "https://pub.dartlang.org" 500 | source: hosted 501 | version: "2.1.0" 502 | qr_flutter: 503 | dependency: transitive 504 | description: 505 | name: qr_flutter 506 | url: "https://pub.dartlang.org" 507 | source: hosted 508 | version: "4.0.0" 509 | rxdart: 510 | dependency: transitive 511 | description: 512 | name: rxdart 513 | url: "https://pub.dartlang.org" 514 | source: hosted 515 | version: "0.27.5" 516 | shelf: 517 | dependency: transitive 518 | description: 519 | name: shelf 520 | url: "https://pub.dartlang.org" 521 | source: hosted 522 | version: "1.3.2" 523 | shelf_web_socket: 524 | dependency: transitive 525 | description: 526 | name: shelf_web_socket 527 | url: "https://pub.dartlang.org" 528 | source: hosted 529 | version: "1.0.2" 530 | sky_engine: 531 | dependency: transitive 532 | description: flutter 533 | source: sdk 534 | version: "0.0.99" 535 | source_span: 536 | dependency: transitive 537 | description: 538 | name: source_span 539 | url: "https://pub.dartlang.org" 540 | source: hosted 541 | version: "1.9.0" 542 | sqflite: 543 | dependency: transitive 544 | description: 545 | name: sqflite 546 | url: "https://pub.dartlang.org" 547 | source: hosted 548 | version: "2.0.3+1" 549 | sqflite_common: 550 | dependency: transitive 551 | description: 552 | name: sqflite_common 553 | url: "https://pub.dartlang.org" 554 | source: hosted 555 | version: "2.2.1+1" 556 | stack_trace: 557 | dependency: transitive 558 | description: 559 | name: stack_trace 560 | url: "https://pub.dartlang.org" 561 | source: hosted 562 | version: "1.10.0" 563 | stream_channel: 564 | dependency: transitive 565 | description: 566 | name: stream_channel 567 | url: "https://pub.dartlang.org" 568 | source: hosted 569 | version: "2.1.0" 570 | stream_transform: 571 | dependency: transitive 572 | description: 573 | name: stream_transform 574 | url: "https://pub.dartlang.org" 575 | source: hosted 576 | version: "2.0.0" 577 | string_scanner: 578 | dependency: transitive 579 | description: 580 | name: string_scanner 581 | url: "https://pub.dartlang.org" 582 | source: hosted 583 | version: "1.1.1" 584 | synchronized: 585 | dependency: transitive 586 | description: 587 | name: synchronized 588 | url: "https://pub.dartlang.org" 589 | source: hosted 590 | version: "3.0.0+2" 591 | term_glyph: 592 | dependency: transitive 593 | description: 594 | name: term_glyph 595 | url: "https://pub.dartlang.org" 596 | source: hosted 597 | version: "1.2.1" 598 | test_api: 599 | dependency: transitive 600 | description: 601 | name: test_api 602 | url: "https://pub.dartlang.org" 603 | source: hosted 604 | version: "0.4.12" 605 | timing: 606 | dependency: transitive 607 | description: 608 | name: timing 609 | url: "https://pub.dartlang.org" 610 | source: hosted 611 | version: "1.0.0" 612 | typed_data: 613 | dependency: transitive 614 | description: 615 | name: typed_data 616 | url: "https://pub.dartlang.org" 617 | source: hosted 618 | version: "1.3.1" 619 | url_launcher: 620 | dependency: transitive 621 | description: 622 | name: url_launcher 623 | url: "https://pub.dartlang.org" 624 | source: hosted 625 | version: "6.1.5" 626 | url_launcher_android: 627 | dependency: transitive 628 | description: 629 | name: url_launcher_android 630 | url: "https://pub.dartlang.org" 631 | source: hosted 632 | version: "6.0.17" 633 | url_launcher_ios: 634 | dependency: transitive 635 | description: 636 | name: url_launcher_ios 637 | url: "https://pub.dartlang.org" 638 | source: hosted 639 | version: "6.0.17" 640 | url_launcher_linux: 641 | dependency: transitive 642 | description: 643 | name: url_launcher_linux 644 | url: "https://pub.dartlang.org" 645 | source: hosted 646 | version: "3.0.1" 647 | url_launcher_macos: 648 | dependency: transitive 649 | description: 650 | name: url_launcher_macos 651 | url: "https://pub.dartlang.org" 652 | source: hosted 653 | version: "3.0.1" 654 | url_launcher_platform_interface: 655 | dependency: transitive 656 | description: 657 | name: url_launcher_platform_interface 658 | url: "https://pub.dartlang.org" 659 | source: hosted 660 | version: "2.1.0" 661 | url_launcher_web: 662 | dependency: transitive 663 | description: 664 | name: url_launcher_web 665 | url: "https://pub.dartlang.org" 666 | source: hosted 667 | version: "2.0.13" 668 | url_launcher_windows: 669 | dependency: transitive 670 | description: 671 | name: url_launcher_windows 672 | url: "https://pub.dartlang.org" 673 | source: hosted 674 | version: "3.0.1" 675 | uuid: 676 | dependency: transitive 677 | description: 678 | name: uuid 679 | url: "https://pub.dartlang.org" 680 | source: hosted 681 | version: "3.0.6" 682 | vector_math: 683 | dependency: transitive 684 | description: 685 | name: vector_math 686 | url: "https://pub.dartlang.org" 687 | source: hosted 688 | version: "2.1.2" 689 | walletconnect_dart: 690 | dependency: transitive 691 | description: 692 | name: walletconnect_dart 693 | url: "https://pub.dartlang.org" 694 | source: hosted 695 | version: "0.0.11" 696 | walletconnect_qrcode_modal_dart: 697 | dependency: "direct main" 698 | description: 699 | name: walletconnect_qrcode_modal_dart 700 | url: "https://pub.dartlang.org" 701 | source: hosted 702 | version: "0.0.5" 703 | watcher: 704 | dependency: transitive 705 | description: 706 | name: watcher 707 | url: "https://pub.dartlang.org" 708 | source: hosted 709 | version: "1.0.1" 710 | web3dart: 711 | dependency: "direct main" 712 | description: 713 | name: web3dart 714 | url: "https://pub.dartlang.org" 715 | source: hosted 716 | version: "2.4.1" 717 | web_socket_channel: 718 | dependency: transitive 719 | description: 720 | name: web_socket_channel 721 | url: "https://pub.dartlang.org" 722 | source: hosted 723 | version: "2.2.0" 724 | win32: 725 | dependency: transitive 726 | description: 727 | name: win32 728 | url: "https://pub.dartlang.org" 729 | source: hosted 730 | version: "2.7.0" 731 | xdg_directories: 732 | dependency: transitive 733 | description: 734 | name: xdg_directories 735 | url: "https://pub.dartlang.org" 736 | source: hosted 737 | version: "0.2.0+2" 738 | yaml: 739 | dependency: transitive 740 | description: 741 | name: yaml 742 | url: "https://pub.dartlang.org" 743 | source: hosted 744 | version: "3.1.1" 745 | sdks: 746 | dart: ">=2.18.0 <3.0.0" 747 | flutter: ">=3.3.0" 748 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: flutter_crypto 2 | description: A new Flutter project. 3 | 4 | publish_to: 'none' 5 | 6 | version: 1.0.0+1 7 | 8 | environment: 9 | sdk: '>=2.18.0 <3.0.0' 10 | 11 | dependencies: 12 | flutter: 13 | sdk: flutter 14 | 15 | 16 | cupertino_icons: ^1.0.2 17 | walletconnect_qrcode_modal_dart: ^0.0.5 18 | web3dart: ^2.3.5 19 | build_runner: ^2.1.2 20 | 21 | 22 | dev_dependencies: 23 | flutter_test: 24 | sdk: flutter 25 | 26 | flutter_lints: ^2.0.0 27 | flutter: 28 | uses-material-design: true 29 | -------------------------------------------------------------------------------- /test/widget_test.dart: -------------------------------------------------------------------------------- 1 | // This is a basic Flutter widget test. 2 | // 3 | // To perform an interaction with a widget in your test, use the WidgetTester 4 | // utility in the flutter_test package. For example, you can send tap and scroll 5 | // gestures. You can also use WidgetTester to find child widgets in the widget 6 | // tree, read text, and verify that the values of widget properties are correct. 7 | 8 | import 'package:flutter/material.dart'; 9 | import 'package:flutter_test/flutter_test.dart'; 10 | 11 | import 'package:flutter_crypto/main.dart'; 12 | 13 | void main() { 14 | testWidgets('Counter increments smoke test', (WidgetTester tester) async { 15 | // Build our app and trigger a frame. 16 | await tester.pumpWidget(const MyApp()); 17 | 18 | // Verify that our counter starts at 0. 19 | expect(find.text('0'), findsOneWidget); 20 | expect(find.text('1'), findsNothing); 21 | 22 | // Tap the '+' icon and trigger a frame. 23 | await tester.tap(find.byIcon(Icons.add)); 24 | await tester.pump(); 25 | 26 | // Verify that our counter has incremented. 27 | expect(find.text('0'), findsNothing); 28 | expect(find.text('1'), findsOneWidget); 29 | }); 30 | } 31 | --------------------------------------------------------------------------------