-
Couldn't load subscription status.
- Fork 29.4k
Open
flutter/packages
#10255Labels
c: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityc: new widgetMust also have "c: new feature". Request for a new widget.Must also have "c: new feature". Request for a new widget.c: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterp: flutter_svgThe Flutter SVG drawing packagesThe Flutter SVG drawing packagespackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.team-engineOwned by Engine teamOwned by Engine team
Description
flutter_svg allows precompiled SVG files, see Precompiling and Optimizing SVGs.
However, as a developer, you have to add three things to your code:
- Add
vector_graphicsas a direct dependency - Add
import 'package:vector_graphics/vector_graphics.dart';import - Use additionally the
AssetBytesLoaderclass.
With SvgPicture.precompiled(String assetName, [...]) (open for better names) a developer of the package could use precompiled SVG files without the three steps above.
I'm happy to open a PR for that if the Flutter team is open for that.
Metadata
Metadata
Assignees
Labels
c: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityc: new widgetMust also have "c: new feature". Request for a new widget.Must also have "c: new feature". Request for a new widget.c: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterp: flutter_svgThe Flutter SVG drawing packagesThe Flutter SVG drawing packagespackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.team-engineOwned by Engine teamOwned by Engine team