Skip to content

Commit

Permalink
fix: remove dependency on the discontinued supercharged
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasWanke committed Jan 5, 2022
1 parent 428fa61 commit 967171d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
17 changes: 8 additions & 9 deletions lib/src/helpers/device_info_io.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import 'package:data_size/data_size.dart';
import 'package:device_info_plus/device_info_plus.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/widgets.dart';
import 'package:supercharged/supercharged.dart';

Future<List<DiagnosticsNode>> getDiagnostics() async {
assert(!kIsWeb);
Expand Down Expand Up @@ -37,21 +36,21 @@ Future<List<DiagnosticsNode>> _getDiagnosticsAndroid() async {
info.androidId,
level: DiagnosticLevel.fine,
),
FlagsSummary(
StringProperty(
'Supported 32-Bit ABIs',
info.supported32BitAbis.whereNotNull().associateWith((it) => true),
info.supported32BitAbis.whereNotNull().join(', '),
),
FlagsSummary(
StringProperty(
'Supported 64-Bit ABIs',
info.supported64BitAbis.whereNotNull().associateWith((it) => true),
info.supported64BitAbis.whereNotNull().join(', '),
),
FlagsSummary(
StringProperty(
'Supported ABIs',
info.supportedAbis.whereNotNull().associateWith((it) => true),
info.supportedAbis.whereNotNull().join(', '),
),
FlagsSummary(
StringProperty(
'System Features',
info.systemFeatures.whereNotNull().associateWith((it) => true),
info.systemFeatures.whereNotNull().join(', '),
level: DiagnosticLevel.fine,
),
],
Expand Down
5 changes: 3 additions & 2 deletions lib/src/helpers/logs/widgets.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:implicitly_animated_list/implicitly_animated_list.dart';
import 'package:supercharged/supercharged.dart';

import '../../debug_helper.dart';
import '../../utils/level_selector.dart';
Expand Down Expand Up @@ -76,7 +75,9 @@ class LogEntryWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
// We don't show the date to save space.
final formattedTimestamp = log.timestamp.toString().allAfter(' ');
final rawTimestamp = log.timestamp.toString();
final timeStartIndex = rawTimestamp.indexOf(' ') + 1;
final formattedTimestamp = rawTimestamp.substring(timeStartIndex);

final color = _getTextColor(context);
final content = Text.rich(
Expand Down
1 change: 0 additions & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ dependencies:
meta: ^1.3.0
package_info_plus: ^1.0.0
shake: ^2.0.0
supercharged: ^2.0.0

dev_dependencies:
flutter_lints: ^1.0.4

0 comments on commit 967171d

Please sign in to comment.