Skip to content

Commit

Permalink
Merge pull request #56 from bambinoua/tree-shake-issue
Browse files Browse the repository at this point in the history
Fix issue #54
  • Loading branch information
ziofat committed Jun 9, 2023
2 parents fed279a + 2fbb30e commit 2e946b7
Show file tree
Hide file tree
Showing 5 changed files with 15,478 additions and 14,633 deletions.
7 changes: 3 additions & 4 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import 'package:flutter/material.dart';
import 'package:material_design_icons_flutter/icon_map.dart';
import 'package:material_design_icons_flutter/material_design_icons_flutter.dart';

void main() {
Expand All @@ -15,7 +14,7 @@ class MdiGalleryApp extends StatelessWidget {
iconTheme: new IconThemeData(size: 36.0, color: Colors.black87),
primarySwatch: Colors.blue,
textTheme: new TextTheme(
bodyText2: new TextStyle(fontSize: 16.0, color: Colors.black87),
bodyMedium: new TextStyle(fontSize: 16.0, color: Colors.black87),
),
),
home: new MdiGalleryHome(),
Expand Down Expand Up @@ -180,6 +179,6 @@ class IconDefinition implements Comparable {
int compareTo(other) => title.compareTo(other.title);
}

MdiIcons iconLib = new MdiIcons();
MdiIcons iconLib = const MdiIcons();

var icons = iconMap.keys.map((key) => IconDefinition(key));
var icons = MdiIcons.getNames().map((key) => IconDefinition(key));

0 comments on commit 2e946b7

Please sign in to comment.