Skip to content

Commit

Permalink
refactor: Remove storybook all icons list
Browse files Browse the repository at this point in the history
  • Loading branch information
witwash committed Sep 2, 2024
1 parent 462b979 commit 47f381d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 365 deletions.
22 changes: 2 additions & 20 deletions storybook/lib/stories/icon/icons.dart
Original file line number Diff line number Diff line change
@@ -1,26 +1,8 @@
import 'package:flutter/widgets.dart';
import 'package:optimus/optimus.dart';
import 'package:storybook/stories/icon/icons_list.dart';
import 'package:storybook_flutter/storybook_flutter.dart';

final Story allIconsStory = Story(
name: 'Media/Icons/All Icons',
builder: (context) => GridView.builder(
itemCount: optimusIcons.length,
gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount(
crossAxisCount: 5,
),
itemBuilder: (context, index) => Padding(
padding: const EdgeInsets.all(8),
child: Column(
children: [
OptimusIcon(iconData: optimusIcons[index].data),
Text(
optimusIcons[index].name,
overflow: TextOverflow.ellipsis,
),
],
),
),
),
builder: (context) =>
const Center(), // TODO(witwash): return after new optimus_icons is released
);
343 changes: 0 additions & 343 deletions storybook/lib/stories/icon/icons_list.dart

This file was deleted.

4 changes: 2 additions & 2 deletions storybook/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -231,15 +231,15 @@ packages:
source: path
version: "0.37.0"
optimus_icons:
dependency: "direct main"
dependency: transitive
description:
name: optimus_icons
sha256: e79dba5ca6574be6de22f3c9863da45f03ac5679c507eb91e1b671765ec0f8dd
url: "https://pub.dev"
source: hosted
version: "0.1.0+1"
path:
dependency: "direct dev"
dependency: transitive
description:
name: path
sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af"
Expand Down

0 comments on commit 47f381d

Please sign in to comment.