beautiful icons to use in your next project
first add dependance: in terminal:
$ flutter pub add icon_broken
in pubspec.yaml add this line in dependencies (pubspec.yaml and pub get) :
dependencies:
icon_broken: ^1.1.0
Import it in your file:
Now in your Dart code, you can use:
import 'package:icon_broken/icon_broken.dart';
const IconData icon = Icon(IconBroken.IconName);
import 'package:flutter/material.dart';
import 'package:icon_broken/icon_broken.dart';
class IconBrokenExample extends StatelessWidget {
const IconBrokenExample({super.key});
@override
Widget build(BuildContext context) {
return const Center(
child: Icon(IconBroken.Heart),
);
}
}
convert icon.ttf to icons used in flutter projects