repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
dependencies {
implementation 'com.github.dylanwatsonsoftware:bobatea:$version'
}
The full code for the examples can be viewed here
runLoading("Loading yo!") {
Thread.sleep(10000)
}
val multiSelections = selectMultipleFromList(
question = "What are all your favourite numbers?",
options =
listOf("one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten"),
)
println("You selected: $multiSelections")
val selection = selectFromList(
question = "What's your favourite number?",
options =
listOf("one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten"),
)
println("You selected: $selection")
This simply shows how easy it easy to create custom navigation with the bobatea framework
View the code for this example here
To run the sample:
./gradlew -p sample fatJar
java -jar ./sample/build/libs/sample-0.1-standalone.jar