Skip to content

Commit

Permalink
fix unused imports and other things that flutter analyze was complain…
Browse files Browse the repository at this point in the history
…ing about
  • Loading branch information
MoralCode committed Apr 21, 2022
1 parent 0a9339f commit 5bef760
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 7 deletions.
3 changes: 1 addition & 2 deletions lib/helpers.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import 'dart:async';
import 'dart:math';
import 'dart:typed_data';

import '../internal/datatypes.dart';
import 'package:csafe_fitness/csafe_fitness.dart';

import 'models/workout.dart';
Expand Down Expand Up @@ -65,7 +64,7 @@ String durationToSplit(Duration d) {
String millis = durSplit.last.substring(0, 1);
// print(millis);

return "${d.inMinutes}:${time.last.padLeft(2, "0")}.${millis}";
return "${d.inMinutes}:${time.last.padLeft(2, "0")}.$millis";
}

//conversion functions for watts and split (from crewlab app)
Expand Down
2 changes: 0 additions & 2 deletions lib/models/ergometer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@ import 'package:c2bluetooth/c2bluetooth.dart';
import '../internal/commands.dart';
import '../internal/datatypes.dart';
import 'package:csafe_fitness/csafe_fitness.dart';
import 'package:c2bluetooth/enums.dart';
import '../helpers.dart';
import 'workout.dart';
import '../data/workoutsummary.dart';
import 'package:c2bluetooth/constants.dart' as Identifiers;
import 'package:flutter_ble_lib_ios_15/flutter_ble_lib.dart';
import 'package:rxdart/rxdart.dart';
Expand Down
1 change: 0 additions & 1 deletion test/helpers_test.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import 'dart:typed_data';

import '../lib/internal/datatypes.dart';
import 'package:c2bluetooth/helpers.dart';
import 'package:c2bluetooth/models/workout.dart';
import 'package:flutter_test/flutter_test.dart';
Expand Down
2 changes: 1 addition & 1 deletion test/internal/datatypes_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import 'package:flutter_test/flutter_test.dart';
void main() {
group('Tests for Concept2IntegerWithUnits', () {
Uint8List dead = Uint8List.fromList([0x40, 0xDE, 0xAD]);
Uint8List adde = Uint8List.fromList([0x40, 0xAD, 0xDE]);
// Uint8List adde = Uint8List.fromList([0x40, 0xAD, 0xDE]);

Uint8List deadbeef = Uint8List.fromList([0x40, 0xEF, 0xBE, 0xAD, 0xDE]);

Expand Down
1 change: 0 additions & 1 deletion test/workout_test.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import 'package:c2bluetooth/enums.dart';
import 'package:c2bluetooth/models/workout.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:c2bluetooth/models/workout.dart';

void main() {
group("Workout - ", () {
Expand Down

0 comments on commit 5bef760

Please sign in to comment.