惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Stack Overflow Blog
Stack Overflow Blog
云风的 BLOG
云风的 BLOG
G
Google Developers Blog
J
Java Code Geeks
C
Check Point Blog
Last Week in AI
Last Week in AI
Microsoft Azure Blog
Microsoft Azure Blog
Blog — PlanetScale
Blog — PlanetScale
月光博客
月光博客
Vercel News
Vercel News
The GitHub Blog
The GitHub Blog
L
LangChain Blog
有赞技术团队
有赞技术团队
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园 - 司徒正美
IT之家
IT之家
Martin Fowler
Martin Fowler
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
T
Tailwind CSS Blog
U
Unit 42
Jina AI
Jina AI
Microsoft Security Blog
Microsoft Security Blog
I
InfoQ

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
First Web Page with Flutter
Mathieu K · 2026-05-06 · via DEV Community

Writing programs in OOP after more than 10 years of Erlang, Elixir and other Functional languages is kinda difficult. Instead of starting with a complex project or a simple hello world bullshit program, let start with something that could be useful to me: creating a single web with Dart and Flutter.

The official Flutter documentation includes a quick tutorial to start a web application from scratch, but before doing anything, a list of requirements could be nice to have. So, what the plan?

  • I would like to learn a bit how Dart/Flutter generates the website
  • I would like to have a single page made of multi pane/frame
  • I would like to have an easy way to create each pane/frame using for example Markdown or Asciidoc format (or in the worst case scenario, YAML)
  • I would like to have a responsive page by default
  • I would like to have a non-exhaustive list of packages/libraries doing this kind projects
  • I would like to have a list of open-source templates/examples to study the code

Bootstrapping Flutter for Web Development

"Building a web application with Flutter
" is the main documentation and give us a good introduction to setup an environment.

# create a new flutter project
flutter create www --platforms web
cd www

Enter fullscreen mode Exit fullscreen mode

The previous command generates a new flutter project with a default demo template for the web platform. Source code directly related to this kind of project can be found in the web directory. Let start the server with flutter run command.

# start the server
flutter run

Enter fullscreen mode Exit fullscreen mode

After a small delay (for the compilation), your browser should be launched or a new tab should be open containing the demo website from localhost. You can see below a screenshot from this page on Chromium.

Okay, that's great, but I would like to see what kind of artifacts flutter creates. Let build the project using flutter build command.

flutter build

Enter fullscreen mode Exit fullscreen mode

All artifacts can be found in build/web directory, including the index file and all assets (images, fonts, scripts and other custom stuff).

$ cd build/web
$ tree 
.
├── assets
│   ├── AssetManifest.bin
│   ├── AssetManifest.bin.json
│   ├── FontManifest.json
│   ├── fonts
│   │   └── MaterialIcons-Regular.otf
│   ├── NOTICES
│   ├── packages
│   │   └── cupertino_icons
│   │       └── assets
│   │           └── CupertinoIcons.ttf
│   └── shaders
│       ├── ink_sparkle.frag
│       └── stretch_effect.frag
├── canvaskit
│   ├── canvaskit.js
│   ├── canvaskit.js.symbols
│   ├── canvaskit.wasm
│   ├── chromium
│   │   ├── canvaskit.js
│   │   ├── canvaskit.js.symbols
│   │   └── canvaskit.wasm
│   ├── skwasm_heavy.js
│   ├── skwasm_heavy.js.symbols
│   ├── skwasm_heavy.wasm
│   ├── skwasm.js
│   ├── skwasm.js.symbols
│   ├── skwasm.wasm
│   ├── wimp.js
│   ├── wimp.js.symbols
│   └── wimp.wasm
├── favicon.png
├── flutter_bootstrap.js
├── flutter.js
├── flutter_service_worker.js
├── icons
│   ├── Icon-192.png
│   ├── Icon-512.png
│   ├── Icon-maskable-192.png
│   └── Icon-maskable-512.png
├── index.html
├── main.dart.js
├── manifest.json
└── version.json

Enter fullscreen mode Exit fullscreen mode

Hmm. Lot of files have been generated indeed. I'm not coming from web development, and the last time I created a website from scratch was... years ago. In this situation, I need a bit of definition and understand what are all those new files.

What canvaskit and skwasm are? Based on Flutter documentation, these are renderers used by flutter to create a flutter compatible engine in WASM. CanvasKit is used by default. skwasm is a smaller version of Skia (a graphic library).

One of these 2 renderers can be used depending of the application, again, the documentation is giving us few hints to select the correct one for our project.

Now, how to "release" it? It seems a web server is required by default, the example provided by the documentation is using python with the command below. Unfortunately, opening directly the index.html file from the filesystem does not work, probably due to default CORS configuration.

cd build/web
python -m http.server 8000

Enter fullscreen mode Exit fullscreen mode

What does it means? If one wants to release its Flutter application, one can simply create a tarball from build/web or using rsync? Well, it looks like it's a complex process just for a single page. We'll probably have an answer to this question later.


Cober Image by Evgeni Tcherkasski on Unsplash