fontisto_flutter 3.1.2

  • Readme
  • Changelog
  • Example
  • Installing
  • 83

fontisto_flutter #

The Fontisto Icon pack available as set of Flutter Icons.
The Linearicon Icon pack available as set of Flutter Icons.

Based on Fontisto 3.0.4. Includes all free icons (over 600 icon).<br/> Based on Linearicon Free 1.0.0. Includes all free icons (over 170 icon).

Installation #

In the dependencies: section of your pubspec.yaml, add the following line:

dependencies:
  fontisto_flutter: ^3.1.0

Usage #

import 'package:fontisto_flutter/fontisto_flutter.dart';

class MyWidget extends StatelessWidget {
  Widget build(BuildContext context) {
    return IconButton(
      // Use the Icon Widget + Fontisto Icons class for the IconData
      icon: Icon(Istos.laptop), 
      // Use the Icon Widget + Linear Icons class for the IconData
      //icon: Icon(Linear.laptop),
      onPressed: () { print("Pressed"); }
     );
  }
}

Example #

View the Flutter app in the example directory to see all the available FontistoIcon.

dependencies:
  fontisto_flutter: '>= 3.0.4'

Contributors #

  • Hoàng Công Minh

[3.1.2] - Update Linear icon #

[3.1.1] - Update Linear icon #

[3.1.0] - Update Linear icon #

  • Add Linearicon free to fontisto_flutter collection
  • Add more detail document
  • Icon animation is coming soon...

[3.0.5] - fix document #

  • Fix document generate by dartdoc.

[3.0.4] - release #

  • Expose Fontisto font asset. This was the smallest version of the font file that worked with Flutter.
  • Created Istos class, which provides static access to all Fontisto 3.0.4 Icons as IconData, similar to Flutter's built-in Icons class.
  • Created README with installation instructions
  • Added LICENSE.md file

example/lib/main.dart

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

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Fontisto flutter Example',
      theme: ThemeData(primarySwatch: Colors.blue),
      home: MyHomePage(),
    );
  }
}

class MyHomePage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('Fontisto flutter'),
      ),
      body: Column(
        children: <Widget>[
          ListTile(
            title: Text("Fontisto"),
            subtitle: Text("Istos.android"),
            leading: Icon(
              Istos.android,
              color: Colors.green,
              size: 40.0,
            ),
          ),
          ListTile(
            title: Text("Linearicon"),
            subtitle: Text("Linear.android"),
            leading: Icon(
              Linear.android,
              color: Colors.green,
              size: 40.0,
            ),
          ),
        ],
      ),
    );
  }
}

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  fontisto_flutter: ^3.1.2

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:fontisto_flutter/fontisto_flutter.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
67
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100
Overall:
Weighted score of the above. [more]
83
Learn more about scoring.

We analyzed this package on Jul 11, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.8.4
  • pana: 0.13.15
  • Flutter: 1.17.5

Analysis suggestions

Package not compatible with SDK dart

Because:

  • fontisto_flutter that is a package requiring null.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.12 1.14.13
meta 1.1.8 1.2.2
sky_engine 0.0.99
typed_data 1.1.6 1.2.0
vector_math 2.0.8 2.1.0-nullsafety