Friday, March 19, 2021

Flutter Widgets Explorer: The Source Code View

The Source Code View is a reusable widget to share code from your public Github repository. It created based on knowledge gained from previous showcases such as Syntax View, Animate Icons, URL Launcher, Markdown View, and Shimmer Effect. 

The Source Code View widget will be integrated into Flutter Widgets Explorer to share the code of showcases, so that you can copy and paste the code with a click of button, sound great? :) 

I created a MultipleRequestsHttpClient class to reuse the HTTP client in multiple widgets as Future.wait doesn't cut it. Please let's me know if you think there's better way to do the same thing.

Thanks to the pubspec_parse package allowed the PubspecDependenciesView widget to retrieve dependencies data of the pubspec.yaml file.

A picture is worth a thousand words:-

Thanks for your patient and reading till here. You are invited to fork the fluwix github repo, add your code and send me pull request. The key takeaways are you can showcase your code live in an Android app, Fluwix.com and embedded HTML (as iframe) in your blog post. We will take care the hassles of managing the deployment, production and marketing for you. If you're interested, please submit your idea of showcase.

Are you facing any problem with your Flutter development? Please answer the 3 questions Flutter Development Survey as we might have the solution to your problem. 

By the way, you can install the Fluwix (formerly Flutter Widgets Explorer) app to your android phone by clicking on the following image link:

Get it on Google Play
Kindly raise an issue if you have any problem running the Fluwix on your mobile or web.

If you are interested to reuse the source code of the screen, please check out the source_code_view branch of the git repository hosted at https://github.com/limcheekin/fluwix. Feel free to fork the repository and send me pull request.

I'd love to hear from you. :)

Like this blog?

Thanks for visiting! If you like what you see, I'd really appreciate you linking to it or otherwise sharing it with people you think would find it useful.

No comments: