Giter Club home page Giter Club logo

tuboleto-polygon-ui's Introduction

Overview

This repo contains the UX/UI and logic modifications relating the Polygon (MATIC) top-up compatibility and BUS token rewards built during the Polygon BUIDL IT Hackathon.

This was built using the flutter framework.

The codebase here interacts with the Polygon connector:

Development

In case of ndk related issues

https://stackoverflow.com/questions/35128229/error-no-toolchains-found-in-the-ndk-toolchains-folder-for-abi-with-prefix-llv#:~:text=If%20you%20see%20an%20error,Android%20Studio%203.1%20or%20newer.

On automatic code generation

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

About routes

After creating new routes we need to rebuild the app in order to recognize the routes correctly.

About assets

Sometimes after adding assets (images or icons) we need to rebuild the app in order to be able to use them.

How to copy POJOs (or value objects) from java

  1. Use this website to generate the dart code: http://sma.github.io/stuff/java2dartweb/java2dartweb.html
  2. 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}
  1. Generate code, check the first command in this guide.

BuildConfig.DEBUG equivalent

import 'package:flutter/foundation.dart' as Foundation; !Foundation.kReleaseMode

Debug analytics

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.

Some common IOS problems:

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

About the search bar for cupertino

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.

Utils

En Google Cloud SDK Shell

gcloud auth application-default login

Showing the commits tree:

git log --oneline --graph --decorate --all

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.