Ask Your Question
4

How to fix distorted or excessively sized custom icons in Flutter using FlutterIcon.com?

asked 2023-03-14 11:00:00 +0000

lakamha gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-02-03 19:00:00 +0000

scrum gravatar image

If you are having issues with distorted or excessively sized custom icons in your Flutter app, you can follow these steps to fix the issue using FlutterIcon.com:

  1. Go to FlutterIcon.com and choose the icon you want to use in your project.
  2. Customize the icon by selecting the size, color, and style you prefer.
  3. Once you have customized the icon, click on the "Download" button to download the icon as a zip file.
  4. Extract the contents of the zip file and copy the extracted files to your Flutter project's "icons" folder.
  5. Import the icon in your Flutter code using the following syntax:
import 'package:<your_project_name>/icons/<icon_name>.dart';
  1. Use the icon in your code by passing it as a parameter to the Icon widget:
Icon(CustomIcons.<icon_name>)

By using FlutterIcon.com to generate your custom icons, you can ensure that they are properly sized and formatted for use in your Flutter app.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-03-14 11:00:00 +0000

Seen: 8 times

Last updated: Feb 03 '22