diff --git a/test/flutter_test_config.dart b/test/flutter_test_config.dart index c51cd3d..f0ac3fb 100644 --- a/test/flutter_test_config.dart +++ b/test/flutter_test_config.dart @@ -1,4 +1,5 @@ import 'dart:async'; +import 'package:flutter/foundation.dart'; import 'package:flutter/widgets.dart'; import 'package:golden_toolkit/golden_toolkit.dart'; @@ -8,7 +9,20 @@ Future testExecutable(FutureOr Function() testMain) async { await loadAppFonts(); await testMain(); }, - config: GoldenToolkitConfiguration(defaultDevices: _defaultDevices), + config: GoldenToolkitConfiguration( + defaultDevices: _defaultDevices + + _defaultDevices + .map( + (d) => Device( + name: '${d.name} (Dark)', + size: d.size, + devicePixelRatio: d.devicePixelRatio, + safeArea: d.safeArea, + brightness: Brightness.dark, + ), + ) + .toList(), + ), ); }