Skip to content

Instantly share code, notes, and snippets.

@fredgrott
Created February 13, 2021 18:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fredgrott/ca849033a862b36df275e345e4893fa1 to your computer and use it in GitHub Desktop.
Save fredgrott/ca849033a862b36df275e345e4893fa1 to your computer and use it in GitHub Desktop.
flutter test config
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