Generating Isolated Component Packages for Flutter

Our open-source Figma to Flutter converter has been used across various projects. While many developers will include UI directly in their Flutter project, we learned that for other companies and projects, the best use case of Parabeac was generating co…


This content originally appeared on DEV Community and was authored by Ivan Huerta

Our open-source Figma to Flutter converter has been used across various projects. While many developers will include UI directly in their Flutter project, we learned that for other companies and projects, the best use case of Parabeac was generating components, particularly for projects looking to scale. With the uptrend of tools like Storybook & Component Isolation that help test & scale UI, we decided to add changes to parabeac_core that enables this development workflow.

So what does a component package look like?

Component Package

It's relatively simple, but the main idea is to completely isolate your UI code from your application code. The code & assets generated from parabeac_core are now prepared to be used as a package.

Component Isolation with Parabeac

To use the component package in your Flutter app, you'll want to:

  • Add Base BLoC to the component package
  • Push to Github
  • Import into Flutter Project
  • Override BLoC with application logic in the Flutter Project

You can import the component package as easy as doing the following the pubspec.yaml:

example_project:
    git: git@github.com:<gh_username>/example_component_package.git

You can learn how to create your own component package by following the steps in our developer guide here: https://docs.parabeac.com/docs/how-to-create-a-component-package

Thanks for reading! We'd love to hear your feedback so that we can continue improving the project. Leave a comment or reach out to us on our Discord server!


This content originally appeared on DEV Community and was authored by Ivan Huerta


Print Share Comment Cite Upload Translate Updates
APA

Ivan Huerta | Sciencx (2022-02-03T01:10:45+00:00) Generating Isolated Component Packages for Flutter. Retrieved from https://www.scien.cx/2022/02/03/generating-isolated-component-packages-for-flutter/

MLA
" » Generating Isolated Component Packages for Flutter." Ivan Huerta | Sciencx - Thursday February 3, 2022, https://www.scien.cx/2022/02/03/generating-isolated-component-packages-for-flutter/
HARVARD
Ivan Huerta | Sciencx Thursday February 3, 2022 » Generating Isolated Component Packages for Flutter., viewed ,<https://www.scien.cx/2022/02/03/generating-isolated-component-packages-for-flutter/>
VANCOUVER
Ivan Huerta | Sciencx - » Generating Isolated Component Packages for Flutter. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2022/02/03/generating-isolated-component-packages-for-flutter/
CHICAGO
" » Generating Isolated Component Packages for Flutter." Ivan Huerta | Sciencx - Accessed . https://www.scien.cx/2022/02/03/generating-isolated-component-packages-for-flutter/
IEEE
" » Generating Isolated Component Packages for Flutter." Ivan Huerta | Sciencx [Online]. Available: https://www.scien.cx/2022/02/03/generating-isolated-component-packages-for-flutter/. [Accessed: ]
rf:citation
» Generating Isolated Component Packages for Flutter | Ivan Huerta | Sciencx | https://www.scien.cx/2022/02/03/generating-isolated-component-packages-for-flutter/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.