Comments (17)
We are interrested to use it in our project too, but svg support is a requirement right now. Is there a planned date for this feature ?
from flutter_launcher_icons.
If you are on unix simply use
convert logo.svg logo.png
and you have a valid png to use for this package. I make a bash script which just converts svg to png, then calls this package.
problem is that then the icons would still be png in the final package which is not desirable, the android_vector xml assets would be much better
from flutter_launcher_icons.
I took a sharp look at implmenting SVGs.
The problem is rendering/converting the SVG to PNG.
I was not able to find a library with working SVG which does not depend on flutter.
I believe that, if it depends on flutter it must be run with the flutter command like an Flutter-app.
I would be pleased if someone tells me I am incorrect and what library to use / how to run a CLI-app which depends on dart:ui (flutter exclusive I think).
Probably correct ways to do this:
- a fork of flutter_svg, which does not have any dependencies on flutter.
- a standalone library just for this
Workarounds:
- using flutter_svg and running the converting stuff via
flutter test
, which again gets called via console - running some non dart code via console, which can convert to PNG
from flutter_launcher_icons.
I somewhat implemented SVG support using inkscape. (meaning you have to install inkscape to use it)
If you want to help / take a look at it check out my branch:
https://github.com/connectety/flutter_launcher_icons/tree/svg
I have deleted the branch in favor of the official SVG branch (WIP use on your own risk!)
https://github.com/fluttercommunity/flutter_launcher_icons/tree/svg
dev_dependencies:
flutter_launcher_icons:
git:
url: git://github.com/fluttercommunity/flutter_launcher_icons.git
ref: svg
from flutter_launcher_icons.
@connectety it's work in progress right now, wouldn't recommend anyone to use it until it's merged into master branch
from flutter_launcher_icons.
Here it is:
example
[if(feature='Flutter.Image.encodeImage')]
enum EncodedImageFormat {
[if(feature='Flutter.Image.encodeImage.jpeg')]
JPEG,
[if(feature='Flutter.Image.encodeImage.png')]
PNG,
[if(feature='Flutter.Image.encodeImage.webp')]
WEBP,
}
class Image ... {
[if(feature='Flutter.Image.toByteData')]
Future<ByteData> toByteData({EncodingFormat format: const EncodingFormat.jpeg()}) { ... }
[if(feature='Flutter.Image.encodeImage')]
void encodeImage(EncodedImageFormat format, int quality, ImageEncoderCallback callback) { ... }
}
also checkout
https://github.com/dnfield/flutter_path_drawing
from flutter_launcher_icons.
I tried to use this package, but turns out it doesn't support SVG.
Android minSdkVersion = 16
Creating default icons Android
Overwriting the default Android launcher icon with a new icon
NoSuchMethodError: The getter 'width' was called on null.
Receiver: null
Tried calling: width
pub finished with exit code 2
Ping me when SVG is supported :)
from flutter_launcher_icons.
hi @gedw99 , Yes it is possible we will look into this and get back to you.
from flutter_launcher_icons.
I also would really like this feature.
Is there any progress? Is there anything we can do to help?
from flutter_launcher_icons.
I would really like this feature merged
from flutter_launcher_icons.
If you are on unix simply use convert logo.svg logo.png
and you have a valid png to use for this package. I make a bash script which just converts svg to png, then calls this package.
from flutter_launcher_icons.
I would really like this feature merged, too
from flutter_launcher_icons.
same here, all my artwork for my projects is done in svg....
from flutter_launcher_icons.
Dart's svg support is not great. Are you able to load them ok?
from flutter_launcher_icons.
Any updates on support svg?
Thanks
from flutter_launcher_icons.
Any updates?
from flutter_launcher_icons.
I don't think so, but I might be able to find some time for this the coming weeks, I'll open a PR and let you know then (in case it's a relatively easy fix)
from flutter_launcher_icons.
Related Issues (20)
- ic_launcher icon not working for android push notifications HOT 2
- [FEATURE REQUEST] Generate `favicon.ico` for web HOT 1
- [BUG] FormatException: Missing argument for "file".
- [BUG] Execution fails when renaming the default Runner project
- [BUG] Could not find a file named "pubspec.yaml"
- [BUG] ✗ ERROR: NoConfigFoundException No configuration found in flutter_launcher_icons.yaml or in pubspec.yaml. In case file exists in different directory use --file option #0 createIconsFromArguments (package:flutter_launcher_icons/main.dart:75:7) #1 main (file:///C:/Users/ahmed/AppData/Local/Pub/Cache/hosted/pub.dev/flutter_launcher_icons-0.10.0/bin/main.dart:7:26) #2 _delayEntrypointInvocation.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:294:33) #3 _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:189:12)
- [BUG] Unhandled Exception: PlatformException(INVALID_ICON, The resource app_icon could not be found. Please make sure it has been added as a drawable resource to your Android head project., null, null) HOT 1
- [BUG] Could not find a file named "pubspec.yaml" HOT 2
- Dart 2.18.2 is incompatible
- [BUG] Not all futures are awaited so impossible to create a dart custom dart script HOT 1
- [BUG] printStatus not using configured logger HOT 1
- [BUG] Backround color not changing HOT 2
- [BUG] Black screen on Samsung cellphone instead of white screen with icon in the middle? HOT 1
- [BUG] Adaptive Monochrome Icons are not generated HOT 2
- [BUG] icon resolution decreased
- [BUG] Android icon is zoomed in HOT 2
- [BUG] Icon not updated HOT 2
- [BUG] could not generate launcher icon
- [BUG] Issue with flutter_launcher_icons Background Color on iOS App HOT 2
- [BUG] Could not add icon.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter_launcher_icons.