Skip to content

Commit 089520c

Browse files
committed
Chore: Update screenshots
1 parent ee5c79b commit 089520c

26 files changed

+18
-11
lines changed
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
-5 Bytes
Loading
92 Bytes
Loading
Loading
Loading

pubspec.lock

+2-2
Original file line numberDiff line numberDiff line change
@@ -313,10 +313,10 @@ packages:
313313
dependency: "direct dev"
314314
description:
315315
name: golden_screenshot
316-
sha256: "6c800c8e1338434ccb68dec788b5121bf97d256aa6a98b43a4330190572f144a"
316+
sha256: "03b34656154b7e08125de8671962f4862b08ea1f57522d32a16fce4b71a1f394"
317317
url: "https://pub.dev"
318318
source: hosted
319-
version: "2.2.2"
319+
version: "3.0.0"
320320
golden_toolkit:
321321
dependency: transitive
322322
description:

pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ dev_dependencies:
7575
flutter_test:
7676
sdk: flutter
7777

78-
golden_screenshot: ^2.0.1
78+
golden_screenshot: ^3.0.0
7979

8080
icons_launcher: ^3.0.0
8181

test/game_golden_test.dart

+15-8
Original file line numberDiff line numberDiff line change
@@ -96,38 +96,45 @@ void main() {
9696
ShopItems.bulletColors[7].purchase(noCost: true);
9797
ShopItems.bulletColors[9].purchase(noCost: true);
9898

99+
const darkFrameIcons = ScreenshotFrameColors(
100+
topBarIconBrightness: Brightness.dark,
101+
gestureHintBrightness: Brightness.dark,
102+
);
103+
const lightFrameIcons = ScreenshotFrameColors(
104+
topBarIconBrightness: Brightness.light,
105+
gestureHintBrightness: Brightness.light,
106+
);
107+
99108
_testGame(
109+
frameColors: darkFrameIcons,
100110
goldenFileName: '1_home',
101111
child: const HomePage(),
102112
);
103113
_testGame(
104114
gameSave: inProgressGameSave,
105-
frameColors: const ScreenshotFrameColors(
106-
topBar: RicochlimePalette.waterColor,
107-
onTopBar: Color(0xFFeaf2f8),
108-
bottomBar: RicochlimePalette.waterColor,
109-
onBottomBar: Color(0xFFeaf2f8),
110-
),
115+
frameColors: lightFrameIcons,
111116
goldenFileName: '2_play',
112117
child: const PlayPage(),
113118
);
114119
// _testGame(
115120
// gameSave: gameOverGameSave,
116-
// frameColor: RicochlimePalette.waterColor,
117-
// onFrameColor: const Color(0xFFeaf2f8),
121+
// frameColors: darkFrameIcons,
118122
// goldenFileName: '3_game_over',
119123
// child: const PlayPage(),
120124
// );
121125
_testGame(
122126
goldenFileName: '4_shop',
127+
frameColors: darkFrameIcons,
123128
child: const ShopPage(),
124129
);
125130
_testGame(
126131
goldenFileName: '5_tutorial',
132+
frameColors: darkFrameIcons,
127133
child: const TutorialPage(),
128134
);
129135
_testGame(
130136
goldenFileName: '6_settings',
137+
frameColors: darkFrameIcons,
131138
child: const SettingsPage(),
132139
);
133140
});

0 commit comments

Comments
 (0)