Skip to content

Commit

Permalink
Run dart format
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrox-hs committed Nov 3, 2023
1 parent bac987d commit e250413
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 11 deletions.
2 changes: 1 addition & 1 deletion auto_route/generator/lib/auto_route_generator.dart
Original file line number Diff line number Diff line change
@@ -1 +1 @@
library auto_route_generator;
library auto_route_generator;
4 changes: 3 additions & 1 deletion flutter_toolkit/lib/src/commands/project_setup.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ class ProjectSetupCommand extends BaseCommand<IFlutterFireConfig> {
LoginToFirebaseIfNeeded().call,
RemoveOldConfigFiles().call,
FlutterFireConfigure(args).call,
RemoveUnusedClientInfo(androidPackageName: args.androidPackageName).call,
RemoveUnusedClientInfo(
androidPackageName: args.androidPackageName,
).call,
];
}

Expand Down
6 changes: 3 additions & 3 deletions logify/lib/src/log_recorder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ abstract class LogRecorder {
LogRecorder({
Stdout? stdout,
Stdout? stderr,
}) : stdout = stdout ?? io.stdout,
stderr = stderr ?? io.stderr;
}) : stdout = stdout ?? io.stdout,
stderr = stderr ?? io.stderr;

final Stdout stdout;
final Stdout stderr;

bool get forceStackTrace => false;

String record(LogRecord record);
Expand Down
7 changes: 5 additions & 2 deletions logify/lib/src/platform/print.dart
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ void debugPrintThrottled(String? message) {
_debugPrintTask();
}
}

int _debugPrintedCharacters = 0;
const int _kDebugPrintCapacity = 12 * 1024;
const Duration _kDebugPrintPauseTime = Duration(seconds: 1);
Expand All @@ -62,7 +63,8 @@ void _debugPrintTask() {
_debugPrintStopwatch.reset();
_debugPrintedCharacters = 0;
}
while (_debugPrintedCharacters < _kDebugPrintCapacity && _debugPrintBuffer.isNotEmpty) {
while (_debugPrintedCharacters < _kDebugPrintCapacity &&
_debugPrintBuffer.isNotEmpty) {
final String line = _debugPrintBuffer.removeFirst();
_debugPrintedCharacters += line.length;
print(line);
Expand All @@ -82,4 +84,5 @@ void _debugPrintTask() {
/// A Future that resolves when there is no longer any buffered content being
/// printed by [debugPrintThrottled] (which is the default implementation for
/// [debugPrint], which is used to report errors to the console).
Future<void> get debugPrintDone => _debugPrintCompleter?.future ?? Future<void>.value();
Future<void> get debugPrintDone =>
_debugPrintCompleter?.future ?? Future<void>.value();
2 changes: 1 addition & 1 deletion logify/lib/src/recorder/debug_log_recorder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class DebugLogRecorder extends LogRecorder with LogRecorderTemplateMixin {
case 'message':
return record.message.colored(color);
case 'location':
/// maybe make this configurable from [params]?
// maybe make this configurable from [params]?
final location = record.location;
if (location == null) return '';
return _applyPadding(stdout, record.message, location)
Expand Down
3 changes: 2 additions & 1 deletion logify/lib/src/utils/color.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/// Uses ANSI escape codes to color the console.
/// Color value is based on the 8-color ANSI standard.
///
///
/// for more info see: https://en.wikipedia.org/wiki/ANSI_escape_code#Colors
class ConsoleColor {
const ConsoleColor._(
Expand All @@ -20,6 +20,7 @@ class ConsoleColor {

/// Use this to reset the console color.
factory ConsoleColor.defaults() = _ConsoleColorDefault;

/// Use this to disable colors.
factory ConsoleColor.none() = _ConsoleColorNone;

Expand Down
2 changes: 1 addition & 1 deletion logify/lib/src/utils/string.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ extension StringExt on String {
}

/// Replace all occurrences of {index} with the corresponding parameter..
///
///
/// Example:
/// ```
/// '{0} {2} {0}'.format(['foo', 'bar', 'baz', 'qux']);
Expand Down
2 changes: 1 addition & 1 deletion simple_nav/lib/simple_nav.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
library simple_nav;

export 'src/route_resolver.dart';
export 'src/route_resolver.dart';

0 comments on commit e250413

Please sign in to comment.