flutter_unicons

flutter_unicons

1000+ Pixel-perfect svg unicons for your next flutter project ispired by Unicons and vue-unicons

Demo

Download the gallery here.

Installation

Add dependency to your pubspec.yaml

dependencies:
  flutter_unicons: #version (current is 0.0.6)

If your project does not use null safety, you should use the following version: 0.0.4

Usage

import 'package:flutter_unicons/flutter_unicons.dart';

class Demo extends StatelessWidget{
  @override
  Widget build(BuildContext context) {
    return SafeArea(
      child: Column(
        children: [
          Unicon(Unicons.uniLayerGroup),
          Unicon(Unicons.uniCommentAlt)
        ]
      )
    );
  }
}

Options


NameTypeDescriptiondefault value
sizedoubleIcon size24
colorColoricon colorColors.black45
fitBoxFitHow icon should be inscribed into containerBoxFit.contain
allowDrawingOutsideViewBoxboolIf true, will allow the icon to be drawn outside of the clip boundary of its viewBox.false
animationDurationDurationanimation durationDuration(milliseconds: 300)
animationCurveCurveanimation curveCurves.fastOutSlowIn
mainAxisAlignmentMainAxisAlignmentHow the icon should be placed along the main axis of his container (ex: MainAxisAlignment.start for left alignment.)MainAxisAlignment.center

Licence

flutter_unicons licensed under MIT. You're free to use these icons in your personal and commercial project.

Libraries

flutter_unicons