mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-21 23:10:40 +00:00
added devices with dark theme
This commit is contained in:
parent
b89fac57e3
commit
1d1b7a7413
1 changed files with 15 additions and 1 deletions
|
@ -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<void> testExecutable(FutureOr<void> 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(),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue