Categories
Flutter

Flutter at a glance

Flutter is a free and open source User Interface toolkit for building applications for mobile, web, and desktop by using Dart.

Dart is a language with C style syntax and can be trans-compiled into JavaScript.

Dart doesn’t use web view and OEM widgets like other frameworks i.e React Native, Ionic etc. Instead, it uses it’s own rendering engine for widgets.

Since, Dart is a compiled language so the compiler parses your code and translates it into machine language.

Flutter was introduced by Google and later handled by ECMA standard.

Features of Flutter

  • Open-source framework and free for personal or commercial use.
  • It allows cross-platform development that means you can write the code once and then it can be run on different supported platforms.
  • It has a Hot Reload functionality which means that when we change the code and the change can be viewed instantly by the developer.
  • Flutter offers the concepts of widgets which help us in developing a customised design.
  • Flutter uses Dart for creating applications and Dart is easy to learn.
  • Flutter supports faster development process and delivers a highly performant application.

Architecture of Flutter

Flutter Architecture comprises of four component such as:

  1. Flutter Engine
  2. Foundation Library
  3. Widgets
  4. Design Specific Widgets

Flutter Engine

The flutter engine is written in C++ language and it is used to implement core libraries which has animation, graphics, file and network I/O plus the plugin architecture.

Foundation Library

The foundation library is written in Dart. It provides packages which are used to construct the Flutter Application.

Widgets

Widgets are user interface components that include graphics, text, shapes and animation. It is similar to the react component that controls the view and interface of the application.

Design Specific Widgets

Flutter has 2 sets of widgets that conform to specific design language i.e. Material design widgets for Android and Cupertino widgets for ISO.

Flutter Vs React Native

  • Flutter is developed by Google and React Native is developed by Facebook.
  • To create mobile apps, Flutter uses Dart, and React Native uses JavaScript.
  • Flutter uses custom widgets for creating UI whereas React Native uses native UI components.
  • The architecture used by Flutter is Business Logic Component whereas React Native uses Flux and Redux.

For more details please visit: https://flutter.dev/docs

Books

To see the learning resources for flutter please visit: https://flutter.dev/docs/resources/books

Categories
Uncategorized

Display filename and line number in your custom laravel logs

https://stackoverflow.com/questions/39404733/laravel-log-not-showing-line-and-file

Categories
Uncategorized

Shared folders in VirtualBox

I was setting up shared folders in VirtualBox and discovered it to be very tricky.

So, I did a google search. And found this link which will show you how to setup shared folders in VirtualBox on Ubuntu 18.04

https://gist.github.com/estorgio/0c76e29c0439e683caca694f338d4003

Categories
Uncategorized

Threat model

https://martinfowler.com/articles/agile-threat-modelling.html

Categories
Uncategorized

Cloud functions in GCP

The most important and overlooked concept is that of timeout in cloud functions.

Google recommends to have a timeout of 60 seconds in cloud functions which is a fair value.

So, next time you get an error that you are unable to deploy your cloud function because your function has timed out. Be sure to increase the value of timeout in your cloud function.

Categories
Uncategorized

Content type in WordPress

Have you ever wondered about how to create custom content type in WordPress. If you have come from Drupal and need a light weight solution then WordPress is what you need.

Like custom content type or CCK in Drupal we have CPT UI and ACF for wordpress.

Categories
Uncategorized

PDF Viewer: React

As, with video player in my previous post. I needed a pdf viewer in my react project. There are a lot of options to choose from so I was confused for a while.

Finally, I chose react-pdf and implemented it in my projects.

It has very good documentation and support. In case, you are stuck somewhere then you can always use google to help you out.

Categories
Uncategorized

Video player in react

I came across an interesting player in react. And I thought that I should share it with you guys.

It can be customised and has lots of tweaks. Without further adieu … let me introduce you to the react-player.

It has good documentation and support.

Categories
Uncategorized

Happy Holidays

It’s been a while since I have posted something new. To all site visitors; I have been busy for a while but you can expect monthly updates from now on…

Happy holidays…

Categories
Uncategorized

Staying updated in PHP

I came across a good resource while surfing the internet. It helps me stay up to date in PHP.

Drum roll…

Let me introduce you to one of its kind of magazine for PHP. Yes, you heard me right.

PHP Architect is a magazine for PHP which allows you to keep up with latest trends. For more information please visit their website: phparch.com