-
Make sure you follow all the steps above and have an all-green output of
flutter doctor
command. -
(For iOS) Install XCode from AppStore
-
You can use Android Studio, IntelliJ Idea, or VSCode for Flutter development
-
Install Flutter plugin in your chosen IDE
-
Clone this repository using
git clone https://github.com/tendermint/flutter.git
-
To run it on your
localhost
environment, you will just have to runmain.dart
file in your project. That can be done directly by clicking on the play button in your IDE, or by runningflutter run
from the root of your project. This will run the app on any device or simulator connected to your system -
If you're running the app on real device instead of emulator/simulator or want to taget a specific blockchain run on a remote machine, make sure to specify proper urls and ports when running the app.
-
Edit and update your environment variables in the
app_config.dart
-
Run the
starport_template
app usingfvm flutter run
ormake run
commands:
-
Clone the Starport repository from
develop
branch -
Make sure to install GoLang for your platform
-
Run
make install
in Starport's root directory -
Run
starport scaffold chain github.com/cosmonaut/mars
to create a new chain -
Run
cd mars
-
Run
starport scaffold flutter
to create a new Flutter app (this clones thestarport_template
repository - the current repo) and puts in underflutter
subdirectory -
Run
starport generate dart
to generate dart files from proto files to be used by the template to interact with the blockchain