Skip to content

Commit

Permalink
fix: warnings on publish for at_follows_flutter
Browse files Browse the repository at this point in the history
  • Loading branch information
XavierChanth committed Sep 21, 2023
1 parent bcad99a commit 294a0a2
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@ import 'package:at_follows_flutter/domain/atsign.dart';
import 'package:at_follows_flutter/domain/connection_model.dart';
import 'package:at_follows_flutter/services/sdk_service.dart';
import 'package:at_follows_flutter/utils/app_constants.dart';
import 'package:at_commons/at_commons.dart';
import 'package:at_follows_flutter/utils/strings.dart';
import 'package:at_utils/at_logger.dart';
import 'package:at_lookup/at_lookup.dart';
import 'package:at_client_mobile/at_client_mobile.dart';
import 'package:at_client/at_client.dart';

Expand Down
4 changes: 1 addition & 3 deletions packages/at_follows_flutter/lib/services/sdk_service.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import 'dart:convert';

import 'package:at_client/src/service/notification_service.dart';
import 'package:at_client_mobile/at_client_mobile.dart';
import 'package:at_commons/at_commons.dart';
import 'package:at_follows_flutter/exceptions/at_follows_exceptions.dart';
import 'package:at_follows_flutter/services/connections_service.dart';
import 'package:at_follows_flutter/utils/app_constants.dart';
Expand Down Expand Up @@ -154,7 +152,7 @@ class SDKService {
: AppConstants.followersKey;
await this.put(newKey, value.value);
value = await this.get(newKey);
if (value != null && value.value != null) {
if (value.value != null) {
await this.delete(scanKey[0]);
}
}
Expand Down
6 changes: 3 additions & 3 deletions packages/at_follows_flutter/lib/widgets/followers.dart
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class _FollowersState extends State<Followers> {
),
);
} else if (provider.status == Status.done) {
WidgetsBinding.instance!.addPostFrameCallback((_) async {
WidgetsBinding.instance.addPostFrameCallback((_) async {
widget.count!();
});
if (_connectionsService.followerAtsign != null) {
Expand Down Expand Up @@ -257,7 +257,7 @@ class _FollowersState extends State<Followers> {
} else if (provider.status == Status.error) {
return AtExceptionHandler().handle(provider.error, context);
} else {
WidgetsBinding.instance!.addPostFrameCallback((_) async {
WidgetsBinding.instance.addPostFrameCallback((_) async {
await provider.getAtsignsList(isFollowing: widget.isFollowing);
});
return SizedBox();
Expand All @@ -273,7 +273,7 @@ class _FollowersState extends State<Followers> {

return;
}
WidgetsBinding.instance!.addPostFrameCallback((_) async {
WidgetsBinding.instance.addPostFrameCallback((_) async {
_isDialogOpen = true;
showDialog(
context: context,
Expand Down
2 changes: 0 additions & 2 deletions packages/at_follows_flutter/lib/widgets/web_view_screen.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import 'dart:io';

import 'package:at_follows_flutter/utils/app_constants.dart';
import 'package:at_follows_flutter/utils/color_constants.dart';
import 'package:at_follows_flutter/widgets/custom_appbar.dart';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// ignoring this for the entire file to make it easier to detect real issues when doing review for publishing
// ignore_for_file: unused_local_variable

import 'dart:async';
import 'dart:convert';
import 'dart:io';
Expand All @@ -10,7 +13,6 @@ import 'package:at_follows_flutter/services/sdk_service.dart';
import 'package:at_follows_flutter/utils/app_constants.dart';
import 'package:flutter_test/flutter_test.dart';
import '../at_demo_credentials.dart' as demo_data;
import 'package:at_commons/at_commons.dart';

SDKService _sdkService = SDKService();
ConnectionsService _connectionsService = ConnectionsService();
Expand All @@ -23,7 +25,9 @@ void main() {
final atClientManager = AtClientManager.getInstance();
_connectionsService.init(senderAtsign);
ConnectionProvider().init(senderAtsign);
atClientManager.notificationService.subscribe().listen((notification) {
atClientManager.atClient.notificationService
.subscribe()
.listen((notification) {
monitorCallBack(notification);
});
});
Expand All @@ -34,6 +38,7 @@ void main() {

await setUpFunc(receiverAtsign);
AtClientManager.getInstance()
.atClient
.notificationService
.subscribe()
.listen((notification) {
Expand Down

0 comments on commit 294a0a2

Please sign in to comment.