Skip to content

Commit

Permalink
reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
YassinNouh21 committed May 29, 2024
1 parent 39be421 commit 80a0035
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion lib/src/domain/model/failure/mosque/mosque_failure.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ abstract class MosqueFailure implements Exception {
});
}


class MosqueNotFoundFailure extends MosqueFailure {
const MosqueNotFoundFailure()
: super(
Expand Down
2 changes: 1 addition & 1 deletion lib/src/helpers/Api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class Api {
}

static Future<Mosque> getMosque(String id) async {
try{
try {
final response = await dio.get(
'/3.0/mosque/$id/info',
);
Expand Down
6 changes: 3 additions & 3 deletions lib/src/services/mosque_manager.dart
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ class MosqueManager extends ChangeNotifier with WeatherMixin, AudioMixin, Mosque
Future<void> _saveToLocale() async {
logger.d("Saving into local");
// await sharedPref.save('mosqueId', mosqueId);
await sharedPref.save('mosqueUUId', mosqueUUID);
await sharedPref.save('mosqueUUId', '95ebeb96-b2d5-4182-bcd5-c71c3cc80007');
// sharedPref.save('mosqueSlug', mosqueSlug);
}

Expand Down Expand Up @@ -133,7 +133,7 @@ class MosqueManager extends ChangeNotifier with WeatherMixin, AudioMixin, Mosque

/// if getting item returns an error
onItemError(e, stack) {
if(e is MosqueFailure){
if (e is MosqueFailure) {
mosque = null;
notifyListeners();
return;
Expand Down Expand Up @@ -198,7 +198,7 @@ class MosqueManager extends ChangeNotifier with WeatherMixin, AudioMixin, Mosque

loadWeather(mosque!);

mosqueUUID = uuid;
mosqueUUID = '95ebeb96-b2d5-4182-bcd5-c71c3cc80007';
}

Future<Mosque> searchMosqueWithId(String mosqueId) => Api.searchMosqueWithId(mosqueId);
Expand Down

0 comments on commit 80a0035

Please sign in to comment.