anchor.diff:          equals(const Color(0xff6e80a2)));
     });
   
  -  test('PaletteGenerator produces consistent results', () async {
  -    final ImageProvider image = await loadImage('landscape.png');
  +  testWidgets('PaletteGenerator produces consistent results',
  +      (WidgetTester tester) async {
  +    final ImageProvider image = testImages['landscape'];
   
       PaletteGenerator lastPalette =
           await PaletteGenerator.fromImageProvider(image);
  
positive.code:         within<Color>(distance: 8, from: const Color(0xff00ff00)));
    });
  
    test('PaletteGenerator works as expected on a real image', () async {
      final ImageProvider image = await loadImage('landscape.png');
      final PaletteGenerator palette =
          await PaletteGenerator.fromImageProvider(image);
      final List<PaletteColor> expectedSwatches = <PaletteColor>[
  
negative.code:         within<Color>(distance: 8, from: const Color(0xda000000)));
    });
  
    testWidgets('PaletteGenerator works with regions',
        (WidgetTester tester) async {
      final ImageProvider image = testImages['dominant'];
      Rect region = new Rect.fromLTRB(0.0, 0.0, 100.0, 100.0);
      PaletteGenerator palette =
          await PaletteGenerator.fromImageProvider(image, region: region);
  