Repository: flutter
Issue: Text not rendered in snapshot test
Labels: a: tests,framework,d: api docs,P2,team-framework,triaged-framework

I am having problems with snapshot testing. My text is not rendered. When I run the app itself everything works perfectly.

```
void main() {
   testWidgets('Test an account Overview Item', (tester) async {
    await tester.pumpWidget(TestWrapper());

    await tester.pumpAndSettle();

    await expectLater(
      find.byType(RepaintBoundary),
      matchesGoldenFile('account_overview_item_default2.png'),
    );
  });
}


import 'package:flutter/material.dart';
import 'package:flutter_localizations/flutter_localizations.dart';
import 'package:app/util/locale/localization.dart';
import 'package:app/util/locale/localization_delegate.dart';
import 'package:app/util/locale/localization_fallback_cupertino_delegate.dart';

class TestWrapper extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    const locale = Locale('en');
    return Localizations(
      locale: locale,
      delegates: [
        LocalizationDelegate(newLocale: locale),
        GlobalMaterialLocalizations.delegate,
        GlobalWidgetsLocalizations.delegate,
        FallbackCupertinoLocalisationsDelegate.delegate,
      ],
      child: RepaintBoundary(child: LayoutBuilder(builder: (context, constraints) => Text(Localization.of(context).welcomeMessage))),
    );
  }
}

```

![image](https://user-images.githubusercontent.com/21172855/66039981-9a2a1080-e516-11e9-88a9-38479c4a0594.png)


```
[✓] Flutter (Channel stable, v1.9.1+hotfix.2, on Mac OS X 10.15 19A536g, locale en-BE)
    • Flutter version 1.9.1+hotfix.2 at /Users/vanlooverenkoen/flutter
    • Framework revision 2d2a1ffec9 (4 weeks ago), 2019-09-06 18:39:49 -0700
    • Engine revision b863200c37
    • Dart version 2.5.0

 
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.1)
    • Android SDK at /Users/vanlooverenkoen/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 29.0.1
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.0)
    • Xcode at /Applications/Xcode-beta.app/Contents/Developer
    • Xcode 11.0, Build version 11M382q
    • CocoaPods version 1.7.5

[✓] Android Studio (version 3.5)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 39.0.3
    • Dart plugin version 191.8423
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)

[!] VS Code (version 1.38.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    ✗ Flutter extension not installed; install from
      https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (1 available)
    • iPhone Xs Max • 227BD263-CF94-4580-99FC-2C8A9CABBBDD • ios • com.apple.CoreSimulator.SimRuntime.iOS-13-0 (simulator)

```