1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-08 22:09:06 +00:00
Files
samples/web/samples_index
Parker Lougheed 450fe911d7 Adjust Flutter gallery inclusion in samples index (#2141)
Reorganizes the samples index to deprioritize the gallery in favor of
some recent web demos, particularly the Material 3 demo.

This PR does keep the gallery in the index, as it is no more out of date
than other samples and there are plans to retire this index. It however
updates its demo link to a new Firebase destination that will remain
hosted for posterity.

Closes https://github.com/flutter/samples/issues/2139
2024-01-18 05:32:08 -08:00
..
2022-12-15 21:36:04 -06:00

Flutter samples index generator

This tool is used to generate the visual samples index for Flutter samples.

Generating the index

We use grinder to run the build tasks:

$ dart pub get
$ dart run grinder generate

This will generate the index into ./web

Serving the index locally

If you want to serve the index locally, you can use webdev:

$ dart pub global activate grinder
$ webdev serve

Publishing the index

You can build the complete index into a publishable directory using Grinder:

$ dart run grinder build-release

This outputs the completely built index to ./public.