Skip to content

Commit

Permalink
fix: coverage plus cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Suraj Adhikari committed Dec 9, 2021
1 parent c392d7c commit 0d933a2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
5 changes: 0 additions & 5 deletions lib/providers/trait_detail_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@ class TraitDetailProvider extends ChangeNotifier {

Device? get deviceDetail => _deviceDetail;

set deviceDetail(Device? detail) {
_deviceDetail = detail;
notifyListeners();
}

TraitDetailProvider(Request request, String deviceId,
{GetDetailsFunction getDetails = DevicesRepository.getDeviceDetails}) {
_request = request;
Expand Down
5 changes: 3 additions & 2 deletions lib/traits/lock.dart
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ class LockWidget extends StatelessWidget {
child: _lockProvider.loadingAction
? CircularProgressIndicator()
: _lockProvider.isLocked
? LockIcon(true, size: 100.0)
: LockIcon(false, size: 100.0)),
? LockIcon(true, size: 100.0, color: Colors.white)
: LockIcon(false,
size: 100.0, color: Colors.white)),
),
),
SizedBox(
Expand Down
4 changes: 0 additions & 4 deletions test/traits/detail_screen_test.mocks.dart
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,6 @@ class MockTraitDetailProvider extends _i1.Mock
_i1.throwOnMissingStub(this);
}

@override
set deviceDetail(_i2.Device? detail) =>
super.noSuchMethod(Invocation.setter(#deviceDetail, detail),
returnValueForMissingStub: null);
@override
set setLoading(bool? newLoading) =>
super.noSuchMethod(Invocation.setter(#setLoading, newLoading),
Expand Down

0 comments on commit 0d933a2

Please sign in to comment.