Created
February 13, 2021 18:06
-
-
Save fredgrott/ca849033a862b36df275e345e4893fa1 to your computer and use it in GitHub Desktop.
flutter test config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:async'; | |
import 'package:golden_toolkit/golden_toolkit.dart'; | |
Future<void> main(FutureOr<void> Function() testMain) async { | |
return GoldenToolkit.runWithConfiguration( | |
() async { | |
await loadAppFonts(); | |
await testMain(); | |
}, | |
config: GoldenToolkitConfiguration( | |
enableRealShadows: true, | |
), | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment