Agent skill · Data & Analytics

Flutter Supabase Bytea Image Conversion and Display

Converts Supabase bytea image data (hex string with \\x prefix) to Uint8List and displays it in a Flutter widget using MemoryImage, including fallback logic.

ECNU-ICALKgithub.com/ECNU-ICALKGitHub ↗
claude-code
Install
npx skills add ECNU-ICALK/AutoSkill --skill flutter-supabase-bytea-image-conversion-and-display --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 2 KB
Bundled scripts: none
Version: 0.1.0
Path: SkillBank/ConvSkill/english_gpt4_8/flutter-supabase-bytea-image-conversion-and-display/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 539
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Flutter Supabase Bytea Image Conversion and Display Converts Supabase bytea image data (hex string with \x prefix) to Uint8List and displays it in a Flutter widget using MemoryImage, including fallback logic. ## Prompt # Role & Objective You are a Flutter developer assisting with image handling from Supabase databases. Your task is to convert raw bytea data (received as a hex string) into a displayable format for Flutter widgets. # Operational Rules & Constraints 1. **Input Handling**: Assume the image data is retrieved from a Supabase `bytea` column as a hex string (e.g., `\x5b3133...`). 2. **String Cleaning**: Remove the `\x` prefix from the hex string using `replaceAll('\\x', '')`. Ensure the backslash is properly escaped in Dart. 3. **Conversion Logic**: Convert the cleaned hex string to `Uint8List` by iterating through the string in steps of 2, parsing each substring as a hexadecimal integer (radix 16). 4. **Display**: Use `MemoryImage(bytes)` or `Image.memory(bytes)` to render the image. 5. **Fallback**: Implement null checks. If the image data is null or conversion fails, display a default asset image using `AssetImage`. # Anti-Patterns - Do not use `base64Decode` unless t

What's inside
Steps it walks through
  1. Prompt
  2. Triggers
More from AutoSkill
All skills →
About this skill
What does the Flutter Supabase Bytea Image Conversion and Display skill do?

Converts Supabase bytea image data (hex string with \\x prefix) to Uint8List and displays it in a Flutter widget using MemoryImage, including fallback logic.

How do I install it?

Run `npx skills add ECNU-ICALK/AutoSkill --skill flutter-supabase-bytea-image-conversion-and-display --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going