This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(const MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
const MyApp({super.key}); | |
@override |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
main() { | |
List<String> sensitiveKeys = ["id", "token"]; | |
Map<String, dynamic> data = { | |
"kind": "books#volumes", | |
"totalItems": 1, | |
"items": [ | |
{"id": "qwerty", "name": "Dane", "surname": "Mackier", "age": 22, "token": 123456}, | |
{"id": "asdfgh", "name": "Fernando", "surname": "Ferrara", "age": 43, "token": 654321}, | |
], | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class LocalNotificationService { | |
Function _registerTaskListener; | |
Completer _taskCompleter; | |
/// Registers a callback function. Typically to register a task. | |
void registerTaskListener(Function(LocalNotificationRequest) registerTaskListener) { | |
_registerTaskListener = registerTaskListener; | |
} | |
/// Calls the task listener and returns a Future that will wait for taskComplete. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class LocalNotificationService { | |
Function _registerTaskListener; | |
Completer _taskCompleter; | |
/// Registers a callback function. Typically to register a task. | |
void registerTaskListener(Function(LocalNotificationRequest) registerTaskListener) { | |
_registerTaskListener = registerTaskListener; | |
} | |
/// Calls the task listener and returns a Future that will wait for taskComplete. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:async'; | |
import 'dart:convert'; | |
import 'dart:io'; | |
import 'package:project/core/services/stoppable_service.dart'; | |
import 'package:http/http.dart' as http; | |
import 'package:meta/meta.dart'; | |
import 'package:project/core/services/local_storage_service.dart'; | |
import 'package:project/locator.dart'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:project/core/constants/route_paths.dart' as routes; | |
import 'package:project/core/services/navigation_service.dart'; | |
import 'package:project/core/services/stoppable_service.dart'; | |
import 'package:project/core/utils/localization_keys.dart'; | |
import 'package:project/locator.dart'; | |
class RecoveryService extends StoppableService { | |
final _navigationService = locator<NavigationService>(); | |
Duration appInBackground; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.ferrarafer.android.androidrecipes.recipemain; | |
import com.ferrarafer.android.androidrecipes.BuildConfig; | |
import com.ferrarafer.android.androidrecipes.api.RecipeSearchResponse; | |
import com.ferrarafer.android.androidrecipes.api.RecipeService; | |
import com.ferrarafer.android.androidrecipes.entities.Recipe; | |
import com.ferrarafer.android.androidrecipes.libs.base.EventBus; | |
import com.ferrarafer.android.androidrecipes.recipemain.events.RecipeMainEvent; | |
import java.util.Random; |