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
4 changes: 1 addition & 3 deletions lib/remote/fskin_remote_config.dart
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ class FskinRemoteConfig {
// Call the skin service to fetch skin for developer and project
//final skin = await SkinService().getSkin(apiKey);
_cachedConfig = await SkinService().fetchData(apiKey);
if (_cachedConfig != null) {
_skinController.add(ThemeData(colorScheme: _cachedConfig!.skin?.colors));
}
_skinController.add(ThemeData(colorScheme: _cachedConfig?.skin?.colors));
}
}
5 changes: 4 additions & 1 deletion lib/services/skin_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ class SkinService {
body: jsonEncode({'apiKey': apiKey}),
)
.timeout(const Duration(seconds: 5));


_logger.logMessage(
'Received response with status code: ${response.statusCode}',
);
if (response.statusCode != 200) {
_logger.logError(
'Error fetching skin configuration: ${response.statusCode}',
Expand Down
Loading