Add Configuration Sidebar with ConfigurationService
This commit is contained in:
parent
6ba0ca55cb
commit
bf0d136d8b
10 changed files with 83 additions and 23 deletions
17
lib/service/configuration_service.dart
Normal file
17
lib/service/configuration_service.dart
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
import 'package:rules_of_living/service/engine_service.dart';
|
||||
|
||||
class ConfigurationService {
|
||||
final EngineService engineService;
|
||||
|
||||
bool showGrid;
|
||||
int simSpeed;
|
||||
|
||||
ConfigurationService(this.engineService) {
|
||||
showGrid = false;
|
||||
simSpeed = 5;
|
||||
}
|
||||
|
||||
void toggleGrid() {
|
||||
showGrid = !showGrid;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue