Software Development


How to force a widget to redraw in Flutter

In a typical application you will be creating Widgets that internally are made up of other widgets (Widget Composition). In this scenario, it is often useful to pass objects from parent widget A to child widget B and ensure that Widget B is rebuilt at the proper time.

read this article

Swapping two widgets in Flutter, inverting their positions with or without animation

In this article you will learn how to swap two widgets in Flutter to achieve an effect like swapping the addresses on Google Maps, you can use the Stack and Positioned widgets, optionally adding an animation effect.

read this article

Rotate and flip an image in Flutter with or without animations

This article will show you how to flip an image in Flutter on it's horizontal or vertical axis. I will also show you how to achieve this effect gradually via animations and how to change the image when flipping it (like showing the back of a card).

read this article

Custom events in a Flutter widget: how to pass function parameters in Dart

When creating Widgets we often need to allow the execution of custom code when our widget changes state, for example when a user taps on the Widget. In order to allow this behaviour we can define custom events on our widget so that developers can run their own code when these events are triggered.

read this article

Preload images in a stateful widget on Flutter

When we need to use images in Flutter we can load them into an Image widget. If you're rotating through a list of images and we want to obtain a a smooth, real-time transition between images, we need to preload them so that they will be readily available when you need them.

read this article

Serializing an object to Json using C#

Very often when coding we need to output the current state of an object to show it or store it for later retrieval. This article will teach you how to convert any object to a JSON string using one of the most common dependencies on Nuget.org: Newtonsoft's Json.NET

read this article

Masking an image using C#

Here is a C# class that allows you to apply a mask to an existing image.

read this article

G-Zip compression using C#

G-Zip Compression and decompression using C# and the .Net framework. This article will teach you how to compress and decompress data in the G-Zip format.

read this article

Convert a color image to grayscale with C#

This article will teach you how to convert a color image to grayscale using C# and the .NET framework. For an in-depth explanation of grayscale conversion please visit the wikipedia page: https://en.wikipedia.org/wiki/Grayscale.

read this article

Resize and crop an image keeping its aspect ratio with C#

When we have to resize an image to exact new dimensions while keeping it's aspect ratio (thus avoiding distortion of the image) with C# we can take advantage of the Graphics class. The Graphics class exposes method DrawImage which allows us to resize an existing source image and draw it onto the image referenced by the Graphics instance.

read this article

SPAN: the HTML container that does not alter your document

The span tag is the only HTML inline container tag: unless you apply CSS to it, it's simply an inline tag that doesn't alter the way your document is displayed.

read this article

Generating large reports without freezing the browser window

One of our teams recently faced the following problem: website users needed to generate large reports that froze the browser window and eventually timed out. How do we solve this?

read this article