The SWM Icon pack for Flutter. Provides 200+ additional icons to use in your apps.
In the dependencies:
section of your pubspec.yaml
, add the following line:
swm_icons: <latest_version>
You can use it very easily. For example:
import 'package:flutter/material.dart';
import 'package:swm_icons/swm_icons.dart';
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return SWMIcon(SWMIcons.alarm);
}
}
You can use SWMIconStyles
to change the style, (default: SWMIconStyles.outline
).
import 'package:flutter/material.dart';
import 'package:swm_icons/swm_icons.dart';
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return SWMIcon(
SWMIcons.alarm,
style: SWMIconStyles.broken, // Broken icon style.
color: Colors.blue,
size: 40,
);
}
}