Skip to content

Commit 47f381d

Browse files
committed
refactor: Remove storybook all icons list
1 parent 462b979 commit 47f381d

File tree

3 files changed

+4
-365
lines changed

3 files changed

+4
-365
lines changed

storybook/lib/stories/icon/icons.dart

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,8 @@
11
import 'package:flutter/widgets.dart';
2-
import 'package:optimus/optimus.dart';
3-
import 'package:storybook/stories/icon/icons_list.dart';
42
import 'package:storybook_flutter/storybook_flutter.dart';
53

64
final Story allIconsStory = Story(
75
name: 'Media/Icons/All Icons',
8-
builder: (context) => GridView.builder(
9-
itemCount: optimusIcons.length,
10-
gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount(
11-
crossAxisCount: 5,
12-
),
13-
itemBuilder: (context, index) => Padding(
14-
padding: const EdgeInsets.all(8),
15-
child: Column(
16-
children: [
17-
OptimusIcon(iconData: optimusIcons[index].data),
18-
Text(
19-
optimusIcons[index].name,
20-
overflow: TextOverflow.ellipsis,
21-
),
22-
],
23-
),
24-
),
25-
),
6+
builder: (context) =>
7+
const Center(), // TODO(witwash): return after new optimus_icons is released
268
);

storybook/lib/stories/icon/icons_list.dart

Lines changed: 0 additions & 343 deletions
This file was deleted.

storybook/pubspec.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,15 +231,15 @@ packages:
231231
source: path
232232
version: "0.37.0"
233233
optimus_icons:
234-
dependency: "direct main"
234+
dependency: transitive
235235
description:
236236
name: optimus_icons
237237
sha256: e79dba5ca6574be6de22f3c9863da45f03ac5679c507eb91e1b671765ec0f8dd
238238
url: "https://pub.dev"
239239
source: hosted
240240
version: "0.1.0+1"
241241
path:
242-
dependency: "direct dev"
242+
dependency: transitive
243243
description:
244244
name: path
245245
sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af"

0 commit comments

Comments
 (0)