From 69b680e5541db4b72d6dfef9e85de77a0bcc5e51 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Sat, 7 Jul 2018 19:05:56 +0200 Subject: [PATCH] Add FontAwesome Icons to Buttons --- lib/app_component.dart | 10 +++++++++- lib/app_component.html | 16 +++++++++++----- web/index.html | 3 +++ 3 files changed, 23 insertions(+), 6 deletions(-) diff --git a/lib/app_component.dart b/lib/app_component.dart index 637c8cf..8239568 100644 --- a/lib/app_component.dart +++ b/lib/app_component.dart @@ -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() {} } diff --git a/lib/app_component.html b/lib/app_component.html index b0f6234..366ce7b 100644 --- a/lib/app_component.html +++ b/lib/app_component.html @@ -1,14 +1,20 @@

Cellular Automata - The Rules of Life

Ruleset: +
- - - - - Speed: + + + + + Speed:
\ No newline at end of file diff --git a/web/index.html b/web/index.html index 36f2b5a..35bd3cb 100644 --- a/web/index.html +++ b/web/index.html @@ -17,6 +17,9 @@ + + +