17 lines
371 B
Dart
17 lines
371 B
Dart
import 'package:flutter/cupertino.dart';
|
|
import 'package:mensaapp/spaces/spaceHome.dart';
|
|
import 'package:mensaapp/spaces/spaceRate.dart';
|
|
|
|
class SpaceProvider extends ChangeNotifier {
|
|
var selectedSpace = 0;
|
|
|
|
var spaces = [
|
|
const SpaceHome(),
|
|
const SpaceRate()
|
|
];
|
|
|
|
void setSelectedSpace(int index) {
|
|
selectedSpace = index;
|
|
notifyListeners();
|
|
}
|
|
} |