30 lines
819 B
Dart
30 lines
819 B
Dart
import 'package:stacked/stacked.dart';
|
|
import 'package:stacked_services/stacked_services.dart';
|
|
import 'package:yimaru_app/app/app.router.dart';
|
|
|
|
import '../../../app/app.locator.dart';
|
|
|
|
class LearnLevelViewModel extends BaseViewModel {
|
|
final _navigationService = locator<NavigationService>();
|
|
|
|
final List<Map<String, dynamic>> _learnSubLevels = [
|
|
{
|
|
'title': 'A1',
|
|
'current': true,
|
|
'subtitle': 'Start your journey with the basics of English.',
|
|
},
|
|
{
|
|
'title': 'A2',
|
|
'current': false,
|
|
'subtitle': 'Build upon your foundational knowledge.',
|
|
},
|
|
];
|
|
|
|
List<Map<String, dynamic>> get learnSubLevels => _learnSubLevels;
|
|
|
|
Future<void> navigateToLearnModule() async =>
|
|
_navigationService.navigateToLearnModuleView();
|
|
|
|
void pop() => _navigationService.back();
|
|
}
|