Feature/kivex flutter#6
Open
Joseph4sure wants to merge 4 commits into
Open
Conversation
- Add profile.svg and house-antenna.svg icons - Implement SVG-to-React generator with ESM support - Add watch mode for auto-regeneration - Include react-native playground for testing - Update root package files
- Add Flutter icon generation system - Include flutter-playground for testing - Update root package files (if any)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Kivex Flutter
Kivex Flutter is a powerful SVG-to-Flutter icon generator that transforms your SVG files into fully typed, reusable Flutter widgets. Instead of manually importing and managing SVG assets, Kivex automatically generates clean, customizable Dart widgets that integrate seamlessly into any Flutter application.
Built for speed, scalability, and developer productivity, Kivex provides a modern workflow where every SVG becomes a native Flutter widget with support for configurable size, color, and stroke width. Its intelligent code generation keeps your icon library synchronized by automatically creating, updating, exporting, and removing icon widgets whenever your SVG collection changes.
Whether you're building a small application or maintaining a large design system, Kivex simplifies icon management with a fast, automated workflow that fits naturally into your Flutter development process.
✨ Features
📋 Requirements
📁 Project Structure
📦 Installation
Add the package to your application's
pubspec.yaml.Install dependencies.
🖼 Adding SVG Icons
Place your SVG files inside the
icons/folder.By default, the generator scans this directory automatically.
If you want to use another directory, modify the
ICONS_DIRECTORYconstant in:💻 Command Line Setup
Open Command Prompt, PowerShell, or your preferred terminal.
Navigate to your Flutter project.
Windows
macOS / Linux
Go to the package.
Install dependencies.
or
⚙️ Generate Icons
Generate Flutter widgets.
Example output:
Force regeneration.
Watch for changes.
Whenever an SVG is added, renamed, edited, or removed, Kivex regenerates the affected widgets automatically.
📂 Generated Files
Running the generator creates:
Each SVG becomes a strongly typed Flutter widget.
📖 Usage
Import the package.
If you have
the generator creates
Basic
Custom Size
Custom Color
Custom Stroke Width
Combined
🧪 Example
🎮 Using the Playground
The repository includes a Flutter playground for testing generated icons.
Generate icons.
Open the playground.
Install dependencies.
Run it.
Or target a specific platform.
For live development, keep the generator running in one terminal.
Run the playground in another terminal.
Now, every time you modify an SVG, the corresponding Flutter widget is regenerated automatically. Simply hot reload the playground to preview the updated icon.
🎨 Customization
Change the SVG directory
Edit:
Example:
Customize generated widgets
Modify:
Then regenerate.
🔧 Troubleshooting
🛣 Roadmap