Icons library, based on Line Awesome Icons
The Line Awesome Icon pack available as Flutter Icons. Provides 1542 additional icons to use in your apps.
If you use the icons publicly, please link to https://icons8.com/line-awesome somewhere on your page or artwork, so that more creators could know about it and use it for free.
Include line_awesome_flutter
in your pubspec.yaml
file:
dependencies:
flutter:
sdk: flutter
line_awesome_flutter: ^<latest-version>
If your IDE doesn't do it automatically, type:
flutter packages get
Import the package in your dart
file and use Icon
to get the actual icon widget:
import 'package:line_awesome_flutter/line_awesome_flutter.dart';
...
Icon _icon = Icon(LineAwesomeIcons.home);
...
Run this command:
With Flutter:
$ flutter pub add line_awesome_flutter
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
line_awesome_flutter: ^2.0.0
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Now in your Dart code, you can use:
import 'package:line_awesome_flutter/line_awesome_flutter.dart';
import 'package:flutter/material.dart';
import 'package:line_awesome_flutter/line_awesome_flutter.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: Scaffold(
appBar: AppBar(
title: Text("Line Awesome Icons Demo"),
),
body: Center(
child:
Icon(LineAwesomeIcons.home, size: 50, color: Colors.green)),
));
}
}
Download details:
Author: clean
Source: https://github.com/clean/line_awesome_flutter