Add FontAwesome Icons to Buttons

This commit is contained in:
Marty Oehme 2018-07-07 19:05:56 +02:00
parent 96a5bd0cec
commit 69b680e554
3 changed files with 23 additions and 6 deletions

View file

@ -5,7 +5,8 @@ import 'package:rules_of_living/src/App.dart';
@Component(
selector: 'my-app',
templateUrl: "app_component.html"
templateUrl: "app_component.html",
directives: [coreDirectives]
)
class AppComponent implements OnInit {
var name = "World";
@ -32,10 +33,17 @@ class AppComponent implements OnInit {
void onStartClicked() {
bool isRunning = !engine.running;
engine.running = isRunning;
}
switch (isRunning) {
case true: buttonRunText = "Stop"; break;
case false: buttonRunText = "Start"; break;
}
void onStepClicked() {
}
void onResetClicked() {
}
void onRandomClicked() {}
}