Understand Transformations and CustomPaint Widgets in Flutter

Understand Transformations and CustomPaint Widgets in Flutter

Flutter made it easy for developers to build complex UI in record time. With a number of awesome widgets like Rows, Columns, ListView and Positioned, we can play around the screen and get our desired output and be satisfied at the end of the day. But what if you need a widget that is not available in the Flutter Widget Catalog? What if your requirement is so awesome and innovative that it is still not yet thought of by any one. In this case, you my friend, are there to bring it to life.

Flutter made it easy for developers to build complex UI in record time. With a number of awesome widgets like Rows, Columns, ListView and Positioned, we can play around the screen and get our desired output and be satisfied at the end of the day. But what if you need a widget that is not available in the Flutter Widget Catalog? What if your requirement is so awesome and innovative that it is still not yet thought of by any one. In this case, you my friend, are there to bring it to life.

In order to let developers build their own widgets, Flutter has many classes in store and has actually made it pretty simple for the developers to utilize them.

Transformations

Transform widget takes a Matrix4 object as a transformation guide to apply on the widget passed as a child.

Image for post

Example of rotation using Transform widget.

Image for post

Example of scaling using Transform widget.

Image for post

Example of translation using Transform widget.

paint dart custom flutter drawer

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

Google's Flutter 1.20 stable announced with new features - Navoki

Google has announced new flutter 1.20 stable with many improvements, and features, enabling flutter for Desktop and Web

What is Flutter and why you should learn it?

Flutter is an open-source UI toolkit for mobile developers, so they can use it to build native-looking Android and iOS applications from the same code base for both platforms. Flutter is also working to make Flutter apps for Web, PWA (progressive Web-App) and Desktop platform (Windows,macOS,Linux).

6 Things About HTTP Request in Dart For Beginners

Here is an http request to get a user's data using GET request, First, we have to make an async function that returns a type. If you are here and a beginner, that means you want to learn everything about making an API request using Dart in Flutter, then you are in the right place for the HTTP tutorial.

Adobe XD plugin for Flutter with CodePen Tutorial

Recently Adobe XD releases a new version of the plugin that you can use to export designs directly into flutter widgets or screens.

Dart Isolates - Flutter compute function - Multithreading in Dart and Flutter

I want to talk a little bit more about how Multithreading in Dart and Flutter is possible. Therefore I talk a little bit on how you can create Isolates and how they work internally. Because the boilerplate of the Isolate is heavy I want also to talk about the compute function of Flutter.