Initial commit: Penyerahan final Source code Tugas Akhir
This commit is contained in:
41
lib/providers/section_lesson_provider.dart
Normal file
41
lib/providers/section_lesson_provider.dart
Normal file
@ -0,0 +1,41 @@
|
||||
import 'package:flutter/foundation.dart';
|
||||
|
||||
class SectionLessonProvider with ChangeNotifier {
|
||||
bool isExpanded;
|
||||
bool isCheckBoxLesson;
|
||||
bool isOutcomes;
|
||||
bool isDescription;
|
||||
bool isDescriptionInstruktur;
|
||||
SectionLessonProvider({
|
||||
this.isExpanded = true,
|
||||
this.isCheckBoxLesson = false,
|
||||
this.isOutcomes = false,
|
||||
this.isDescription = true,
|
||||
this.isDescriptionInstruktur = false,
|
||||
});
|
||||
|
||||
void expanded() {
|
||||
isExpanded = !isExpanded;
|
||||
notifyListeners();
|
||||
}
|
||||
|
||||
void checkBoxLesson() {
|
||||
isCheckBoxLesson = !isCheckBoxLesson;
|
||||
notifyListeners();
|
||||
}
|
||||
|
||||
void detailPlayCourseOutcomes() {
|
||||
isOutcomes = !isOutcomes;
|
||||
notifyListeners();
|
||||
}
|
||||
|
||||
void descriptionPlayCourse() {
|
||||
isDescription = !isDescription;
|
||||
notifyListeners();
|
||||
}
|
||||
|
||||
void descriptionInstrukturPlayCourse() {
|
||||
isDescriptionInstruktur = !isDescriptionInstruktur;
|
||||
notifyListeners();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user