iconoir/packages/iconoir-flutter
lucaburgio 791583941b Release Version v7.6.0 2024-04-06 06:55:16 +00:00
..
example Clean-up vue example / flutter example lockfile 2023-10-29 15:49:42 +01:00
test feat(flutter): create package (#173) 2022-07-05 10:24:49 -04:00
.gitignore feat(flutter): create package (#173) 2022-07-05 10:24:49 -04:00
.metadata feat(flutter): create package (#173) 2022-07-05 10:24:49 -04:00
.pubignore fix: uningore flutter lib dir (#380) 2023-11-21 22:14:32 +01:00
CHANGELOG.md Release Version v7.6.0 2024-04-06 06:55:16 +00:00
LICENSE feat(flutter): create package (#173) 2022-07-05 10:24:49 -04:00
README.md Update icons naming example 2023-10-29 10:53:44 +01:00
analysis_options.yaml fix: disable file_names lint because it appears to be bugged with the 3d files 2023-01-26 14:29:20 -05:00
pubspec.yaml Release Version v7.6.0 2024-04-06 06:55:16 +00:00

README.md

Iconoir - Flutter

Pub Version Pub Popularity License

Iconoir is an open-source library with 1300+ unique SVG icons, designed on a 24x24 pixels grid. No premium icons, no email sign-up, no newsletters.

iconoir_flutter is an open source package that exports these icons as Flutter widgets (flutter_svg) that can be used in all of your Flutter projects.

Installation

flutter pub add iconoir_flutter

Usage

import 'package:flutter/material.dart';
import 'package:iconoir_flutter/iconoir_flutter.dart';

void main() {
  runApp(const App());
}

class App extends StatelessWidget {
  const App({ super.key });

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      home: DemoPage(),
    );
  }
}

class DemoPage extends StatelessWidget {
  const DemoPage({ super.key });

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Container(
        child: const Iconoir(),
      ),
    );
  }
}

Default values for the most common props are given below:

Prop name Default value
color "currentColor"
width "1.5em"
height "1.5em"

Icon names

The Flutter widges are named as PascalCase variations of their reference names (i.e. airplane-helix-45deg becomes AirplaneHelix45deg).