This file contains 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:developer'; | |
import 'package:flutter/widgets.dart'; | |
class AppLifeCycleWidgetWrapper extends StatefulWidget { | |
const AppLifeCycleWidgetWrapper({ | |
required this.child, | |
this.onMoveToForeground, | |
this.onMoveToBackground, | |
this.onAppPaused, |
This file contains 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
enum Game { | |
tekken( | |
nameTranslationKey: SKeys.game_name_tekken, | |
gameSize: GameSize.large, | |
iconPath: AppImages.gameLogoTekken, | |
requiresPass: true, | |
), | |
pokemon_blue( | |
nameTranslationKey: SKeys.game_name_pokemon_blue, | |
gameSize: GameSize.large, |
This file contains 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
const String _mockDataJson = 'assets/mock_data/events_spots_localization_mock_data.json'; | |
const int _mockCallMillisecondsDuration = 500; | |
@Injectable( | |
as: RemoteDataSourceMock, | |
env: [Flavor.DEVELOP, Flavor.STAGE], | |
) | |
class RemoteDataSourceMock implements RemoteDataSource { | |
@override | |
Future<List<DataModel>> getData({required GeoPoint userLocation}) async => |
This file contains 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:ui'; | |
//creates hexString like #C6DEE5 | |
extension ColorExtension on Color{ | |
String toHexString() { | |
final hex = value.toRadixString(16).toUpperCase(); | |
return hex.replaceFirst('FF','#'); | |
} | |
} |