This repo contains the UX/UI and logic modifications relating the NEAR and Aurora Network top-up compatibility built during the NEAR MetaBUILD Hackathon.
This was built using the flutter framework.
The codebase here interacts with the NEAR and Aurora connectors:
- https://github.com/TuMicro/tuboleto-aurora-connection
- https://github.com/TuMicro/tuboleto-near-connection
Each time you modify/create/delete a file inside the folders api or model, you must run:
flutter pub run build_runner watch --delete-conflicting-outputs
After creating new routes we need to rebuild the app in order to recognize the routes correctly.
Sometimes after adding assets (images or icons) we need to rebuild the app in order to be able to use them.
- Use this website to generate the dart code: http://sma.github.io/stuff/java2dartweb/java2dartweb.html
- Use this regex to generate the boilerplate in android studio
class (\w+)\s*\{([^}]+)\}
@JsonSerializable(explicitToJson: true)\nclass $1 {\n$2\n $1();\n\n factory $1.fromJson(Map json) => _\$$1FromJson(json);\n Map<String, dynamic> toJson() => _\$$1ToJson(this);\n}
- Generate code, check the first command in this guide.
import 'package:flutter/foundation.dart' as Foundation; !Foundation.kReleaseMode
Use this guide and then open the debug view in the firebase console
For being able to use debugView in IOS you must build and run the app with xcode.
If errors with linker or clang: error: linker command failed with exit code 1, remember this guy forever: OneSignal/OneSignal-Flutter-SDK#42 (comment)
Sometimes vscode doesn't reload code (after I compiled with xcode), so you need to use xcode to compile, debug.
PD: to add libraries just click the "plus" button in xcode and choose the libraries
An example of how to construct an Cupertino-style search bar. The Flutter team is working on an official widget for this. Once that effort is complete, developers will not need to roll their own search bars, so to speak.