Skip to content

Main Code Contents

Ernest Pan edited this page Jul 26, 2020 · 1 revision

Here we provide a short description of all the top level functions and classes in main.dart.


main() No arguments

This is the function that is run when the app is opened. Opens the SplashScreen page.


SplashScreen No arguments

We use this page to initialise user preferences if necessary, as well as check for app permissions. Upon completion, opens the RunnableHome page.


RunnableHome No arguments

The main homepage of Runnable. It contains 4 LangBox widgets.


LangBox 2 arguments: name, image

This displays the name and image related to supported languages. Opens RCSelectPage on tap.


RCSelectPage 1 argument: name

This provides links to the 2 main features of the app, REPL and Compile.


Choice 2 arguments: title, icon

This is used to add a popup menu to the top right of ReplPage and CompilerPage.


ReplPage 2 arguments: name, channel

The main page for the REPL environment.


CompilerPage 2 arguments: name, channel

The main page for the Compiler environment.


SettingsPage No arguments

A standard settings page that can be accessed from all other pages in the app.


UserGuide 1 argument: fontSize

An in-app user guide that is accessible from the Settings page.

Clone this wiki locally