Flutter Widgets Explorer: The Source Code View

Lim Chee Kin
2 min readMar 19, 2021

--

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:-

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/flutter-widgets-explorer. Feel free to fork the repository and send me pull request.

By the way, you can install the Flutter Widgets Explorer app to your android phone by click the following image link:

Kindly let me know if you have any problem to install it or run it on your mobile.

Originally published at http://limcheekin.blogspot.com.

--

--

Lim Chee Kin

A business-minded full stack developer. Experienced in Java technology, interested on DApps, Solidity, Flutter, online marketing and algorithmic trading.