Skip to content

Commit f884911

Browse files
Renamed 'film strip' to 'timeline'
1 parent 963c7ec commit f884911

File tree

14 files changed

+101
-97
lines changed

14 files changed

+101
-97
lines changed

doc/marketing_goldens/timeline_animation/animation_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import 'package:flutter_test_goldens/flutter_test_goldens.dart';
66
void main() {
77
group("Marketing > timeline >", () {
88
testGoldenScene("animation", (tester) async {
9-
await FilmStrip(
9+
await Timeline(
1010
"Crazy Switch - Flip animation",
1111
fileName: 'crazy-switch_5-shot',
1212
layout: AnimationTimelineSceneLayout(),
@@ -22,7 +22,7 @@ void main() {
2222
.takePhoto("On")
2323
.run(tester);
2424

25-
await FilmStrip(
25+
await Timeline(
2626
"Crazy Switch - Flip animation",
2727
fileName: 'crazy-switch_8-shot',
2828
layout: AnimationTimelineSceneLayout(),

doc/marketing_goldens/timeline_interaction/otp_interaction_test.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ void main() {
1717
));
1818

1919
// The following code is broken apart so we can include pieces across slides.
20-
final filmStrip = FilmStrip(
20+
final timeline = Timeline(
2121
"OTP - Digit Entry",
2222
fileName: 'otp',
2323
itemScaffold: shadcnItemScaffold,
@@ -27,7 +27,7 @@ void main() {
2727
),
2828
);
2929

30-
filmStrip.setupWithWidget(Padding(
30+
timeline.setupWithWidget(Padding(
3131
padding: const EdgeInsets.all(48),
3232
child: ShadInputOTP(
3333
onChanged: (v) {},
@@ -52,7 +52,7 @@ void main() {
5252
),
5353
));
5454

55-
await filmStrip
55+
await timeline
5656
.takePhoto("Idle")
5757
.tap(find.byType(ShadInputOTPSlot).first)
5858
.settle()
@@ -74,7 +74,7 @@ void main() {
7474
});
7575
}
7676

77-
FilmStripModifySceneDelegate _insertOtpAt(String key, String character) {
77+
TimelineModifySceneDelegate _insertOtpAt(String key, String character) {
7878
return (tester, testContext) async {
7979
await tester.enterText(find.byKey(ValueKey(key)), character);
8080
await tester.pumpAndSettle();

lib/flutter_test_goldens.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export 'src/goldens/golden_collections.dart';
66
export 'src/goldens/golden_comparisons.dart';
77
export 'src/goldens/golden_rendering.dart';
88
export 'src/goldens/golden_scenes.dart';
9-
export 'src/scenes/film_strip.dart';
9+
export 'src/scenes/timeline.dart';
1010
export 'src/scenes/gallery.dart';
1111
export 'src/scenes/golden_scene.dart';
1212
export 'src/scenes/layouts/animation_timeline_layout.dart';

lib/src/scenes/gallery.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ Image.memory(
475475
goldenFile.writeAsBytesSync(pngData);
476476
}
477477

478-
// TODO: de-dup this with FilmStrip
478+
// TODO: de-dup this with Timeline
479479
Future<GoldenSceneMetadata> _layoutGalleryWithNewGoldens(
480480
WidgetTester tester,
481481
SceneLayout layout,
@@ -648,7 +648,7 @@ Image.memory(
648648
}
649649
}
650650

651-
// TODO: Dedup following with FilmStrip
651+
// TODO: Dedup following with Timeline
652652
String get _testFileDirectory => (goldenFileComparator as LocalFileComparator).basedir.path;
653653

654654
String get _goldenDirectory => "$_testFileDirectory${_directory.path}$separator";

lib/src/scenes/golden_scene.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ class GoldenSceneBackground {
182182
const defaultGoldenSceneBackground = GoldenSceneBackground.color(Color(0xFFF0F0EA));
183183

184184
/// The ancestor widget tree for every item in a golden scene, unless using a custom
185-
/// [GoldenSceneTheme], or is configured directly on a gallery, film strip, etc.
185+
/// [GoldenSceneTheme], or is configured directly on a gallery, timeline, etc.
186186
Widget defaultGoldenSceneItemScaffold(WidgetTester tester, Widget content) {
187187
return MaterialApp(
188188
home: Scaffold(
@@ -204,7 +204,7 @@ Widget defaultGoldenSceneItemScaffold(WidgetTester tester, Widget content) {
204204
}
205205

206206
/// The widget tree that wraps around each golden image in a Golden Scene, unless using a custom
207-
/// [GoldenSceneTheme], or is configured directly on a gallery, film strip, etc.
207+
/// [GoldenSceneTheme], or is configured directly on a gallery, timeline, etc.
208208
Widget defaultGoldenSceneItemDecorator(
209209
BuildContext context,
210210
GoldenScreenshotMetadata metadata,

0 commit comments

Comments
 (0)