Fonts

If you are using google_fonts package to load custom fonts in your app, you need to pre-load the fonts in Widgetbook, to avoid visual font swaps.

widgetbook/lib/main.dart
Future<void> main() async {
  // TODO: replace `lato` with your desired font
  WidgetsFlutterBinding.ensureInitialized(); 
  await GoogleFonts.pendingFonts([GoogleFonts.lato()]); 
  runApp(const WidgetbookApp());
}