Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@
"Fajrian",
"Aidil",
"Pratama",
"codeowners"
"codeowners",
"Panduan",
"Kontributor",
"Pengembangan",
"Fitur",
"Alur",
"Kontribusi"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class CensusDataView extends GetView<CensusDataController> {
? LocaleKeys.label_census_error_loading_events.tr
: LocaleKeys.label_census_select_event.tr,
),
value: controller.selectedEvent.value,
initialValue: controller.selectedEvent.value,
items:
controller.censuses.isEmpty
? []
Expand Down Expand Up @@ -89,7 +89,7 @@ class CensusDataView extends GetView<CensusDataController> {
? LocaleKeys.label_census_select_event_first.tr
: LocaleKeys.label_census_select_topic.tr,
),
value: controller.selectedTopic.value,
initialValue: controller.selectedTopic.value,
items:
controller.censusTopics.isEmpty
? []
Expand Down Expand Up @@ -126,7 +126,7 @@ class CensusDataView extends GetView<CensusDataController> {
? LocaleKeys.label_census_select_event_first.tr
: LocaleKeys.label_census_select_area.tr,
),
value: controller.selectedCensusArea.value,
initialValue: controller.selectedCensusArea.value,
items:
controller.censusAreas.isEmpty
? []
Expand Down Expand Up @@ -164,7 +164,7 @@ class CensusDataView extends GetView<CensusDataController> {
? LocaleKeys.label_census_select_event_topic_first.tr
: LocaleKeys.label_census_select_dataset.tr,
),
value: controller.selectedDataset.value,
initialValue: controller.selectedDataset.value,
items:
controller.censusDatasets.isEmpty
? []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class CensusDatasetView extends GetView<CensusDatasetController> {
),
labelText: LocaleKeys.label_census_select_event.tr,
),
value: controller.selectedEvent.value,
initialValue: controller.selectedEvent.value,
items:
controller.censuses
.map(
Expand All @@ -64,7 +64,7 @@ class CensusDatasetView extends GetView<CensusDatasetController> {

labelText: LocaleKeys.label_census_select_topic.tr,
),
value: controller.selectedTopic.value,
initialValue: controller.selectedTopic.value,
items:
controller.censusTopics
.map(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class CensusTopicView extends GetView<CensusTopicController> {
isDense: true,
labelText: LocaleKeys.label_language.tr,
),
value: controller.selectedEvent.value,
initialValue: controller.selectedEvent.value,
items:
controller.censuses
.map(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class DomainView extends GetView<DomainController> {
isDense: true,
labelText: LocaleKeys.label_type.tr,
),
value: controller.selectedType.value,
initialValue: controller.selectedType.value,
items:
DomainType.values
.map(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class InfographicView extends GetView<InfographicController> {
isDense: true,
labelText: LocaleKeys.label_language.tr,
),
value: controller.selectedLang.value,
initialValue: controller.selectedLang.value,
items:
DataLanguage.values
.map(
Expand Down
4 changes: 2 additions & 2 deletions app/example/lib/app/modules/news/views/news_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class NewsView extends GetView<NewsController> {
isDense: true,
labelText: LocaleKeys.label_language.tr,
),
value: controller.selectedLang.value,
initialValue: controller.selectedLang.value,
items:
DataLanguage.values
.map(
Expand Down Expand Up @@ -92,7 +92,7 @@ class NewsView extends GetView<NewsController> {
isDense: true,
labelText: LocaleKeys.label_news_category_optional.tr,
),
value: controller.newsCategory.value,
initialValue: controller.newsCategory.value,
items:
controller.newsCategories
.map(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class NewsCategoryView extends GetView<NewsCategoryController> {
isDense: true,
labelText: LocaleKeys.label_language.tr,
),
value: controller.selectedLang.value,
initialValue: controller.selectedLang.value,
items:
DataLanguage.values
.map(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class PressReleaseView extends GetView<PressReleaseController> {
isDense: true,
labelText: LocaleKeys.label_language.tr,
),
value: controller.selectedLang.value,
initialValue: controller.selectedLang.value,
items:
DataLanguage.values
.map(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class PublicationView extends GetView<PublicationController> {
isDense: true,
labelText: LocaleKeys.label_language.tr,
),
value: controller.selectedLang.value,
initialValue: controller.selectedLang.value,
items:
DataLanguage.values
.map(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class StaticTableView extends GetView<StaticTableController> {
isDense: true,
labelText: LocaleKeys.label_language.tr,
),
value: controller.selectedLang.value,
initialValue: controller.selectedLang.value,
items:
DataLanguage.values
.map(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class StatisticClassificationView
isDense: true,
labelText: LocaleKeys.label_language.tr,
),
value: controller.selectedLang.value,
initialValue: controller.selectedLang.value,
items:
DataLanguage.values
.map(
Expand Down Expand Up @@ -66,7 +66,7 @@ class StatisticClassificationView
isDense: true,
labelText: LocaleKeys.properties_classification_type.tr,
),
value: controller.selectedType.value,
initialValue: controller.selectedType.value,
items: const [
DropdownMenuItem(
value: KBLIType.y2009,
Expand Down Expand Up @@ -107,7 +107,7 @@ class StatisticClassificationView
isDense: true,
labelText: LocaleKeys.properties_classification_category.tr,
),
value: controller.selectedLevel.value,
initialValue: controller.selectedLevel.value,
items:
controller.selectedType.value.runtimeType == KBLIType
? const [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class StrategicIndicatorView extends GetView<StrategicIndicatorController> {
isDense: true,
labelText: LocaleKeys.label_language.tr,
),
value: controller.selectedLang.value,
initialValue: controller.selectedLang.value,
items:
DataLanguage.values
.map(
Expand Down
4 changes: 2 additions & 2 deletions app/example/lib/app/modules/subject/views/subject_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class SubjectView extends GetView<SubjectController> {
isDense: true,
labelText: LocaleKeys.label_language.tr,
),
value: controller.selectedLang.value,
initialValue: controller.selectedLang.value,
items:
DataLanguage.values
.map(
Expand Down Expand Up @@ -90,7 +90,7 @@ class SubjectView extends GetView<SubjectController> {
isDense: true,
labelText: LocaleKeys.label_subcat.tr,
),
value: controller.selectedSubjectCategory.value,
initialValue: controller.selectedSubjectCategory.value,
items:
controller.categories
.map(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class SubjectCategoryView extends GetView<SubjectCategoryController> {
isDense: true,
labelText: LocaleKeys.label_language.tr,
),
value: controller.selectedLang.value,
initialValue: controller.selectedLang.value,
items:
DataLanguage.values
.map(
Expand Down
2 changes: 1 addition & 1 deletion app/example/lib/app/modules/unit/views/unit_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class UnitView extends GetView<UnitController> {
isDense: true,
labelText: LocaleKeys.label_language.tr,
),
value: controller.selectedLang.value,
initialValue: controller.selectedLang.value,
items:
DataLanguage.values
.map(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class VariableView extends GetView<VariableController> {
isDense: true,
labelText: LocaleKeys.label_language.tr,
),
value: controller.selectedLang.value,
initialValue: controller.selectedLang.value,
items:
DataLanguage.values
.map(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class VerticalVariableView extends GetView<VerticalVariableController> {
isDense: true,
labelText: LocaleKeys.label_language.tr,
),
value: controller.selectedLang.value,
initialValue: controller.selectedLang.value,
items:
DataLanguage.values
.map(
Expand Down
72 changes: 0 additions & 72 deletions melos.yaml

This file was deleted.

4 changes: 2 additions & 2 deletions packages/stadata_flutter_sdk/lib/src/base/usecase.dart
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import 'package:meta/meta.dart';
import 'package:stadata_flutter_sdk/src/core/core.dart';

abstract class UseCase<Type, Params, Repo> {
abstract class UseCase<ReturnType, Params, Repo> {
@internal
final Repo repo;

const UseCase({required this.repo});

Future<Result<Failure, Type>> call(Params param);
Future<Result<Failure, ReturnType>> call(Params param);
}

class NoParams extends BaseEntity {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,6 @@ class StaticTable extends BaseEntity {
/// "Jumlah Penduduk Menurut Provinsi"
final String title;

/// Identifier of the statistical subject area this table belongs to
@Deprecated('use subjectID instead')
int get subjectId => subjectID;

/// Statistical subject identifier for thematic organization
///
/// Links this table to broader subject categories such as economic
Expand Down Expand Up @@ -124,7 +120,7 @@ class StaticTable extends BaseEntity {
List<Object?> get props => [
id,
title,
subjectId,
subjectID,
subject,
size,
table,
Expand Down
Loading