Add web_dashboard and form_app to sample index (#506)

* add web_dashboard and form_app to web/ via symlinks

* update samples.yaml, add images

* fix web/readme.md instructions

* remove dependency on package:resource
pull/509/head
John Ryan 5 years ago committed by GitHub
parent 6d909874db
commit 34757d8aac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1 @@
../experimental/form_app

@ -10,5 +10,7 @@ directories:
- slide_puzzle/web
- timeflow/web
- vision_challenge/web
- form_app/web
- web_dashboard/web
post-build-dart-script: _tool/peanut_post_build.dart

@ -45,7 +45,7 @@ $ flutter pub global activate peanut
Verify `pub get` has been run on each demo:
```console
$ dart _tool/verify_packages
$ dart _tool/verify_packages.dart
```
Build all demos, along with the sample index:

@ -3,8 +3,7 @@
// found in the LICENSE file
import 'dart:convert';
import 'package:resource/resource.dart';
import 'dart:io';
import 'src/data.dart';
import 'package:checked_yaml/checked_yaml.dart';
@ -12,8 +11,8 @@ import 'package:checked_yaml/checked_yaml.dart';
export 'src/data.dart';
Future<List<Sample>> getSamples() async {
var yamlFile = Resource('package:samples_index/src/samples.yaml');
var cookbookFile = Resource('package:samples_index/src/cookbook.json');
var yamlFile = File('lib/src/samples.yaml');
var cookbookFile = File('lib/src/cookbook.json');
var contents = await yamlFile.readAsString();
var cookbookContents = await cookbookFile.readAsString();
var index = checkedYamlDecode(contents, (m) => Index.fromJson(m),

@ -313,6 +313,52 @@ samples:
type: sample
web: web/provider_shopper
- name: Web Dashboard
author: Flutter
screenshots:
- url: images/web_dashboard1.png
alt: Web Dashboard screenshot
- url: images/web_dashboard2.png
alt: Web Dashbaord screenshot
- url: images/web_dashboard3.png
alt: Web Dashboard screenshot
source: https://github.com/flutter/samples/tree/master/experimental/web_dashboard
description: >
A dashboard app that displays daily entries. Demonstrates AdaptiveScaffold and NavigationRail. Showcases how to
use Firebase, but uses a mock backend by default.
difficulty: advanced
widgets:
- AdaptiveScaffold
- NavigationRail
- FutureBuilder
- StreamBuilder
packages:
- firebase
tags: ['intermediate', 'sample', 'firebase']
platforms: ['ios', 'android', 'web']
type: sample
web: web/web_dashboard
- name: Form App
author: Flutter
screenshots:
- url: images/form_app1.png
alt: Form App screenshot
- url: images/form_app2.png
alt: Form App screenshot
- url: images/form_app3.png
alt: Form App screenshot
source: https://github.com/flutter/samples/tree/master/experimental/form_app
description: >
A Flutter sample app that shows how to use Forms.
difficulty: intermediate
widgets:
- Form
packages: []
tags: ['intermediate', 'sample', 'forms']
platforms: ['ios', 'android', 'web']
type: sample
web: web/form_app
###################
#### Web Demos ####
###################

@ -8,7 +8,6 @@ environment:
dependencies:
json_annotation: ^3.0.0
path: ^1.6.0
resource: ^2.1.6
yaml: ^2.2.0
mdc_web: ^0.5.0-pre
sass_builder: ^2.1.0

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 606 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 530 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 647 KiB

@ -0,0 +1 @@
../experimental/web_dashboard
Loading…
Cancel
Save