Flutter Navigation Fundamentals: Basic Routing, Named Routes, and Parameter Passing Techniques
Navigation Approaches Overview
Direct component switching - Similar to layout replacement in Android, where components are swapped directly (not recommended)
Route-based navigation
Basic routing with parameters (common approach)
Using Navigator.push() or Navigator.of(context).push() for navigation and parameter passing with MaterialPageRoute ...
Posted on Fri, 19 Jun 2026 16:31:01 +0000 by panoramical
HarmonyOS App Development with Java: A Quick Start
Development Environment
The official IDE for HarmonyOS is DevEco Studio, which, like Android Studio, is built upon the open-source IntelliJ IDEA Community Edition from JetBrains. The user interface is nearly identical to what Android developer are already familiar with.
Currantly, DevEco Studio only supports Windows; Mac users will need a Windo ...
Posted on Mon, 08 Jun 2026 18:20:05 +0000 by Whetto
Adapting Vant UI for Mobile with px-to-rem Conversion
Installing lib-flexible
Execute this command in your project directory:
npm install lib-flexible --save
Importing lib-flexible
Add this line to your main.js file:
import 'lib-flexible/flexible';
Configuring Viewport Meta Tag
Include this meta tag in your HTML:
<meta name="viewport" content="width=device-width, initial-scale= ...
Posted on Sun, 31 May 2026 19:27:34 +0000 by elim
Essential HarmonyOS Utilities for Data Persistence and Media Selection
Data Persistence Management
To handle lightweight data storage efficiently, we can encapsulate the dataPreferences API into a reusable utility class. This abstraction simplifies the process of reading and writing key-value pairs, such as user settings or session tokens.
import preferences from '@ohos.data.preferences';
import common from '@oho ...
Posted on Mon, 18 May 2026 12:29:23 +0000 by PastorHank
Rendering Geometry in OpenGL ES 3.0 Using glDrawArrays
OpenGL ES 3.0 Primitive Drawing API OverviewOpenGL ES 3.0 offers five primary API functions for rendering geometric primitives. While glDrawElements and its variations are common for indexed rendering, glDrawArrays serves as the fundamental method for rendering non-indexed geometry directly from vertex buffer data.The glDrawArrays FunctionThis ...
Posted on Sat, 16 May 2026 22:49:01 +0000 by dabaR
Creating a Background Service in Android
Overview
This guide walks through implementing a background service in an Android application. A background service allows code to execute operations without a visible UI component, which is essential for tasks like data synchronization, location tracking, or periodic data processing.
Step 1: Set Up a New Android Project
Launch Android Studio a ...
Posted on Fri, 15 May 2026 11:02:28 +0000 by ThermalSloth
Additional Android Resource Types for Application Development
Boolean Resources
XML-defined logical values used within a app.
Storage: res/values/<any_name>.xml
Reference (Java): R.bool.<flag_name>
Reference (XML): @[package:]bool/<flag_name>
Structure:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<bool name="is_compact_mode">fa ...
Posted on Mon, 11 May 2026 07:40:03 +0000 by NoFear
Building an Audio Recorder and Player Application with HarmonyOS
HarmonyOS provides comprehensive multimedia capabilities for capturing and reproducing audio content through the AudioRecorder and AudioPlayer modules. This implementation demonstrates a complete voice recording application that handles audio capture, file persistence, media library management, and playback controls.
Core Concepts
The AudioReco ...
Posted on Sat, 09 May 2026 08:23:49 +0000 by PhillNeedsHelp
Implementing Avatar Image Cropping in Vue.js Mobile Projects with CropperJS
Prerequisites
Install the necessary dependencies to handle image manipulation and EXIF data:
npm install cropperjs exif-js
Plugin Architecture
Create a dedicated module to encapsulate cropping logic. This approach attaches methods to the Vue prototype, making them accessible globally.
File location: src/utils/imageClipper.js
import Cropper fro ...
Posted on Thu, 07 May 2026 20:33:05 +0000 by cavey5