Added navigation between screens

This commit is contained in:
2023-12-18 16:04:51 +03:00
parent 2a89da4ea7
commit a35f82794a
37 changed files with 309 additions and 244 deletions

View File

@@ -18,35 +18,22 @@ class LanguageSelectBloc
Emitter<LanguageSelectState> emit,
) async {
emit(state.copyWith(
languageSelectModelObj: state.languageSelectModelObj?.copyWith(
dropdownItemList: fillDropdownItemList(),
)));
languageSelectModelObj: state.languageSelectModelObj
?.copyWith(dropdownItemList: fillDropdownItemList())));
}
_changeDropDown(
ChangeDropDownEvent event,
Emitter<LanguageSelectState> emit,
) {
emit(state.copyWith(
selectedDropDownValue: event.value,
));
emit(state.copyWith(selectedDropDownValue: event.value));
}
List<SelectionPopupModel> fillDropdownItemList() {
return [
SelectionPopupModel(
id: 1,
title: "Item One",
isSelected: true,
),
SelectionPopupModel(
id: 2,
title: "Item Two",
),
SelectionPopupModel(
id: 3,
title: "Item Three",
)
SelectionPopupModel(id: 1, title: "Item One", isSelected: true),
SelectionPopupModel(id: 2, title: "Item Two"),
SelectionPopupModel(id: 3, title: "Item Three")
];
}
}