Skip to content

Commit 020e5c3

Browse files
rm magic number
1 parent 3958f5b commit 020e5c3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

example/lib/storybook/stories/help_widget_story.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ const testWidth = 420.0;
1313
/// helpWidget alignment
1414
const _alignment = Alignment.bottomRight;
1515

16+
const _listLength = 100;
17+
1618
/// Definition of using 4 different widget inherited from [HelpWidget].
1719
WidgetbookComponent get helpWidgetStory => WidgetbookComponent(
1820
name: 'HelpWidget',
@@ -32,7 +34,7 @@ WidgetbookComponent get helpWidgetStory => WidgetbookComponent(
3234
overlayWidget: HorizontalHelpWidget(alignment: _alignment,),
3335
child: ListView(
3436
children: [
35-
for (var i = 0; i < 100; i++)
37+
for (var i = 0; i < _listLength; i++)
3638
Text(
3739
i.toString(),
3840
style: const TextStyle(color: Colors.white,),

0 commit comments

Comments
 (0)