Home > Software engineering >  How to find flower and animal icons for flutter
How to find flower and animal icons for flutter

Time:01-15

I need flower and animal icons for an application. When I looked at Pub.dev, I couldn't find a package containing flower and animal icons. Can you give an idea about what I can do?

I looked at these packages but there are no flower and animal icons.

font_awesome_flutter: ^9.2.0

unicons: ^2.0.2

CodePudding user response:

Material icons have some flower icons, but if you need something really specific you should use a SvgPicture, and download any SVG file.

Here is an example

SvgPicture.asset(
   "assets/img/your-icon.svg",
   height: 32,
    width: 32,
    color: Colors.black54,
),

To use this way you have to declare the assets folder in the pubspec.yaml and run a flutter pub get after that, an exampleenter code here:

flutter: 
  assets: 
    - assets/img/

CodePudding user response:

Try using Flutter_Icons.

Add this in your Flutter page:

import 'package:flutter_icons/flutter_icons.dart';

   IconButton( 
      icon: const Icon(FontAwesome5.cat), //Example
      onPressed: () {},
   )

And remember to add the package to your dependencies in your pubspec.yaml:

 dependencies:
 flutter_icons: ^1.1.0
  •  Tags:  
  • Related