Skip to content

Commit

Permalink
fix: more analyzer warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
srieteja committed Jun 5, 2024
1 parent e851d73 commit ea7614c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
16 changes: 8 additions & 8 deletions packages/at_backupkey_flutter/lib/widgets/backup_key_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ import 'dart:io';
import 'dart:typed_data';

import 'package:at_backupkey_flutter/services/backupkey_service.dart';
import 'package:at_backupkey_flutter/utils/size_config.dart';
import 'package:at_backupkey_flutter/utils/strings.dart';
import 'package:at_file_saver/at_file_saver.dart';
import 'package:at_utils/at_logger.dart';
import 'package:file_selector/file_selector.dart';
import 'package:flutter/material.dart';
import 'package:at_backupkey_flutter/utils/size_config.dart';
import 'package:path_provider/path_provider.dart' as path_provider;
import 'package:path_provider/path_provider.dart';
import 'package:permission_handler/permission_handler.dart';
import 'package:path_provider/path_provider.dart' as path_provider;
import 'package:share_plus/share_plus.dart';
import 'package:at_utils/at_logger.dart';
import 'package:at_file_saver/at_file_saver.dart';
import 'package:file_selector/file_selector.dart';
import 'package:showcaseview/showcaseview.dart';

class BackupKeyWidget extends StatelessWidget {
Expand Down Expand Up @@ -101,7 +101,7 @@ class BackupKeyWidget extends StatelessWidget {
showDialog(
context: context,
barrierDismissible: false,
builder: (_) {
builder: (context1) {
return AlertDialog(
title: Row(
children: [
Expand All @@ -114,14 +114,14 @@ class BackupKeyWidget extends StatelessWidget {
],
),
content: Text(
'Couldn\'t able to backup the key file',
'Could not backup the key file',
style:
TextStyle(fontWeight: FontWeight.bold, fontSize: 14.toFont),
),
actions: <Widget>[
TextButton(
onPressed: () {
Navigator.pop(_);
Navigator.pop(context1);
},
child: const Text('Close'),
)
Expand Down
5 changes: 0 additions & 5 deletions packages/at_chat_flutter/lib/services/chat_service.dart
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
/// A service to handle save and retrieve operation on chat
import 'dart:async';
import 'dart:convert';
import 'dart:io';
import 'dart:typed_data';

import 'package:at_chat_flutter/models/message_model.dart';

// ignore: import_of_legacy_library_into_null_safe
import 'package:at_client_mobile/at_client_mobile.dart';

// ignore: import_of_legacy_library_into_null_safe
import 'package:flutter/material.dart';

/// Service to manage the chat messages for different atsigns
Expand Down

0 comments on commit ea7614c

Please sign in to comment.