fix: resolve flutter analyze warnings - unused imports, unnecessary casts
This commit is contained in:
@@ -3,7 +3,6 @@ import 'package:flutter/material.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import 'package:network_app/features/auth/presentation/login_screen.dart';
|
||||
import 'package:network_app/shared/providers/auth_provider.dart';
|
||||
import 'package:network_app/shared/services/api_client.dart';
|
||||
import 'package:mocktail/mocktail.dart';
|
||||
|
||||
|
||||
@@ -3,7 +3,6 @@ import 'package:flutter/material.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import 'package:network_app/features/clients/presentation/clients_screen.dart';
|
||||
import 'package:network_app/shared/providers/auth_provider.dart';
|
||||
import 'package:network_app/shared/services/api_client.dart';
|
||||
import 'package:mocktail/mocktail.dart';
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
|
||||
void main() {
|
||||
@@ -53,7 +52,7 @@ void main() {
|
||||
'company': null,
|
||||
};
|
||||
|
||||
final company = client['company'] as String?;
|
||||
final company = client['company'];
|
||||
expect(company, isNull);
|
||||
});
|
||||
|
||||
@@ -64,7 +63,7 @@ void main() {
|
||||
'company': '',
|
||||
};
|
||||
|
||||
final company = client['company'] as String?;
|
||||
final company = client['company'];
|
||||
final hasCompany = company != null && company.isNotEmpty;
|
||||
expect(hasCompany, isFalse);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user