Skip to content

Comments

feat: add minimal flutter hello world sample (#3512)#3559

Open
NamanGoyalK wants to merge 1 commit intodart-lang:mainfrom
NamanGoyalK:feat-hello-world-flutter-sample
Open

feat: add minimal flutter hello world sample (#3512)#3559
NamanGoyalK wants to merge 1 commit intodart-lang:mainfrom
NamanGoyalK:feat-hello-world-flutter-sample

Conversation

@NamanGoyalK
Copy link

This PR adds a "Minimal Flutter" template to the samples dropdown, as discussed in #3512.

Changes:

Created pkgs/samples/lib/hello_world_flutter.dart based on the --empty template logic.

Updated samples.json to include the new sample in the Flutter category.

Renamed the existing Dart "Hello World" sample internal ID to hello-world-dart for clarity.

Re-generated pkgs/dartpad_ui/lib/primitives/samples.g.dart to sync changes.

This provides users with a clean-slate starting point for prototyping without the boilerplate of the counter app.

image

Closes #3512


  • I’ve reviewed the contributor guide and applied the relevant portions to this PR.

@github-actions
Copy link

github-actions bot commented Feb 8, 2026

PR Health

License Headers ⚠️
// Copyright (c) 2026, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
Files
pkgs/samples/lib/hello_world_dart.dart

All source files should start with a license header.

Unrelated files missing license headers
Files
pkgs/dart_services/lib/src/context.dart
pkgs/samples/lib/brick_breaker.dart
pkgs/samples/lib/fibonacci.dart
pkgs/samples/lib/main.dart
pkgs/samples/lib/sunflower.dart

This check can be disabled by tagging the PR with skip-license-check.

API leaks ✔️

The following packages contain symbols visible in the public API, but not exported by the library. Export these symbols or remove them from your publicly visible API.

Package Leaked API symbol Leaking sources

This check can be disabled by tagging the PR with skip-leaking-check.

Breaking changes ✔️
Package Change Current Version New Version Needed Version Looking good?

This check can be disabled by tagging the PR with skip-breaking-check.

Unused Dependencies ✔️
Package Status
None No packages found to check.

For details on how to fix these, see dependency_validator.

This check can be disabled by tagging the PR with skip-unused-dependencies-check.

Coverage ✔️
File Coverage

This check for test coverage is informational (issues shown here will not fail the PR).

This check can be disabled by tagging the PR with skip-coverage-check.

Changelog Entry ✔️
Package Changed Files

Changes to files need to be accounted for in their respective changelogs.

This check can be disabled by tagging the PR with skip-changelog-check.

@NamanGoyalK NamanGoyalK force-pushed the feat-hello-world-flutter-sample branch from af7c4e3 to c508425 Compare February 12, 2026 13:06
@NamanGoyalK NamanGoyalK force-pushed the feat-hello-world-flutter-sample branch from 00127c5 to c6f5623 Compare February 12, 2026 13:16
@NamanGoyalK
Copy link
Author

NamanGoyalK commented Feb 15, 2026

@parlough could you please review this once whenever you are free, I have fixed all the issues with ci/cd now, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a minimal Flutter “Hello World” sample

1 participant