I am building a Flutter web app. I use a handful of material icons, but it brings the whole MaterialIcons-Regular.otf file with it. It is of 1.6 MB and takes time to load.
Is there a way to only bring the icons I need?
I can only think of using the icons as SVGs and bringing them separately with flutter_svg package.
Related
It is my hobby project. I want to view pdf documents in my Flutter app.
I want to use Poppler C++ library and wrap it with Flutter using dart ffi.
I just checked the library but can't find any way to start.
Is it possible to wrap it with Flutter? If yes, I need a guideline to start the project.
Thanks a lot!
As far as I know Flutter have build in widget system that named material and cupertino. But is there any other widgets sets. I want to build site with Flutter but do not want to make it look as mobile app.
No there isn't any other widget set. Flutters material and cupertino are ment to get your app a native look. They don't have any special functionality than visual design.
If you just want to do your own styling and elements, you can build your widgets by your own. You can read more about it here:
https://www.raywenderlich.com/10126984-creating-reusable-custom-widgets-in-flutter
So in my flutter app, the material icons show properly in native, but in web, all have a different icon. What should or can I do with it?
This seems to be a cache problem which can either be solved by running flutter pub cache repair or running flutter clean between every step of changing a channel and upgrading it.
I have SVG photo which have css styling and java script to make effects to the photo. i try to use the image in flutter using flutter_svg but the problem is it show only the picture .. my problem i hope css hover style for paths working and can read java script events from flutter
You could try and load the svg in a webview perhaps but considering webview for flutter is in preview stages, it might not have all the functionalities needed.
Seems like some of the material design icons are not supported. Like I want to use how_to_vote icon and it's actually listed in this page but it is not suppoted in Icons class. How can I use this and also why isn't it supported?
As of now, to use material design icons you have to add the package outline_material_icon in your pubspec.yaml. This will make available all the icons you want from this page
If you check the Icons class constants. There is no how_to_vote icon available. If you need to use that icon, download that from the material.io and add it to your app.