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:convert'; | |
| final class CacheItem { | |
| final String key; | |
| final Object data; | |
| final DateTime expiry; | |
| const CacheItem._(this.key, this.data, this.expiry); | |
| /// This factory constructor is used for caching data that shouldn't persist |
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:io'; | |
| import 'package:connectivity_plus/connectivity_plus.dart'; | |
| /// Connectivity service use to check if an app is connected to the internet. | |
| /// Exposes a stream to allow the client perform more on time state changes as connectivity changes. | |
| /// Also exposes a hasConnection getter for one-off on-demand connection checks. | |
| /// Call ConnectivityService.instance.initialise() to get the service up and running. | |
| /// Service depends on connectivity_plus. |
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'; | |
| // Records | |
| typedef Position = ({double? x, double? y}); | |
| typedef VisibleArea = ({Position topLeft, Position bottomRight}); | |
| // Callbacks | |
| typedef SizeCallback = void Function(({double? height, double? width})); |
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 'package:amplify_flutter/amplify_flutter.dart'; | |
| import 'notification_dto.dart'; | |
| import 'service.dart'; | |
| Future<void> amplifyBackgroundNotificationReceivedHandler( | |
| PushNotificationMessage notification) async { | |
| NotificationService.backgroundNotificationReceivedHandler( |
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
| mixin OverlayStateMixin<T extends StatefulWidget> on State<T> { | |
| @override | |
| void dispose() { | |
| removeOverlay(); | |
| super.dispose(); | |
| } | |
| @override | |
| void didChangeDependencies() { | |
| removeOverlay(); |
OlderNewer