Mobile

Using InteractiveViewer widget in Flutter

Updated: March 24, 2023 By: A Goodman

There may be times when your Flutter applications display large pictures in a small area of the screen. To see these images clearly, users will have to enlarge them. In the old days, we have to…

Show/hide a widget using Visibility

Flutter: Programmatically show/hide a widget using Visibility

Updated: March 23, 2023 By: A Goodman

There may be times when you want to programmatically show or hide a widget in your Flutter applications. One of the best ways to achieve so is to use the Visibility widget. In this article, we…

Examples of using ClipOval in Flutter

Updated: March 23, 2023 By: A Goodman

A few examples of using the ClipOval widget in Flutter. Example 1: Simple Usage In this example, ClipOval is used to clip its child widget to a round circle or an oval (depending on the ratio…

2 ways to remove duplicate items from a list in Dart

Updated: February 3, 2023 By: A Goodman

This article shows you a couple of different ways to remove duplicate items from a list in Dart (and Flutter, of course). The first one works well for a list of primitive data types. The second…

Flutter ColoredBox Examples

Updated: March 23, 2023 By: A Goodman

The ColoredBox widget in Flutter is used to paint a background color on a rectangle area and draw its child over that area. The size of a ColoredBox is as small as possible to fit its…

How to Change the Default Text Encoding in Xcode

Updated: February 12, 2023 By: A Goodman

This is a short guide on how to change the default text encoding in Xcode 13.x, Xcode 14.x, and later. Just follow the steps below. 1. Start your Xcode and go to Xcode > Settings (or…

How to Adjust Indents and Spacing in Xcode

Updated: February 12, 2023 By: A Goodman

Xcode is a great IDE (integrated development environment) for developing applications for iOS, macOS, tvOS, watchOS, and iPadOS. This article shows you how to adjust indents and spacing in Xcode 13, Xcode 14, and other later…

Flutter: Container border examples

Updated: March 23, 2023 By: A Goodman

This article walks you through 3 examples of setting borders for a Container in Flutter. Example 1: Set a border for all sides This example creates a square yellow box enclosed by a red border. Preview:…

How to Download and Install an iOS Simulator in Xcode

Updated: April 25, 2022 By: A Goodman

Each simulator comes with a particular OS version such as iOS 14.1, iOS 15.0, iOS 15.2, tvOS 14.0, watchOS 7.0, etc. You can easily install the one you need via Xcode. This article shows you how…

How to Change Theme in Xcode

Updated: February 8, 2023 By: A Goodman

A theme in Xcode is a combination of background color, text color, font family, font style, cursor style, etc. Many people like dark themes but others prefer light themes or a pale yellow theme. This article…

Flutter Flexible examples

Updated: March 23, 2023 By: A Goodman

This article walks you through a few examples of using the Flexible widget in Flutter. Example 1: Sizing children relative to their parent’s size Screenshot: The code: Example 2: FlexFit.loose vs FlexFit.tight Screenshots: The child can…

Flutter FittedBox examples

Updated: March 23, 2023 By: A Goodman

In this article, we will go over a few examples of using the FittedBox widget in Flutter. Example 1: Prevent Text from being invisible with FittedBox The text’s font size is reduced to fit its parent….

1 26 27 28 29 30 46