From 1d1b7a74131809c96231bca956ba1855d712c142 Mon Sep 17 00:00:00 2001 From: Vadim <44135514+vodemn@users.noreply.github.com> Date: Thu, 11 Apr 2024 14:02:52 +0200 Subject: [PATCH] added devices with dark theme --- test/flutter_test_config.dart | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) 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(), + ), ); }